Refactor: Update neovim configuration
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.
This commit is contained in:
@@ -11,7 +11,6 @@ cmd "set tabstop=2"
|
||||
cmd "set shiftwidth=2"
|
||||
cmd "set expandtab"
|
||||
cmd "set nofoldenable"
|
||||
cmd "set pastetoggle=<F2>"
|
||||
|
||||
-- always show status
|
||||
cmd "set laststatus=2"
|
||||
@@ -65,3 +64,10 @@ vim.diagnostic.get(0, { severity = {
|
||||
} })
|
||||
vim.diagnostic.config({virtual_text = false, signs = true})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "rust",
|
||||
callback = function()
|
||||
vim.opt_local.shiftwidth = 4
|
||||
vim.opt_local.tabstop = 4
|
||||
end
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user