mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update: 2024-10-31
This commit is contained in:
16
lua/plugins/lsp/basedpyright.lua
Normal file
16
lua/plugins/lsp/basedpyright.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
local M = {}
|
||||
|
||||
M.setup = function(lsp, capabilities)
|
||||
lsp.basedpyright.setup({
|
||||
capabilities = capabilities,
|
||||
basedpyright = {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
diagnosticMode = "openFilesOnly",
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
17
lua/plugins/lsp/pylyzer.lua
Normal file
17
lua/plugins/lsp/pylyzer.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
local M = {}
|
||||
|
||||
M.setup = function(lsp, capabilities)
|
||||
lsp.pylyzer.setup({
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
python = {
|
||||
diagnostics = true,
|
||||
inlayHints = true,
|
||||
smartCompletion = true,
|
||||
checkOnType = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -1,14 +0,0 @@
|
||||
local M = {}
|
||||
|
||||
M.setup = function(lsp, capabilities)
|
||||
capabilities = capabilities
|
||||
lsp.ruff_lsp.setup({
|
||||
init_options = {
|
||||
settings = {
|
||||
args = {},
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -135,7 +135,8 @@ return {
|
||||
"emmet_ls",
|
||||
"html",
|
||||
"jedi_language_server",
|
||||
"tinymist",
|
||||
-- "basedpyright",
|
||||
-- "tinymist",
|
||||
"lua_ls",
|
||||
"tailwindcss",
|
||||
"texlab",
|
||||
@@ -161,8 +162,11 @@ return {
|
||||
htmx = function()
|
||||
lsp.htmx.setup(html_opts)
|
||||
end,
|
||||
ruff_lsp = function()
|
||||
require("plugins.lsp.ruff").setup(lsp, lsp_capabilities)
|
||||
pylyzer = function()
|
||||
require("plugins.lsp.pylyzer").setup(lsp, lsp_capabilities)
|
||||
end,
|
||||
basedpyright = function()
|
||||
require("plugins.lsp.basedpyright").setup(lsp, lsp_capabilities)
|
||||
end,
|
||||
jinja_lsp = function()
|
||||
lsp.jinja_lsp.setup(html_opts)
|
||||
|
||||
@@ -19,7 +19,7 @@ return {
|
||||
languages = {
|
||||
python = {
|
||||
template = {
|
||||
annotation_convention = "google_docstrings", -- google_docstrings, numpydoc, reST
|
||||
annotation_convention = "numpydoc", -- google_docstrings, numpydoc, reST
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user