mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-14 15:09:44 +00:00
23
nvim/lua/plugins/mason.lua
Normal file
23
nvim/lua/plugins/mason.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
-- mason.lua - LSP/DAP/格式化工具自动安装
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
build = ":MasonUpdate",
|
||||
config = true,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
opts = {
|
||||
ensure_installed = { "gopls", "pyright" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
dependencies = { "williamboman/mason.nvim", "nvimtools/none-ls.nvim" },
|
||||
opts = {
|
||||
ensure_installed = { "gofumpt", "golines", "black", "isort", "flake8" },
|
||||
automatic_installation = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user