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' }, },