diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index d7bdd8e..7097cb2 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -138,3 +138,10 @@ cmp.setup({ vim.api.nvim_set_keymap('n', '', "lua require('fzf-lua').files()", { noremap = true, silent = true }) + + +----------------------------------------------------------- +-- satysfi language server +require('lspconfig')['satysfi-ls'].setup{ + autostart = true +} diff --git a/dotfiles/neovim/lua/lspconfig/server_configuration/satysfi-ls.lua b/dotfiles/neovim/lua/lspconfig/server_configuration/satysfi-ls.lua new file mode 100644 index 0000000..78e30f7 --- /dev/null +++ b/dotfiles/neovim/lua/lspconfig/server_configuration/satysfi-ls.lua @@ -0,0 +1,20 @@ +# https://zenn.dev/monaqa/articles/2021-12-10-satysfi-language-server +local util = require 'lspconfig.util' + +return { + 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 = { + root_dir = [[root_pattern(".git")]], + }, + }, +}