(WIP) add nvim satysfi configs (need more config for lsp-config)

This commit is contained in:
qwjyh 2022-10-07 04:03:59 +09:00
parent e1138795c0
commit c7d7b4204e
2 changed files with 27 additions and 0 deletions

View file

@ -138,3 +138,10 @@ cmp.setup({
vim.api.nvim_set_keymap('n', '<c-P>', vim.api.nvim_set_keymap('n', '<c-P>',
"<cmd>lua require('fzf-lua').files()<CR>", "<cmd>lua require('fzf-lua').files()<CR>",
{ noremap = true, silent = true }) { noremap = true, silent = true })
-----------------------------------------------------------
-- satysfi language server
require('lspconfig')['satysfi-ls'].setup{
autostart = true
}

View file

@ -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")]],
},
},
}