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
|
||||
require 'lspconfig.server_configurations.satysfi_ls'
|
||||
lspconfig.satysfi_ls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
-- 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'),
|
||||
root_dir = vim.fs.root(0, ".git"),
|
||||
single_file_support = true,
|
||||
},
|
||||
docs = {
|
||||
|
@ -18,4 +18,3 @@ return {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue