nvim/pack/acp/start/nvim-lspconfig/lua/lspconfig/server_configurations/ols.lua

20 lines
432 B
Lua

local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'ols' },
filetypes = { 'odin' },
root_dir = util.root_pattern('ols.json', '.git'),
single_file_support = true,
},
docs = {
description = [[
https://github.com/DanielGavin/ols
`Odin Language Server`.
]],
default_config = {
root_dir = [[util.root_pattern("ols.json", ".git")]],
},
},
}