diff options
author | joe <rbo@gmx.us> | 2025-08-25 18:13:21 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-08-25 18:13:21 +0200 |
commit | 41682275d321b6b79ee4c07f25e819875519466e (patch) | |
tree | 301ee0175c17d2394a950ef7d11bffd0d47597ac /.config/nvim/lua/config/langs.lua | |
parent | up (diff) | |
download | dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.gz dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.bz2 dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.xz dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.tar.zst dotfiles-bsd-41682275d321b6b79ee4c07f25e819875519466e.zip |
cool
Diffstat (limited to '.config/nvim/lua/config/langs.lua')
-rw-r--r-- | .config/nvim/lua/config/langs.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nvim/lua/config/langs.lua b/.config/nvim/lua/config/langs.lua new file mode 100644 index 0000000..64fe7ea --- /dev/null +++ b/.config/nvim/lua/config/langs.lua @@ -0,0 +1,11 @@ +vim.g.asmsyntax = 'asm' +vim.g.perl_include_pod = 1 +vim.g.perl_compiler_force_warnings = 1 + +-- vim.api.nvim_create_autocmd('BufNewFile,BufRead', { pattern = '*.c,*.h', command = 'set filetype=c'}) +-- vim.api.nvim_create_autocmd('BufNewFile,BufRead', { pattern = '*.cc,*.hh,*.cpp,*.hpp,*.cxx,*.hxx', command = 'set filetype=cpp'}) +-- vim.api.nvim_create_autocmd('BufNewFile,BufRead', { pattern = '*.ms,*.1,*.2,*.3,*.4,*.5,*.6,*.7,*.8,*.9', command = 'set filetype=groff'}) +-- vim.api.nvim_create_autocmd('BufNewFile,BufRead', { pattern = '*.conf', command = 'set filetype=conf'}) +vim.api.nvim_create_autocmd('BufWritePost', { pattern = '*.ms', command = "let pdf=fnamemodify(bufname('%'), ':r') . \".pdf\" | silent! execute \"!nroff % -ms -Tpdf -Kutf8 > \" . pdf"}) +-- vim.api.nvim_create_autocmd('FileType fish', { command = 'compiler fish'}) +-- vim.api.nvim_create_autocmd('FileType perl', { command = 'setlocal com-=:# kp=perldoc\\ -f | compiler perl'}) |