diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-18 15:23:47 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-18 15:23:47 +0200 |
commit | 3b209dc0f967e469207beea7d6478ebe1e075c76 (patch) | |
tree | d082d529b394411ec97124ee0b34baa05585dd47 /.config/nvim/after/ftplugin/c.lua | |
parent | 7ec58aa28b5ddbfd88270710e3b6ae5b094d4424 (diff) |
nvim: Prefer *.vim to *.lua
Diffstat (limited to '.config/nvim/after/ftplugin/c.lua')
-rw-r--r-- | .config/nvim/after/ftplugin/c.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.config/nvim/after/ftplugin/c.lua b/.config/nvim/after/ftplugin/c.lua deleted file mode 100644 index c65969c..0000000 --- a/.config/nvim/after/ftplugin/c.lua +++ /dev/null @@ -1,23 +0,0 @@ -vim.bo.commentstring = '// %s' - -vim.keymap.set('x', '<LocalLeader>=', ":'<'>!clang-format -style=file<CR>", { - desc = 'Format the current selection with Clang Format', -}) - -vim.keymap.set('n', 'K', function() - local w = vim.fn.expand('<cword>') - local proc = vim.system({'man', w}):wait() - if proc.code == 16 then - print('No manual for ‘' .. w .. '’ found') - return - elseif proc.code ~= 0 then - print('An error occured') - return - end - vim.cmd [[ - execute "silent !man -Tpdf '" . expand('<cword>') . "' | zathura - &" - ]] -end, { - buffer = 0, - desc = 'View the manual page for the word under the cursor', -}) |