11return {
2- {
3- " AstroNvim/astrolsp" ,
4- optional = true ,
5- --- @type AstroLSPOpts
6- opts = {
7- --- @diagnostic disable : missing-fields
8- config = {
9- basedpyright = {
10- before_init = function (_ , c )
11- if not c .settings then c .settings = {} end
12- if not c .settings .python then c .settings .python = {} end
13- c .settings .python .pythonPath = vim .fn .exepath " python"
14- end ,
15- settings = {
16- basedpyright = {
17- analysis = {
18- typeCheckingMode = " basic" ,
19- autoImportCompletions = true ,
20- diagnosticSeverityOverrides = {
21- reportUnusedImport = " information" ,
22- reportUnusedFunction = " information" ,
23- reportUnusedVariable = " information" ,
24- reportGeneralTypeIssues = " none" ,
25- reportOptionalMemberAccess = " none" ,
26- reportOptionalSubscript = " none" ,
27- reportPrivateImportUsage = " none" ,
28- },
29- },
30- },
31- },
32- },
33- },
34- },
35- },
362 {
373 " nvim-treesitter/nvim-treesitter" ,
384 optional = true ,
@@ -42,20 +8,6 @@ return {
428 end
439 end ,
4410 },
45- {
46- " williamboman/mason-lspconfig.nvim" ,
47- optional = true ,
48- opts = function (_ , opts )
49- opts .ensure_installed = require (" astrocore" ).list_insert_unique (opts .ensure_installed , { " basedpyright" })
50- end ,
51- },
52- {
53- " jay-babu/mason-null-ls.nvim" ,
54- optional = true ,
55- opts = function (_ , opts )
56- opts .ensure_installed = require (" astrocore" ).list_insert_unique (opts .ensure_installed , { " black" , " isort" })
57- end ,
58- },
5911 {
6012 " jay-babu/mason-nvim-dap.nvim" ,
6113 optional = true ,
@@ -69,8 +21,7 @@ return {
6921 " WhoIsSethDaniel/mason-tool-installer.nvim" ,
7022 optional = true ,
7123 opts = function (_ , opts )
72- opts .ensure_installed =
73- require (" astrocore" ).list_insert_unique (opts .ensure_installed , { " basedpyright" , " black" , " isort" , " debugpy" })
24+ opts .ensure_installed = require (" astrocore" ).list_insert_unique (opts .ensure_installed , { " debugpy" })
7425 end ,
7526 },
7627 {
@@ -116,13 +67,4 @@ return {
11667 table.insert (opts .adapters , require " neotest-python" (require (" astrocore" ).plugin_opts " neotest-python" ))
11768 end ,
11869 },
119- {
120- " stevearc/conform.nvim" ,
121- optional = true ,
122- opts = {
123- formatters_by_ft = {
124- python = { " isort" , " black" },
125- },
126- },
127- },
12870}
0 commit comments