Auto install linters, formatters, et c
This commit is contained in:
parent
dca203ce33
commit
8ab9357362
2 changed files with 13 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ local palette = {
|
|||
}
|
||||
|
||||
require("no-clown-fiesta").setup({
|
||||
transparent = true, -- Enable this to disable the bg color
|
||||
transparent = true,
|
||||
})
|
||||
|
||||
vim.cmd[[
|
||||
|
|
@ -90,6 +90,7 @@ hl(0, 'TSConstant', { fg = palette.yellow })
|
|||
hl(0, 'EndOfBuffer', { fg = palette.medium_gray })
|
||||
hl(0, 'ErrorMsg', { fg = palette.yellow })
|
||||
hl(0, 'LineNr', { fg = palette.medium_gray })
|
||||
hl(0, 'MasonNormal', { bg = palette.gray })
|
||||
hl(0, 'NvimTreeCursorLine', { fg = palette.yellow })
|
||||
hl(0, 'NvimTreeEndOfBuffer', { fg = palette.medium_gray })
|
||||
hl(0, 'NvimTreeIndentMarker', { fg = palette.medium_gray })
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ lsp.ensure_installed({
|
|||
"bashls", -- Bash
|
||||
})
|
||||
|
||||
local ensure_installed_extras = {
|
||||
}
|
||||
|
||||
local cmp = require("cmp")
|
||||
local cmp_select = {behavior = cmp.SelectBehavior.Select}
|
||||
local cmp_mappings = lsp.defaults.cmp_mappings({
|
||||
|
|
@ -51,3 +54,11 @@ lsp.configure('pyright', {
|
|||
|
||||
lsp.setup()
|
||||
|
||||
-- Install extra packages (linters, formatters, et c)
|
||||
local registry = require("mason-registry")
|
||||
for _, extra in ipairs(ensure_installed_extras) do
|
||||
if not registry.is_installed(extra) then
|
||||
vim.cmd(string.format("MasonInstall %s", extra))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue