Add conform.nvim

This commit is contained in:
Antoine Vaure 2024-08-12 16:51:19 +02:00
parent 1a0c48ae00
commit e462372892
2 changed files with 29 additions and 3 deletions

View file

@ -75,9 +75,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
vim.keymap.set('n', '<leader>ra', vim.lsp.buf.rename, opts)
vim.keymap.set({ 'n', 'v' }, '<leader>ca', vim.lsp.buf.code_action, opts)
vim.keymap.set('n', 'gr', telescope.lsp_references, opts)
vim.keymap.set('n', '<leader>fm', function()
vim.lsp.buf.format { async = true }
end, opts)
vim.keymap.set({ 'n', 'v' }, '<leader>fm', ":Format<cr>", opts)
end,
})