Add a way to extend the mason installs with extra goodies like: DAPs, Linters, and Formatters. I've also included clang-format, however, it is not yet setup, make sure to do that and fix clang-tidy.
This commit is contained in:
parent
9cb44a8932
commit
34f6d00bdd
1 changed files with 8 additions and 1 deletions
|
|
@ -19,10 +19,17 @@ return {
|
|||
return vim.fn.fnamemodify(file, ":t:r")
|
||||
end, lua_files)
|
||||
|
||||
-- Create a new table which contains the non-lsp setups for Mason (linters, formatters, etc)
|
||||
local mason_installs = vim.list_extend({
|
||||
"clang-format",
|
||||
--"cmakelang",
|
||||
--"luaformater",
|
||||
}, server_names)
|
||||
|
||||
require("mason").setup()
|
||||
require("mason-lspconfig").setup()
|
||||
require("mason-tool-installer").setup({
|
||||
ensure_installed = server_names,
|
||||
ensure_installed = mason_installs,
|
||||
})
|
||||
require("mason-update-all").setup()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue