config(nvim): improve fzf-lua settings

main
sudo pacman -Syu 2024-12-22 16:10:15 +07:00
parent 75fe43a223
commit ac59bb7ff6
2 changed files with 10 additions and 8 deletions

View File

@ -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"

View File

@ -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" }, "<Leader>rg", ":FzfLua live_grep_resume<CR>")
vim.keymap.set({ "n", "v" }, "<Space>s", ":FzfLua lsp_document_symbols<CR>")
vim.keymap.set({ "n", "v" }, "<Space>r", ":FzfLua lsp_references<CR>")
vim.keymap.set({ "n", "v" }, "gr", ":FzfLua lsp_references<CR>")
vim.keymap.set({ "n", "v" }, "<Space>i", ":FzfLua lsp_implementations<CR>")
vim.keymap.set({ "n", "v" }, "<Space>ca", ":FzfLua lsp_code_actions previewer=false<CR>")
vim.keymap.set({ "n", "v" }, "<Space>d", ":FzfLua diagnostics_document<CR>")