mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-29 20:04:59 +01:00
Add code actions and command search to neovim
This commit is contained in:
parent
fb0cd83a7d
commit
37f53ea0dc
|
@ -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' })
|
||||||
|
|
Loading…
Reference in a new issue