|
|
@ -1,24 +1,28 @@ |
|
|
|
---@type LazySpec |
|
|
|
return { |
|
|
|
{ |
|
|
|
"neovim/nvim-lspconfig", |
|
|
|
config = function() |
|
|
|
require("lspconfig").pyright.setup { |
|
|
|
settings = { |
|
|
|
python = { |
|
|
|
analysis = { |
|
|
|
autoSearchPaths = true, |
|
|
|
diagnosticMode = "workspace", |
|
|
|
useLibraryCodeForTypes = true, |
|
|
|
typeCheckingMode = "off", |
|
|
|
}, |
|
|
|
dependencies = { |
|
|
|
{ |
|
|
|
"folke/lazydev.nvim", |
|
|
|
ft = "lua", |
|
|
|
opts = { |
|
|
|
library = { |
|
|
|
{ path = "${3rd}/luv/library", words = { "vim%.uv" } }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
config = function() |
|
|
|
local capabilities = require("cmp_nvim_lsp").default_capabilities() |
|
|
|
local lspconfig = require "lspconfig" |
|
|
|
lspconfig.lua_ls.setup { capabilities = capabilities } |
|
|
|
end, |
|
|
|
}, |
|
|
|
{ |
|
|
|
"williamboman/mason-lspconfig.nvim", |
|
|
|
dependencies = { |
|
|
|
{ "williamboman/mason.nvim" }, |
|
|
|
}, |
|
|
|
opts = { |
|
|
|
ensure_installed = { |
|
|
|
"lua_ls", |
|
|
|