mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
minor changes with lspconfig
This commit is contained in:
parent
ac6afa334b
commit
ebff217665
2 changed files with 9 additions and 6 deletions
|
@ -39,7 +39,13 @@ function on_attach(client)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local servers = {"tsserver", "cssls", "html" , "pyright"}
|
local lspconf = require "lspconfig"
|
||||||
for _, lsp in ipairs(servers) do
|
local servers = {"html", "cssls", "tsserver", "pyright"}
|
||||||
nvim_lsp[lsp].setup {on_attach = on_attach}
|
|
||||||
|
for k, lang in pairs(servers) do
|
||||||
|
lspconf[lang].setup {
|
||||||
|
root_dir = function()
|
||||||
|
return vim.loop.cwd()
|
||||||
|
end
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -29,8 +29,5 @@ return require("packer").startup(
|
||||||
use "nvim-telescope/telescope-media-files.nvim"
|
use "nvim-telescope/telescope-media-files.nvim"
|
||||||
use "nvim-lua/popup.nvim"
|
use "nvim-lua/popup.nvim"
|
||||||
use "karb94/neoscroll.nvim"
|
use "karb94/neoscroll.nvim"
|
||||||
|
|
||||||
use "nekonako/xresources-nvim"
|
|
||||||
|
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue