mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 03:50:05 +08:00
23 lines
574 B
Lua
23 lines
574 B
Lua
|
local configs = require 'lspconfig/configs'
|
||
|
local util = require 'lspconfig/util'
|
||
|
|
||
|
configs.zls = {
|
||
|
default_config = {
|
||
|
cmd = { 'zls' },
|
||
|
filetypes = { 'zig', 'zir' },
|
||
|
root_dir = function(fname)
|
||
|
return util.root_pattern('zls.json', '.git')(fname) or util.path.dirname(fname)
|
||
|
end,
|
||
|
},
|
||
|
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]],
|
||
|
},
|
||
|
},
|
||
|
}
|