From e511f8e110fa5200d667ebee2e7403dbe98721ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 13 Mar 2024 10:52:06 +0100 Subject: nvim: switch from ale and other tweaks --- config/nvim/ftplugin/c.vim | 7 ------- config/nvim/ftplugin/cpp.vim | 8 -------- config/nvim/ftplugin/json.vim | 1 - config/nvim/ftplugin/lua.vim | 2 -- config/nvim/ftplugin/nix.vim | 5 ----- config/nvim/ftplugin/python.vim | 2 -- config/nvim/ftplugin/sh.vim | 2 -- config/nvim/ftplugin/tex.vim | 1 - 8 files changed, 28 deletions(-) delete mode 100644 config/nvim/ftplugin/c.vim delete mode 100644 config/nvim/ftplugin/cpp.vim delete mode 100644 config/nvim/ftplugin/json.vim delete mode 100644 config/nvim/ftplugin/lua.vim delete mode 100644 config/nvim/ftplugin/nix.vim delete mode 100644 config/nvim/ftplugin/python.vim delete mode 100644 config/nvim/ftplugin/sh.vim delete mode 100644 config/nvim/ftplugin/tex.vim (limited to 'config/nvim/ftplugin') diff --git a/config/nvim/ftplugin/c.vim b/config/nvim/ftplugin/c.vim deleted file mode 100644 index 3769d80..0000000 --- a/config/nvim/ftplugin/c.vim +++ /dev/null @@ -1,7 +0,0 @@ -let b:ale_linters = ['cppcheck', 'flawfinder'] -let b:ale_fixers = ['clang-format', 'remove_trailing_lines', 'trim_whitespace'] -let g:ale_c_parse_compile_commands = 1 -let g:ale_c_clangd_options = '--header-insertion=never' - -nmap :ALENext -nmap :ALEPrevious diff --git a/config/nvim/ftplugin/cpp.vim b/config/nvim/ftplugin/cpp.vim deleted file mode 100644 index 89944ea..0000000 --- a/config/nvim/ftplugin/cpp.vim +++ /dev/null @@ -1,8 +0,0 @@ -" This is for C but vim defines *.h as cpp type so here we have it -let b:ale_linters = ['ccls', 'cppcheck', 'flawfinder'] -let b:ale_fixers = ['clang-format', 'remove_trailing_lines', 'trim_whitespace'] -let g:ale_cpp_ccls_init_options = {'cache': {'directory': '/tmp/ccls/cache'}} -let g:ale_cpp_parse_compile_commands = 1 - -nmap :ALENext -nmap :ALEPrevious diff --git a/config/nvim/ftplugin/json.vim b/config/nvim/ftplugin/json.vim deleted file mode 100644 index 829a37e..0000000 --- a/config/nvim/ftplugin/json.vim +++ /dev/null @@ -1 +0,0 @@ -let b:ale_fixers = ['jq'] diff --git a/config/nvim/ftplugin/lua.vim b/config/nvim/ftplugin/lua.vim deleted file mode 100644 index 733962a..0000000 --- a/config/nvim/ftplugin/lua.vim +++ /dev/null @@ -1,2 +0,0 @@ -let b:ale_linters = ['luacheck', 'selene', 'luac'] -let b:ale_fixers = ['stylua', 'remove_trailing_lines', 'trim_whitespace'] diff --git a/config/nvim/ftplugin/nix.vim b/config/nvim/ftplugin/nix.vim deleted file mode 100644 index 48be358..0000000 --- a/config/nvim/ftplugin/nix.vim +++ /dev/null @@ -1,5 +0,0 @@ -let b:ale_linters = ['nix', 'statix'] -let b:ale_fixers = ['alejandra', 'remove_trailing_lines', 'trim_whitespace'] - -nmap :ALENext -nmap :ALEPrevious diff --git a/config/nvim/ftplugin/python.vim b/config/nvim/ftplugin/python.vim deleted file mode 100644 index 94b035a..0000000 --- a/config/nvim/ftplugin/python.vim +++ /dev/null @@ -1,2 +0,0 @@ -let b:ale_linters = ['pylint', 'mypy', 'pydocstyle'] -let b:ale_fixers = ['isort', 'black', 'remove_trailing_lines', 'trim_whitespace'] diff --git a/config/nvim/ftplugin/sh.vim b/config/nvim/ftplugin/sh.vim deleted file mode 100644 index 8cc42e2..0000000 --- a/config/nvim/ftplugin/sh.vim +++ /dev/null @@ -1,2 +0,0 @@ -let b:ale_linters = ['shell', 'shellcheck'] -let b:ale_fixers = ['shfmt', 'trim_whitespace', 'remove_trailing_lines'] diff --git a/config/nvim/ftplugin/tex.vim b/config/nvim/ftplugin/tex.vim deleted file mode 100644 index 5eb1926..0000000 --- a/config/nvim/ftplugin/tex.vim +++ /dev/null @@ -1 +0,0 @@ -let b:ale_linters = ['lacheck'] -- cgit v1.2.3