From a380efd048f476bc1f4c3c90f5001fa481653c08 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Sat, 27 Aug 2022 22:18:07 +0200 Subject: [PATCH] nvim: update bindings --- files/nvim/.config/nvim/lua/mappings.lua | 7 ++++--- files/nvim/.config/nvim/lua/plugins.lua | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/files/nvim/.config/nvim/lua/mappings.lua b/files/nvim/.config/nvim/lua/mappings.lua index e5b3181..6fdae7a 100644 --- a/files/nvim/.config/nvim/lua/mappings.lua +++ b/files/nvim/.config/nvim/lua/mappings.lua @@ -23,9 +23,10 @@ telescope.setup({ } } }) -map("n", "", " Telescope find_files", default_opts) -- Show files -map("n", "", " Telescope live_grep", default_opts) -- Grep through current directory -map("n", "", " Telescope keymaps", default_opts) -- Show all keys +map("n", "", " Telescope find_files", default_opts) -- Show files +map("n", "", " Telescope live_grep", default_opts) -- Grep through current directory +map("n", "", " Telescope keymaps", default_opts) -- Show all keys +map("n", "", " Telescope current_buffer_fuzzy_find", default_opts) -- Grep through current file -- Telescope + LSP map("n", "la", " lua vim.lsp.buf.code_action()", default_opts) -- Apply LSP code action diff --git a/files/nvim/.config/nvim/lua/plugins.lua b/files/nvim/.config/nvim/lua/plugins.lua index b991032..1e4cc0d 100644 --- a/files/nvim/.config/nvim/lua/plugins.lua +++ b/files/nvim/.config/nvim/lua/plugins.lua @@ -218,8 +218,8 @@ return require('packer').startup(function(use) end, }, sources = { - { name = 'luasnip', keyword_length = 3, max_item_count = 3 }, - { name = 'nvim_lsp', keyword_length = 3, max_item_count = 10 }, + { name = 'luasnip', keyword_length = 1, max_item_count = 3 }, + { name = 'nvim_lsp', keyword_length = 1, max_item_count = 10 }, { name = 'buffer', keyword_length = 5, max_item_count = 3 }, { name = 'path' }, },