summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftplugin/c.lua
diff options
context:
space:
mode:
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',
-})