mirror of
https://github.com/itme-brain/nvim.git
synced 2026-05-08 07:00:13 -04:00
changes
This commit is contained in:
parent
31bac100ee
commit
14a67ba7d3
2 changed files with 24 additions and 3 deletions
|
|
@ -10,6 +10,10 @@ return {
|
|||
vim.cmd.colorscheme("anticuus")
|
||||
|
||||
local highlights = {
|
||||
Normal = { bg = "NONE" },
|
||||
NormalNC = { bg = "NONE" },
|
||||
EndOfBuffer = { bg = "NONE" },
|
||||
|
||||
Comment = { fg = "#5a5a5a", italic = true },
|
||||
["@comment"] = { fg = "#5a5a5a", italic = true },
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
-- Servers to ensure are installed via Mason.
|
||||
local mason_ensure_installed = {
|
||||
"lua_ls", -- Neovim config
|
||||
"nil_ls", -- Nix (nixd not available in Mason)
|
||||
"clangd", -- C/C++
|
||||
"bashls", -- Shell scripts
|
||||
"jsonls", -- JSON configs
|
||||
"html", -- HTML
|
||||
|
|
@ -25,9 +25,7 @@ local treesitter_parsers = {
|
|||
"markdown",
|
||||
"markdown_inline",
|
||||
"html",
|
||||
"html_tags",
|
||||
"javascript",
|
||||
"jsx",
|
||||
"css",
|
||||
"vim",
|
||||
"git_config",
|
||||
|
|
@ -214,6 +212,25 @@ return {
|
|||
ensure_installed = mason_ensure_installed,
|
||||
automatic_installation = false, -- Only install what's in ensure_installed
|
||||
})
|
||||
|
||||
local registry_ok, registry = pcall(require, "mason-registry")
|
||||
if not registry_ok then
|
||||
return
|
||||
end
|
||||
|
||||
registry.refresh(function()
|
||||
local package_ok, package = pcall(registry.get_package, "nil")
|
||||
if not package_ok then
|
||||
vim.notify_once("Mason registry does not include nil", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
|
||||
if package:is_installed() or package:is_installing() then
|
||||
return
|
||||
end
|
||||
|
||||
package:install()
|
||||
end)
|
||||
end
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue