Add deno support

This commit is contained in:
Thomas Gideon 2023-02-16 11:41:01 -05:00
parent c14bba2448
commit 535c4396c8

21
lsp.vim
View file

@ -79,5 +79,24 @@ 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"),
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 EOF