Add code actions and command search to neovim

This commit is contained in:
Warren Hood 2023-04-12 20:13:14 +02:00
parent fb0cd83a7d
commit 37f53ea0dc

View file

@ -153,3 +153,9 @@ for i=1,#arrows do
map('n', arrows[i], function () end) map('n', arrows[i], function () end)
map('i', arrows[i], function () end) map('i', arrows[i], function () end)
end end
-- Code actions with ctrl + .
map('n', '<Leader>.', function() vim.lsp.buf.code_action({ apply = true}) end, { desc = 'Code action/Quick fix' })
-- Show telescope commands fuzzy finder
map('n', '<Leader><Leader>', function() require('telescope.builtin').commands() end, { desc = 'Show commands' })