neovim: Configure zig
This commit is contained in:
parent
e9fc8e913d
commit
0144cb903d
2 changed files with 7 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ return {
|
|||
"ntpeters/vim-better-whitespace",
|
||||
init = function()
|
||||
vim.g.better_whitespace_enabled = 1
|
||||
vim.g.better_whitespace_filetypes_blacklist = { 'diff' }
|
||||
vim.g.better_whitespace_filetypes_blacklist = { 'diff', 'zig' }
|
||||
vim.g.strip_whitespace_on_save = 1
|
||||
vim.g.strip_whitespace_confirm = 0
|
||||
vim.g.better_whitespace_operator = ''
|
||||
|
|
|
|||
|
|
@ -453,6 +453,12 @@ return {
|
|||
|
||||
["eslint"] = default_setup_nofmt,
|
||||
["ts_ls"] = default_setup_nofmt,
|
||||
["zls"] = function()
|
||||
-- The default filetype competes with zls formatting, so skip it.
|
||||
-- TODO(neovim v0.11): This will become the default.
|
||||
vim.g.zig_fmt_autosave = 0
|
||||
default_setup("zls")
|
||||
end,
|
||||
|
||||
["gopls"] = function()
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue