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 = {
|
||||
"pylsp",
|
||||
"clangd",
|
||||
"gopls",
|
||||
-- "dcm",
|
||||
"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)
|
||||
|
||||
|
||||
local lspconfig = require('lspconfig')
|
||||
lspconfig.pylsp.setup{}
|
||||
lspconfig.clangd.setup{}
|
||||
lspconfig.gopls.setup{}
|
||||
--lspconfig.dcm.setup{}
|
||||
lspconfig.ols.setup{}
|
||||
--local lspconfig = require('lspconfig')
|
||||
local lspconfig = vim.lsp.config
|
||||
local lspenable = vim.lsp.enable
|
||||
lspconfig("ts_ls", {
|
||||
filetypes = {'js', 'ts', 'vue'},
|
||||
})
|
||||
lspenable("pylsp")
|
||||
lspenable("clangd")
|
||||
lspenable("ols")
|
||||
lspenable("ts_ls")
|
||||
lspenable("vue_ls")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue