fix: new lsp

This commit is contained in:
2024-04-29 19:06:42 +08:00
parent cabec5bd63
commit 27dff38b7c
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -26,8 +26,9 @@ alias gtc="go test -gcflags=all=-l -cover ./..."
alias swg="swag init -o docs -g " alias swg="swag init -o docs -g "
alias sws="swagger serve -F=swagger" alias sws="swagger serve -F=swagger"
function gtr function gtr
go test -gcflags=all=-l -v -run="$1" go test -gcflags=all=-l -v -run=$argv
end end
+15
View File
@@ -134,6 +134,21 @@ return {
init_options = { usePlaceholders = true, completeUnimported = true }, init_options = { usePlaceholders = true, completeUnimported = true },
}, },
}, },
pylsp = {
setup = {
cmd = { "pylyzer", "--server" },
filetypes = { "python" },
settings = {
python = {
checkOnType = false,
diagnostics = true,
inlayHints = true,
smartCompletion = true
}
},
single_file_support = true,
}
}
}, },
setup = {}, setup = {},
}, },