diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-09-09 09:30:05 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-09-09 09:30:05 +0200 |
| commit | efd1723e99fdc8801bad742fd39a059c83f32c41 (patch) | |
| tree | a2e72c2203b9682891455a250dc15c6adb2c0c06 /nvim/lua/plugins/lint.lua | |
| parent | e54d08a1d91bdb855a17f91e42df72dda8f56cc2 (diff) | |
| download | dotfiles-efd1723e99fdc8801bad742fd39a059c83f32c41.tar.gz dotfiles-efd1723e99fdc8801bad742fd39a059c83f32c41.tar.bz2 dotfiles-efd1723e99fdc8801bad742fd39a059c83f32c41.zip | |
zsh als Linter hinzugefügt
Diffstat (limited to 'nvim/lua/plugins/lint.lua')
| -rw-r--r-- | nvim/lua/plugins/lint.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nvim/lua/plugins/lint.lua b/nvim/lua/plugins/lint.lua index e9455ad..f1d3b78 100644 --- a/nvim/lua/plugins/lint.lua +++ b/nvim/lua/plugins/lint.lua | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | -- shellcheck läuft in bashls, clang-tidy in clangd, ansible-lint in ansiblels. | 4 | -- shellcheck läuft in bashls, clang-tidy in clangd, ansible-lint in ansiblels. |
| 5 | 5 | ||
| 6 | local ruff = { "ruff" } -- bereits als Formatter installiert, siehe plugins/format.lua | 6 | local ruff = { "ruff" } -- bereits als Formatter installiert, siehe plugins/format.lua |
| 7 | local zsh = { "zsh" } -- kein zusätzliches Werkzeug: ruft `zsh --no-exec` auf | ||
| 7 | 8 | ||
| 8 | return { | 9 | return { |
| 9 | "mfussenegger/nvim-lint", | 10 | "mfussenegger/nvim-lint", |
| @@ -11,9 +12,11 @@ return { | |||
| 11 | config = function() | 12 | config = function() |
| 12 | local lint = require("lint") | 13 | local lint = require("lint") |
| 13 | 14 | ||
| 14 | -- ergänzt die Typprüfung von basedpyright um die Lint-Regeln (F, E, UP, B ...) | ||
| 15 | lint.linters_by_ft = { | 15 | lint.linters_by_ft = { |
| 16 | -- ergänzt die Typprüfung von basedpyright um die Lint-Regeln (F, E, UP, B ...) | ||
| 16 | python = ruff, | 17 | python = ruff, |
| 18 | -- Syntaxprüfung ohne Ausführung; bashls deckt nur sh und bash ab | ||
| 19 | zsh = zsh, | ||
| 17 | } | 20 | } |
| 18 | 21 | ||
| 19 | vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, { | 22 | vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, { |
