Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f9a270ac3e | |||
| 517d0111aa |
+2
-2
@@ -13,8 +13,8 @@
|
||||
required = true
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
[merge]
|
||||
conflictstyle = diff3
|
||||
; [merge]
|
||||
; conflictstyle = diff3
|
||||
[delta]
|
||||
navigate = true
|
||||
light = false
|
||||
|
||||
@@ -442,6 +442,18 @@ local function makespec_lspconfig()
|
||||
lspconfig.pyright.setup({
|
||||
cmd = { "pyright-langserver", "--stdio", "--threads", "20" },
|
||||
filetypes = { "python" },
|
||||
root_dir = function(fname)
|
||||
local root_files = {
|
||||
".git",
|
||||
"pyproject.toml",
|
||||
"setup.py",
|
||||
"setup.cfg",
|
||||
"requirements.txt",
|
||||
"Pipfile",
|
||||
"pyrightconfig.json",
|
||||
}
|
||||
return lspconfig.util.root_pattern(unpack(root_files))(fname)
|
||||
end,
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
|
||||
Reference in New Issue
Block a user