summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftplugin/c.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-18 15:23:47 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-18 15:23:47 +0200
commit3b209dc0f967e469207beea7d6478ebe1e075c76 (patch)
treed082d529b394411ec97124ee0b34baa05585dd47 /.config/nvim/after/ftplugin/c.lua
parent7ec58aa28b5ddbfd88270710e3b6ae5b094d4424 (diff)
nvim: Prefer *.vim to *.lua
Diffstat (limited to '.config/nvim/after/ftplugin/c.lua')
-rw-r--r--.config/nvim/after/ftplugin/c.lua23
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',
-})