Updated config away from deprections for lsp. Added JS, Vue LSPs.
This commit is contained in:
parent
baa2e07b0f
commit
0bd0090ae8
2 changed files with 14 additions and 9 deletions
21
init.lua
21
init.lua
|
|
@ -7,9 +7,9 @@ require("mason-lspconfig").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"pylsp",
|
"pylsp",
|
||||||
"clangd",
|
"clangd",
|
||||||
"gopls",
|
|
||||||
-- "dcm",
|
|
||||||
"ols",
|
"ols",
|
||||||
|
"ts_ls",
|
||||||
|
"vue_ls"
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -43,9 +43,14 @@ vim.keymap.set("n", "<Leader>l", function() harpoon:list():select(3) end)
|
||||||
vim.keymap.set("n", "<Leader>;", function() harpoon:list():select(4) end)
|
vim.keymap.set("n", "<Leader>;", function() harpoon:list():select(4) end)
|
||||||
|
|
||||||
|
|
||||||
local lspconfig = require('lspconfig')
|
--local lspconfig = require('lspconfig')
|
||||||
lspconfig.pylsp.setup{}
|
local lspconfig = vim.lsp.config
|
||||||
lspconfig.clangd.setup{}
|
local lspenable = vim.lsp.enable
|
||||||
lspconfig.gopls.setup{}
|
lspconfig("ts_ls", {
|
||||||
--lspconfig.dcm.setup{}
|
filetypes = {'js', 'ts', 'vue'},
|
||||||
lspconfig.ols.setup{}
|
})
|
||||||
|
lspenable("pylsp")
|
||||||
|
lspenable("clangd")
|
||||||
|
lspenable("ols")
|
||||||
|
lspenable("ts_ls")
|
||||||
|
lspenable("vue_ls")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue