From ac59bb7ff6cccc363208ac9420ab136dba2d94f4 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 22 Dec 2024 16:10:15 +0700 Subject: [PATCH] config(nvim): improve fzf-lua settings --- data/newsboat/urls | 11 ++++++----- data/nvim/init.lua | 7 ++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/data/newsboat/urls b/data/newsboat/urls index a6c01d8..fbc8b5c 100644 --- a/data/newsboat/urls +++ b/data/newsboat/urls @@ -45,17 +45,18 @@ https://stephango.com/feed.xml https://go.dev/blog/feed.atom https://golangweekly.com/rss/ +https://tigerbeetle.com/blog/atom.xml https://asahilinux.org/blog/index.xml +https://kbd.news/rss.php + +https://neovim.io/news.xml +https://developer.apple.com/news/releases/rss/releases.rss +https://rsshub.app/amazon/kindle/software-updates https://github.com/caksoylar/keymap-drawer/commits/main.atom "~keymap-drawer" https://github.com/qmk/qmk_firmware/commits/develop.atom "~qmk_firmware/develop" https://github.com/qmk/qmk_firmware/commits/master.atom "~qmk_firmware" -https://kbd.news/rss.php - -https://developer.apple.com/news/releases/rss/releases.rss -https://rsshub.app/amazon/kindle/software-updates - https://nyaa.si/?f=0&c=1_2&q=doraemon+movie&page=rss "~Doraemon movie" https://nyaa.si/?f=0&c=1_4&q=doraemon+movie&page=rss "~Doraemon movie raw" https://nyaa.si/?f=0&c=1_2&q=conan+movie&page=rss "~Conan movie" diff --git a/data/nvim/init.lua b/data/nvim/init.lua index f8e5571..f1bbe74 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -170,12 +170,12 @@ require("lazy").setup({ opts = { winopts = { preview = { + default = "bat", wrap = "wrap", }, }, - defaults = { - formatter = "path.filename_first", - git_icons = false, + files = { + path_shorten = 1, }, grep = { multiline = 1, @@ -188,6 +188,7 @@ require("lazy").setup({ vim.keymap.set({ "n", "v" }, "rg", ":FzfLua live_grep_resume") vim.keymap.set({ "n", "v" }, "s", ":FzfLua lsp_document_symbols") vim.keymap.set({ "n", "v" }, "r", ":FzfLua lsp_references") + vim.keymap.set({ "n", "v" }, "gr", ":FzfLua lsp_references") vim.keymap.set({ "n", "v" }, "i", ":FzfLua lsp_implementations") vim.keymap.set({ "n", "v" }, "ca", ":FzfLua lsp_code_actions previewer=false") vim.keymap.set({ "n", "v" }, "d", ":FzfLua diagnostics_document")