update(nvim): update satysfi_ls config and its loading
This commit is contained in:
parent
49321cb4ff
commit
d8158947e5
2 changed files with 16 additions and 16 deletions
|
@ -666,6 +666,7 @@ lspconfig.julials.setup {
|
||||||
]] }
|
]] }
|
||||||
}
|
}
|
||||||
-- SATySFi
|
-- SATySFi
|
||||||
|
require 'lspconfig.server_configurations.satysfi_ls'
|
||||||
lspconfig.satysfi_ls.setup {
|
lspconfig.satysfi_ls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|
|
@ -1,21 +1,20 @@
|
||||||
-- https://zenn.dev/monaqa/articles/2021-12-10-satysfi-language-server
|
-- https://zenn.dev/monaqa/articles/2021-12-10-satysfi-language-server
|
||||||
local util = require 'lspconfig.util'
|
local configs = require 'lspconfig.configs'
|
||||||
|
|
||||||
return {
|
configs.satysfi_ls = {
|
||||||
default_config = {
|
|
||||||
cmd = { 'satysfi-language-server' },
|
|
||||||
filetypes = { 'satysfi' },
|
|
||||||
root_dir = util.root_pattern('.git'),
|
|
||||||
single_file_support = true,
|
|
||||||
},
|
|
||||||
docs = {
|
|
||||||
description = [[
|
|
||||||
https://github.com/monaqa/satysfi-language-server
|
|
||||||
Language server for SATySFi.
|
|
||||||
]],
|
|
||||||
default_config = {
|
default_config = {
|
||||||
root_dir = [[root_pattern(".git")]],
|
cmd = { 'satysfi-language-server' },
|
||||||
|
filetypes = { 'satysfi' },
|
||||||
|
root_dir = vim.fs.root(0, ".git"),
|
||||||
|
single_file_support = true,
|
||||||
|
},
|
||||||
|
docs = {
|
||||||
|
description = [[
|
||||||
|
https://github.com/monaqa/satysfi-language-server
|
||||||
|
Language server for SATySFi.
|
||||||
|
]],
|
||||||
|
default_config = {
|
||||||
|
root_dir = [[root_pattern(".git")]],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue