Add deno support
This commit is contained in:
parent
c14bba2448
commit
a77f35ad55
1 changed files with 16 additions and 1 deletions
17
lsp.vim
17
lsp.vim
|
@ -79,5 +79,20 @@ let g:LanguageClient_serverCommands = {
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
lua<<EOF
|
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"),
|
||||||
|
}
|
||||||
|
|
||||||
|
lspconfig.tsserver.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
root_dir = util.root_pattern("package.json"),
|
||||||
|
single_file_support = false
|
||||||
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue