[nvim python] move to ruff + pylsp
This commit is contained in:
parent
ab5fcc3fa0
commit
09159c8184
2 changed files with 12 additions and 7 deletions
|
@ -18,13 +18,13 @@
|
|||
"mini.indentscope": { "branch": "main", "commit": "f0d7faa064c892b96997810afcddfadc3f2a15b3" },
|
||||
"mini.nvim": { "branch": "main", "commit": "f1dd64cf2ac1b348bd440e59446abf680c7188d6" },
|
||||
"neo-tree.nvim": { "branch": "main", "commit": "974bbd434c25dc625185571b0455c831cfdde067" },
|
||||
"neoscroll.nvim": { "branch": "master", "commit": "532dcc8cea4287c4cad6bb77532989a8217cfc7b" },
|
||||
"noice.nvim": { "branch": "main", "commit": "e5cb20c6e14305d24025ecb77d7d4dd9d61f1a64" },
|
||||
"nui.nvim": { "branch": "main", "commit": "322978c734866996274467de084a95e4f9b5e0b1" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" },
|
||||
"nvim-base16": { "branch": "master", "commit": "6ac181b5733518040a33017dde654059cd771b7c" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||
"nvim-dap-python": { "branch": "master", "commit": "7c427e2bbc72d46ea3c9602bede6465ef61b8c19" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "4d38bece98300e3e5cd24a9aa0d0ebfea4951c16" },
|
||||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "3b5704440f88ecc98fb5afb5378b95acd4b2fa7f" },
|
||||
|
@ -38,6 +38,7 @@
|
|||
"todo-comments.nvim": { "branch": "main", "commit": "70a93ce66083699571adc361166504b03cc39c2b" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "4d0f0454ae2a246ec3e0ff541a347164dac23b7b" },
|
||||
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
|
||||
"venv-selector.nvim": { "branch": "main", "commit": "f16c25bf16ac6e8bbdbcc9e9b3a1a00729d00c99" },
|
||||
"vim-ditto": { "branch": "master", "commit": "c21f0e2f651e0ae87788390dca2fb97af7fb8fcf" },
|
||||
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "0099511294f16b81c696004fa6a403b0ae61f7a0" },
|
||||
|
|
|
@ -85,7 +85,8 @@ return {
|
|||
"lua_ls",
|
||||
"gopls",
|
||||
"ruff",
|
||||
"basedpyright",
|
||||
"ruff_lsp",
|
||||
"pylsp",
|
||||
"tsserver",
|
||||
},
|
||||
handlers = {
|
||||
|
@ -107,14 +108,17 @@ return {
|
|||
nvim_lsp.dartls.setup({})
|
||||
nvim_lsp.tsserver.setup({})
|
||||
nvim_lsp.ruff.setup({})
|
||||
nvim_lsp.basedpyright.setup({
|
||||
nvim_lsp.ruff_lsp.setup({})
|
||||
nvim_lsp.pylsp.setup({
|
||||
settings = {
|
||||
basedpyright = {
|
||||
typeCheckingMode = "standard",
|
||||
pylsp = {
|
||||
plugins = {
|
||||
black = { enabled = true },
|
||||
isort = { enabled = true, profile = "black" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
lsp.setup()
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue