Idk why * doesnt configure all lsps
This commit is contained in:
@@ -47,6 +47,8 @@ return {
|
|||||||
|
|
||||||
-- lua
|
-- lua
|
||||||
vim.lsp.config("lua_ls", {
|
vim.lsp.config("lua_ls", {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
hint = {
|
hint = {
|
||||||
@@ -87,6 +89,8 @@ return {
|
|||||||
|
|
||||||
-- python
|
-- python
|
||||||
vim.lsp.config("pyright", {
|
vim.lsp.config("pyright", {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
before_init = function(_, config)
|
before_init = function(_, config)
|
||||||
local python_path = get_python_path(config.root_dir)
|
local python_path = get_python_path(config.root_dir)
|
||||||
if python_path == nil then
|
if python_path == nil then
|
||||||
@@ -130,6 +134,8 @@ return {
|
|||||||
|
|
||||||
-- powershell
|
-- powershell
|
||||||
vim.lsp.config("powershell_es", {
|
vim.lsp.config("powershell_es", {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
bundle_path = vim.fn.stdpath("data") .. "/mason/packages/powershell-editor-services",
|
bundle_path = vim.fn.stdpath("data") .. "/mason/packages/powershell-editor-services",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user