aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/ftplugin
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-03-13 10:52:06 +0100
committerKarel Kočí <cynerd@email.cz>2024-03-13 10:52:06 +0100
commite511f8e110fa5200d667ebee2e7403dbe98721ef (patch)
tree2f35a8033bb77e22013c4ed80a7d6819485f8084 /config/nvim/ftplugin
parent68cd653842a300081d54f0c539e32c8774f824a4 (diff)
downloadmyconfigs-e511f8e110fa5200d667ebee2e7403dbe98721ef.tar.gz
myconfigs-e511f8e110fa5200d667ebee2e7403dbe98721ef.tar.bz2
myconfigs-e511f8e110fa5200d667ebee2e7403dbe98721ef.zip
nvim: switch from ale and other tweaks
Diffstat (limited to 'config/nvim/ftplugin')
-rw-r--r--config/nvim/ftplugin/c.vim7
-rw-r--r--config/nvim/ftplugin/cpp.vim8
-rw-r--r--config/nvim/ftplugin/json.vim1
-rw-r--r--config/nvim/ftplugin/lua.vim2
-rw-r--r--config/nvim/ftplugin/nix.vim5
-rw-r--r--config/nvim/ftplugin/python.vim2
-rw-r--r--config/nvim/ftplugin/sh.vim2
-rw-r--r--config/nvim/ftplugin/tex.vim1
8 files changed, 0 insertions, 28 deletions
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 <F8> :ALENext<cr>
-nmap <F7> :ALEPrevious<cr>
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 <F8> :ALENext<cr>
-nmap <F7> :ALEPrevious<cr>
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 <F8> :ALENext<cr>
-nmap <F7> :ALEPrevious<cr>
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']