(WIP) add nvim satysfi configs (need more config for lsp-config)
This commit is contained in:
parent
e1138795c0
commit
c7d7b4204e
2 changed files with 27 additions and 0 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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")]],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in a new issue