summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-11 22:19:47 +0200
committerThomas Voss <thomas.voss@humanwave.nl> 2024-06-12 18:49:56 +0200
commit85ec4336c8dcbdd4a5b72fde7fae702a19bb3f6c (patch)
tree3e5ea0dd6c42abf324e942566165fff677c1eb70 /.config/nvim
parentc3e4bf8bced931102e93b5487b0c00d200864624 (diff)
nvim: Don’t pass ‘-’ to clang-format
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/ftplugin/c.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/after/ftplugin/c.lua b/.config/nvim/after/ftplugin/c.lua
index 2c378f4..23262f2 100644
--- a/.config/nvim/after/ftplugin/c.lua
+++ b/.config/nvim/after/ftplugin/c.lua
@@ -1,6 +1,6 @@
vim.bo.commentstring = '/* %s */'
-vim.keymap.set('v', '<localleader>=', ":'<'>!clang-format -style=file -<CR>", {
+vim.keymap.set('v', '<localleader>=', ":'<'>!clang-format -style=file<CR>", {
desc = 'Format the current selection with Clang Format',
})