diff --git a/lsp_config.lua b/lsp_config.lua index 21d0c8a3..a47d60c8 100644 --- a/lsp_config.lua +++ b/lsp_config.lua @@ -44,7 +44,7 @@ local on_attach = function(client, bufnr) vim.keymap.set('n', 'rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', 'ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) - vim.keymap.set('n', 'f', vim.lsp.buf.formatting, bufopts) + vim.keymap.set('n', 'i', vim.lsp.buf.formatting, bufopts) -- Enable aerial support require("aerial").on_attach(client, bufnr) end