1
0

Categorize plugins into core, extra, and colorschemes

This commit is contained in:
Patrick Auernig 2024-12-06 19:42:17 +01:00
parent 18af4a2620
commit 38203fbe76
30 changed files with 116 additions and 119 deletions

View File

@ -55,6 +55,8 @@ require("lazy").setup({
border = "rounded", border = "rounded",
}, },
spec = { spec = {
{ import = "valeth.plugins" }, { import = "valeth.plugins.colorschemes" },
{ import = "valeth.plugins.core" },
{ import = "valeth.plugins.extra" },
} }
}) })

View File

@ -22,6 +22,9 @@ vim.opt.fillchars:append({ eob = "·" })
vim.g.mapleader = " " vim.g.mapleader = " "
vim.diagnostic.config({
virtual_text = false,
})
augroup("valeth", { clear = true }) augroup("valeth", { clear = true })

View File

@ -1,42 +0,0 @@
local ayu_spec = {
"valeth/ayu-nvim",
branch = "fold-column-fg",
enabled = false,
lazy = false,
priority = 1000,
config = function()
vim.g.ayu_mirage = true
vim.cmd.colorscheme("ayu")
end
}
local catppuccin_spec = {
"catppuccin/nvim",
name = "catppuccin",
enabled = true,
lazy = false,
priority = 1000,
config = function()
require("catppuccin").setup({
custom_highlights = function(colors)
return {
Folded = { bg = colors.none },
UfoFoldedEllipsis = { fg = colors.blue, bg = colors.none },
}
end,
integrations = {
mason = true,
noice = true,
harpoon = true,
lsp_trouble = true,
which_key = true,
}
})
vim.cmd.colorscheme("catppuccin")
end
}
return {
ayu_spec, catppuccin_spec
}

View File

@ -0,0 +1,16 @@
local spec = {
"valeth/ayu-nvim",
branch = "fold-column-fg",
enabled = false,
lazy = false,
priority = 1000,
}
spec.config = function()
vim.g.ayu_mirage = true
vim.cmd.colorscheme("ayu")
end
return spec

View File

@ -0,0 +1,31 @@
local spec = {
"catppuccin/nvim",
name = "catppuccin",
enabled = true,
lazy = false,
priority = 1000,
};
spec.config = function()
require("catppuccin").setup({
custom_highlights = function(colors)
return {
Folded = { bg = colors.none },
UfoFoldedEllipsis = { fg = colors.blue, bg = colors.none },
}
end,
integrations = {
mason = true,
noice = true,
harpoon = true,
lsp_trouble = true,
which_key = true,
}
})
vim.cmd.colorscheme("catppuccin")
end
return spec

View File

@ -0,0 +1,4 @@
return {
"stevearc/dressing.nvim",
opts = {},
}

View File

@ -0,0 +1,13 @@
return {
"lukas-reineke/indent-blankline.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
main = "ibl",
opts = {
scope = {
show_start = false,
}
}
}

View File

@ -1,10 +1,10 @@
local spec = { local spec = {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
}
} }
spec.dependencies = {
"nvim-tree/nvim-web-devicons",
}
local function macro_recording() local function macro_recording()
local reg = vim.fn.reg_recording() local reg = vim.fn.reg_recording()
@ -16,6 +16,7 @@ local function macro_recording()
return "REC @ " .. reg return "REC @ " .. reg
end end
spec.config = function() spec.config = function()
require("lualine").setup({ require("lualine").setup({
sections = { sections = {
@ -40,4 +41,5 @@ spec.config = function()
}) })
end end
return spec return spec

View File

@ -0,0 +1,36 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
opts = {
notify = {
-- keep this disabled until I find a solution to make it less obnoxious
enabled = false
},
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
},
presets = {
command_palette = true,
lsp_doc_border = true,
},
messages = {
view = "mini",
},
views = {
notify = {
replace = true,
},
},
},
keys = {
{ "<leader>nd", "<cmd>NoiceDismiss<CR>", desc = "Dismiss all noice messages" },
},
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
}
}

View File

@ -0,0 +1,5 @@
return {
"cameron-wags/rainbow_csv.nvim",
ft = "csv",
opts = {},
}

View File

@ -1,15 +0,0 @@
local spec = {
"lukas-reineke/indent-blankline.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
main = "ibl",
}
spec.opts = {
scope = {
show_start = false,
}
}
return spec

View File

@ -1,16 +0,0 @@
vim.diagnostic.config({
virtual_text = false,
})
return {
{
"cameron-wags/rainbow_csv.nvim",
ft = "csv",
opts = {},
},
{
"stevearc/dressing.nvim",
opts = {},
},
}

View File

@ -1,42 +0,0 @@
local spec = {
"folke/noice.nvim",
}
spec.event = "VeryLazy"
spec.opts = {
notify = {
-- keep this disabled until I find a solution to make it less obnoxious
enabled = false
},
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
},
presets = {
command_palette = true,
lsp_doc_border = true,
},
messages = {
view = "mini",
},
views = {
notify = {
replace = true,
},
},
}
spec.keys = {
{ "<leader>nd", "<cmd>NoiceDismiss<CR>", desc = "Dismiss all noice messages" },
}
spec.dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
}
return spec