aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/lua/plugins
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-08-16 20:42:08 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-08-16 20:42:08 -0400
commit14e2b1ad79e00dd2c3cfc3d0acec3cd2aacf24e4 (patch)
treec31f51e025e91c78b503ba9801e0a05a3db9a049 /nvim/lua/plugins
parente184d7cee358abc277a51f040cacf236f1eaceab (diff)
changed lsp format keymap
Diffstat (limited to 'nvim/lua/plugins')
-rw-r--r--nvim/lua/plugins/lsp.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
index 0089033..217802a 100644
--- a/nvim/lua/plugins/lsp.lua
+++ b/nvim/lua/plugins/lsp.lua
@@ -23,6 +23,14 @@ local lspconfig = {
desc = "Rename symbol"
},
{
+ '<C-f>',
+ function()
+ vim.lsp.buf.format()
+ end,
+ mode = {'n', 'v'},
+ desc = "Format code"
+ },
+ {
'<leader>la',
function ()
vim.lsp.buf.code_action()