This commit is contained in:
benji.benji committed 2026-09-27 12:37:38 +02:00
1 parent 8a30e0caf6
commit cdfe320c96
10 files changed
+564 -215

No files matched your search

+274
View File
@@ -0,0 +1,274 @@
-- since this is just an example spec, don't actually load anything here and return an empty spec
-- stylua: ignore
-- if true then return {} end
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
--
-- In your plugin files, you can:
-- * add extra plugins
-- * disable/enabled LazyVim plugins
-- * override the configuration of LazyVim plugins
return {
-- Configure LazyVim to load gruvbox
{
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin",
},
},
-- change trouble config
{
"folke/trouble.nvim",
-- opts will be merged with the parent spec
opts = { use_diagnostic_signs = true },
},
-- disable trouble
{ "folke/trouble.nvim", enabled = false },
-- override nvim-cmp and add cmp-emoji
{
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-emoji" },
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, { name = "emoji" })
end,
},
-- change some telescope options and a keymap to browse plugin files
{
"nvim-telescope/telescope.nvim",
keys = {
-- add a keymap to browse plugin files
-- stylua: ignore
{
"<leader>fp",
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end,
desc = "Find Plugin File",
},
},
-- change some options
opts = {
defaults = {
layout_strategy = "horizontal",
layout_config = { prompt_position = "top" },
sorting_strategy = "ascending",
winblend = 0,
},
},
},
-- add pyright to lspconfig
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
pyright = {},
asm_lsp = {},
emmet_language_server = {},
},
},
},
-- add more treesitter parsers
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
"html",
"javascript",
"json",
"lua",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
},
},
-- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above
-- would overwrite `ensure_installed` with the new value.
-- If you'd rather extend the default config, use the code below instead:
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
-- add tsx and treesitter
vim.list_extend(opts.ensure_installed, {
"java",
"tsx",
"typescript",
"systemverilog",
"vue",
"zig",
})
end,
},
-- the opts function can also be used to change the default opts:
{
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
opts = function(_, opts)
-- Sanity check: print to :messages so we know it ran
vim.schedule(function() print("⏱️ lualine override loaded") end)
-- 1) Ensure opts.options exists, then override the theme:
opts.options = opts.options or {}
opts.options.theme = "catppuccin"
-- 2) Ensure the lualine_x section exists, then append your smile:
opts.sections = opts.sections or {}
opts.sections.lualine_x = opts.sections.lualine_x or {}
table.insert(opts.sections.lualine_x, {
function() return "😄" end,
})
-- 3) Return the modified opts so LazyVim applies them:
return opts
end,
},
-- add any tools you want to have installed below
{
"mason-org/mason.nvim",
opts = {
ensure_installed = {
"stylua",
"shellcheck",
"shfmt",
"flake8",
"jdtls",
"zls",
"rust-analyzer",
"vue-language-server",
"eslint_d",
"emmet-language-server",
},
},
},
{
"xiyaowong/transparent.nvim",
-- You can load it early (lazy = false) or when Neovim is ready (e.g. event = "VeryLazy")
lazy = false,
priority = 1000, -- optional, ensures it loads early if you need transparency from the start
config = function()
require("transparent").setup({
-- A list of default highlight groups to clear for transparency
groups = {
"Normal",
"NormalNC",
"Comment",
"Constant",
"Special",
"Identifier",
"Statement",
"PreProc",
"Type",
"Underlined",
"Todo",
"String",
"Function",
"Conditional",
"Repeat",
"Operator",
"Structure",
"LineNr",
"NonText",
"SignColumn",
"CursorLine",
"CursorLineNr",
"StatusLine",
"StatusLineNC",
"EndOfBuffer",
},
-- Add extra groups you want to clear (e.g. for floating windows or file tree plugins)
-- extra_groups = { "NormalFloat" },
-- Exclude any groups if you want them to retain their background settings
exclude_groups = {
"StatusLine",
"StatusLineNC",
"CursorLine",
"FloatBorder",
},
-- Optional: run any additional command after clearing highlights
on_clear = function()
-- For example, make sure the Normal highlight has no background
vim.cmd("hi Normal guibg=none")
-- borders
vim.cmd("highlight clear FloatBorder")
vim.cmd("highlight link FloatBorder NormalFloat")
-- titles
vim.cmd("highlight clear FloatTitle")
vim.cmd("highlight link FloatTitle NormalFloat")
end,
})
require("transparent").toggle(true)
end,
},
{
"mfussenegger/nvim-jdtls",
ft = { "java" },
},
{
"christoomey/vim-tmux-navigator",
lazy = false,
},
{
"folke/snacks.nvim",
opts = {
picker = {
sources = {
explorer = {
-- copy the default “sidebar” layout but set it to the right
layout = {
layout = {
box = "vertical", -- keep the vertical box
position = "left", -- move to left
width = 0.2, -- 20% of the window; tweak as you like
-- below are the two child windows (input + list):
{
win = "input",
max_height = 1,
height = 1,
border = { "", "", "", "", "", "", "", " " },
wo = {
-- example: keep your own winhighlight if you have one
-- winhighlight = "FloatBorder:Normal,NormalFloat:Normal",
},
},
{
win = "list",
border = "none",
wo = {
-- winhighlight = "FloatBorder:Normal,NormalFloat:Normal",
},
},
},
},
-- you can keep any other overrides you had:
-- win = { list = { keys = { ["<ESC>"]="", ["w"]="confirm" } } },
ignored = true,
hidden = true,
},
},
},
},
},
}