add javascript & typescript 🤮 support
This commit is contained in:
parent
b299ed09e2
commit
8d77e6d7e3
@ -11,6 +11,7 @@ return {
|
|||||||
{ "antosha417/nvim-lsp-file-operations", config = true },
|
{ "antosha417/nvim-lsp-file-operations", config = true },
|
||||||
"hrsh7th/vim-vsnip",
|
"hrsh7th/vim-vsnip",
|
||||||
"hrsh7th/vim-vsnip-integ",
|
"hrsh7th/vim-vsnip-integ",
|
||||||
|
"dmmulroy/tsc.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- https://github.com/folke/lazydev.nvim
|
-- https://github.com/folke/lazydev.nvim
|
||||||
@ -24,6 +25,9 @@ return {
|
|||||||
|
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
-- tsc: typescript compiler for full project typechecking
|
||||||
|
require("tsc").setup()
|
||||||
|
|
||||||
-- configure dart server (with special settings)
|
-- configure dart server (with special settings)
|
||||||
--[[
|
--[[
|
||||||
lspconfig["dartls"].setup({
|
lspconfig["dartls"].setup({
|
||||||
@ -158,5 +162,11 @@ return {
|
|||||||
},
|
},
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
require("lspconfig")["ts_ls"].setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
require("lspconfig")["eslint"].setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user