Add deno support
This commit is contained in:
parent
c14bba2448
commit
535c4396c8
1 changed files with 20 additions and 1 deletions
21
lsp.vim
21
lsp.vim
|
@ -79,5 +79,24 @@ let g:LanguageClient_serverCommands = {
|
|||
\ }
|
||||
|
||||
lua<<EOF
|
||||
require('lspconfig').tsserver.setup{}
|
||||
vim.g.markdown_fenced_languages = {
|
||||
"ts=typescript"
|
||||
}
|
||||
local lspconfig = require('lspconfig')
|
||||
local util = require('lspconfig.util')
|
||||
|
||||
lspconfig.denols.setup {
|
||||
on_attach = on_attach,
|
||||
root_dir = util.root_pattern("deno.json", "deno.jsonc"),
|
||||
init_options = {
|
||||
enabled = true,
|
||||
unstable = true
|
||||
}
|
||||
}
|
||||
|
||||
lspconfig.tsserver.setup {
|
||||
on_attach = on_attach,
|
||||
root_dir = util.root_pattern("package.json"),
|
||||
single_file_support = false
|
||||
}
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue