minor changes with lspconfig

This commit is contained in:
siduck76 2021-04-17 23:02:16 +05:30
parent ac6afa334b
commit ebff217665
2 changed files with 9 additions and 6 deletions

View File

@ -39,7 +39,13 @@ function on_attach(client)
end
end
local servers = {"tsserver", "cssls", "html" , "pyright"}
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {on_attach = on_attach}
local lspconf = require "lspconfig"
local servers = {"html", "cssls", "tsserver", "pyright"}
for k, lang in pairs(servers) do
lspconf[lang].setup {
root_dir = function()
return vim.loop.cwd()
end
}
end

View File

@ -29,8 +29,5 @@ return require("packer").startup(
use "nvim-telescope/telescope-media-files.nvim"
use "nvim-lua/popup.nvim"
use "karb94/neoscroll.nvim"
use "nekonako/xresources-nvim"
end
)