diff options
Diffstat (limited to 'nvim/lua/config/keymaps.lua')
| -rw-r--r-- | nvim/lua/config/keymaps.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index b193d5c..29dee94 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua | |||
| @@ -15,12 +15,6 @@ function M.lsp(buffer, client) | |||
| 15 | map("n", "K", vim.lsp.buf.hover, opts) | 15 | map("n", "K", vim.lsp.buf.hover, opts) |
| 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() | ||
| 19 | require("conform").format({ | ||
| 20 | async = true, | ||
| 21 | lsp_fallback = true, | ||
| 22 | }) | ||
| 23 | end, opts) | ||
| 24 | 18 | ||
| 25 | local function set_c_bindings() | 19 | local function set_c_bindings() |
| 26 | if client and client.name == "clangd" then map("n", "<leader>hs", "<cmd>ClangdSwitchSourceHeader<cr>", opts) end | 20 | if client and client.name == "clangd" then map("n", "<leader>hs", "<cmd>ClangdSwitchSourceHeader<cr>", opts) end |
