diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-01-08 17:25:42 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-01-08 17:25:42 +0100 |
| commit | 1f2dad0be57a20bca63b251d0b22c57839a6f794 (patch) | |
| tree | 56844c50cfc60b54b5a8b886113de3e95b551f5e /nvim/lua/config/keymaps.lua | |
| parent | cab771e6d1cc578e956f8bd9e3544cd0502b65a9 (diff) | |
| download | dotfiles-1f2dad0be57a20bca63b251d0b22c57839a6f794.tar.gz dotfiles-1f2dad0be57a20bca63b251d0b22c57839a6f794.tar.bz2 dotfiles-1f2dad0be57a20bca63b251d0b22c57839a6f794.zip | |
Neovim: Benutze conform.nvim als Standard-Formater
Diffstat (limited to 'nvim/lua/config/keymaps.lua')
| -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 |
