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

21 lines
432 B
Lua
Raw Normal View History

2024-04-06 13:39:53 +00:00
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")]],
},
},
}