This commit refactors the neovim configuration to include several updates: - Added LSP support for Zig (`zls`). - Added `analyzer` and `zls` to `ale` linters. - Added `zigfmt` to `ale` fixers. - Added `towolf/vim-helm` as a plugin. - Added configuration for `lualine` to display Treesitter status. - Included SSH config from `conf.d/*.conf`. - Updated keymaps for LSP formatting. - Modified tabwidth and shiftwidth for rust files.
30 lines
795 B
Cheetah
30 lines
795 B
Cheetah
return {
|
|
"w0rp/ale",
|
|
lazy = false,
|
|
keys = {
|
|
{'<leader>=', '<Plug>(ale_fix)', mode = 'n'},
|
|
},
|
|
config = function ()
|
|
local g = vim.g
|
|
|
|
g.ale_linters = {
|
|
javascript = {'{{ if .nvim.js_linter }}{{ .nvim.js_linter }}{{ else }}eslint{{ end }}'},
|
|
typescript = {'{{ if .nvim.js_linter }}{{ .nvim.js_linter }}{{ else }}eslint{{ end }}'},
|
|
go = {'gopls'},
|
|
rust = {'analyzer'},
|
|
sh = {'shellcheck'},
|
|
zig = {'zls'},
|
|
}
|
|
|
|
g.ale_fixers = {
|
|
javascript = {'{{ if .nvim.js_fixer }}{{ .nvim.js_fixer }}{{ else }}eslint{{ end }}'},
|
|
typescript = {'{{ if .nvim.js_fixer }}{{ .nvim.js_fixer }}{{ else }}eslint{{ end }}'},
|
|
zig = {'zigfmt'},
|
|
}
|
|
|
|
g.ale_linters_explicit = 1
|
|
g.ale_lint_on_save = 1
|
|
g.ale_fix_on_save = 1
|
|
end
|
|
}
|