moved mason to its own file

This commit is contained in:
2024-06-14 23:52:06 +02:00
parent 51812867b2
commit 48e0a8f399
2 changed files with 68 additions and 34 deletions

42
lua/plugins/mason.lua Normal file
View File

@ -0,0 +1,42 @@
return {
'williamboman/mason.nvim',
dependencies = {
'williamboman/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim',
},
build = ':MasonUpdate',
branch = 'master',
config = function()
require('mason').setup({
ui = {
border = 'rounded',
},
})
require('mason-lspconfig').setup({
automatic_installation = false,
ensure_installed = {
'clangd',
'basedpyright',
-- 'neocmake',
'efm',
'lua_ls',
'jsonls',
'markdown_oxide',
},
})
require('mason-tool-installer').setup({
-- a list of all tools you want to ensure are installed upon
-- start
ensure_installed = {
'black',
'flake8',
'isort',
'prettier',
'stylua',
'gersemi',
'cmakelang',
},
})
end,
}