update(nvim): update satysfi_ls config and its loading

This commit is contained in:
qwjyh 2024-10-11 14:26:09 +09:00
parent 49321cb4ff
commit d8158947e5
2 changed files with 16 additions and 16 deletions

View file

@ -666,6 +666,7 @@ lspconfig.julials.setup {
]] }
}
-- SATySFi
require 'lspconfig.server_configurations.satysfi_ls'
lspconfig.satysfi_ls.setup {
on_attach = on_attach,
capabilities = capabilities,

View file

@ -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 {
},
},
}