nvim/pack/acp/opt/nvim-lspconfig/lua/lspconfig/server_configurations/zls.lua

21 lines
483 B
Lua
Raw Normal View History

2022-01-10 11:08:46 +00:00
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'zls' },
filetypes = { 'zig', 'zir' },
root_dir = util.root_pattern('zls.json', '.git'),
single_file_support = true,
},
docs = {
description = [[
https://github.com/zigtools/zls
`Zig LSP implementation + Zig Language Server`.
]],
default_config = {
root_dir = [[util.root_pattern("zls.json", ".git") or current_file_dirname]],
},
},
}