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

+8
View File
@@ -0,0 +1,8 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
--
-- Add any additional autocmds here
-- with `vim.api.nvim_create_autocmd`
--
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
+3
View File
@@ -0,0 +1,3 @@
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
+53
View File
@@ -0,0 +1,53 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import/override with your plugins
{ import = "plugins" },
},
defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver
},
install = { colorscheme = { "tokyonight", "habamax" } },
checker = {
enabled = true, -- check for plugin updates periodically
notify = false, -- notify on update
}, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_plugins = {
"gzip",
-- "matchit",
-- "matchparen",
-- "netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
})
+12
View File
@@ -0,0 +1,12 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.opt.clipboard = "unnamedplus"
vim.filetype.add({
extension = {
sv = "systemverilog",
svh = "systemverilog",
},
})
+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,
},
},
},
},
},
}