[fix] neovim: reduce closure size

Also re-enable all grammars
This commit is contained in:
Jalil David Salamé Messina 2024-05-04 22:02:13 +02:00
parent 3f0a49d46b
commit da21f7a14c
Signed by: jalil
GPG key ID: F016B9E770737A0B
3 changed files with 29 additions and 77 deletions

View file

@ -74,7 +74,7 @@
end
-- Enable formatting if supported
if capabilities.documentFormattingProvider then
vim.keymap.set('n', '<leader>w', function() vim.lsp.buf.format { async = true } end, { desc = 'Format Buffer', ${opts} })
vim.keymap.set('n', '<leader>w', function() require("conform").format({ lsp_fallback = true }) end, { desc = 'Format Buffer', ${opts} })
end
-- Other keybinds
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { desc = '[G]o to [D]efinition', ${opts} })