[nvim python] move to ruff + basedpyright
This commit is contained in:
		
							parent
							
								
									6c99dde079
								
							
						
					
					
						commit
						ab5fcc3fa0
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -84,7 +84,8 @@ return {
 | 
				
			||||||
        ensure_installed = {
 | 
					        ensure_installed = {
 | 
				
			||||||
          "lua_ls",
 | 
					          "lua_ls",
 | 
				
			||||||
          "gopls",
 | 
					          "gopls",
 | 
				
			||||||
          "pylsp",
 | 
					          "ruff",
 | 
				
			||||||
 | 
					          "basedpyright",
 | 
				
			||||||
          "tsserver",
 | 
					          "tsserver",
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        handlers = {
 | 
					        handlers = {
 | 
				
			||||||
| 
						 | 
					@ -105,16 +106,15 @@ return {
 | 
				
			||||||
      nvim_lsp.gopls.setup({})
 | 
					      nvim_lsp.gopls.setup({})
 | 
				
			||||||
      nvim_lsp.dartls.setup({})
 | 
					      nvim_lsp.dartls.setup({})
 | 
				
			||||||
      nvim_lsp.tsserver.setup({})
 | 
					      nvim_lsp.tsserver.setup({})
 | 
				
			||||||
      nvim_lsp.pylsp.setup({
 | 
					      nvim_lsp.ruff.setup({})
 | 
				
			||||||
 | 
					      nvim_lsp.basedpyright.setup({
 | 
				
			||||||
        settings = {
 | 
					        settings = {
 | 
				
			||||||
          pylsp = {
 | 
					          basedpyright = {
 | 
				
			||||||
            plugins = {
 | 
					            typeCheckingMode = "standard",
 | 
				
			||||||
              black = { enabled = true },
 | 
					 | 
				
			||||||
              isort = { enabled = true, profile = "black" },
 | 
					 | 
				
			||||||
            },
 | 
					 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
      })
 | 
					      }
 | 
				
			||||||
 | 
					      )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      lsp.setup()
 | 
					      lsp.setup()
 | 
				
			||||||
    end,
 | 
					    end,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue