add: update config default python

This commit is contained in:
asep.komarudin 2024-06-28 21:29:11 +07:00
parent e3ebfb7a5b
commit 3388bdd1d7
4 changed files with 34 additions and 10 deletions

View file

@ -102,6 +102,30 @@ if pcode.active_python_config then
{ "<Leader>TS", function() require("neotest").run.stop() end, desc = "Stop" },
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "python" })
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "pyright" })
end,
},
{
"stevearc/conform.nvim",
event = "VeryLazy",
opts = function(_, opts)
local package = "black"
require("user.utils.masoncfg").try_install("flake8")
require("user.utils.masoncfg").try_install("black")
opts.formatters_by_ft.python = { package }
end,
},
}
if vim.fn.has("win32") ~= 0 then
table.insert(M, nvim_dap)