diff options
Diffstat (limited to 'nvim/lua/config')
| -rw-r--r-- | nvim/lua/config/keymaps.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 6cc998d..a665e82 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua | |||
| @@ -16,7 +16,10 @@ function M.lsp(buffer, client) | |||
| 16 | map("n", "<leader>rn", vim.lsp.buf.rename, opts) | 16 | map("n", "<leader>rn", vim.lsp.buf.rename, opts) |
| 17 | map("n", "<leader>ca", vim.lsp.buf.code_action, opts) | 17 | map("n", "<leader>ca", vim.lsp.buf.code_action, opts) |
| 18 | map("n", "<leader>cf", function() | 18 | map("n", "<leader>cf", function() |
| 19 | vim.lsp.buf.format({ async = true; }) | 19 | require("conform").format({ |
| 20 | async = true, | ||
| 21 | lsp_fallback = true, | ||
| 22 | }) | ||
| 20 | end, opts) | 23 | end, opts) |
| 21 | 24 | ||
| 22 | if client and client.name == "clangd" then | 25 | if client and client.name == "clangd" then |
