Add deno support

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

17
lsp.vim
View file

@ -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