diff --git a/nvim/lua/plugins/lspconfig.lua b/nvim/lua/plugins/lspconfig.lua index a65c834..9fb7830 100644 --- a/nvim/lua/plugins/lspconfig.lua +++ b/nvim/lua/plugins/lspconfig.lua @@ -94,6 +94,9 @@ local function custom_on_attach(client, buffer_nr) -- Rename all references of symbol bufnnoremap("R", "lua vim.lsp.buf.rename()") + -- Format buffer + bufnnoremap("F", "lua vim.lsp.buf.formatting_sync()") + -- Navigate diagnostics bufnnoremap("", "lua vim.diagnostic.goto_next()") bufnnoremap("", "lua vim.diagnostic.goto_prev()")