[fix] neovim: reduce closure size
Also re-enable all grammars
This commit is contained in:
parent
3f0a49d46b
commit
da21f7a14c
3 changed files with 29 additions and 77 deletions
|
@ -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} })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue