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,11 +1,11 @@
|
||||||
-- 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 = {
|
default_config = {
|
||||||
cmd = { 'satysfi-language-server' },
|
cmd = { 'satysfi-language-server' },
|
||||||
filetypes = { 'satysfi' },
|
filetypes = { 'satysfi' },
|
||||||
root_dir = util.root_pattern('.git'),
|
root_dir = vim.fs.root(0, ".git"),
|
||||||
single_file_support = true,
|
single_file_support = true,
|
||||||
},
|
},
|
||||||
docs = {
|
docs = {
|
||||||
|
@ -18,4 +18,3 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue