This commit is contained in:
Zacharias-Brohn
2025-12-10 12:25:21 +01:00
parent 533e740964
commit 8c9d5aba7f
14 changed files with 516 additions and 163 deletions
+4 -3
View File
@@ -9,10 +9,9 @@ if vim.env.PROF then
}) })
end end
vim.g.wbr = "test" vim.g.base46_cache = vim.fn.stdpath("data") .. "/base46_cache/"
local home = os.getenv("HOME") local home = os.getenv("HOME")
package.path = package.path package.path = package.path
.. ";" .. home .. "/.luarocks/share/lua/5.4/?.lua" .. ";" .. home .. "/.luarocks/share/lua/5.4/?.lua"
.. ";" .. home .. "/.luarocks/share/lua/5.4/?/init.lua" .. ";" .. home .. "/.luarocks/share/lua/5.4/?/init.lua"
@@ -40,4 +39,6 @@ vim.filetype.add({
} }
}) })
vim.cmd("colorscheme github_dark") -- for _, v in ipairs( vim.fn.readdir( vim.g.base46_cache )) do
-- dofile( vim.g.base46_cache .. v )
-- end
+74
View File
@@ -0,0 +1,74 @@
local M = {}
M.icons = {
misc = {
dots = "󰇘",
},
ft = {
octo = "",
gh = "",
["markdown.gh"] = "",
},
dap = {
Stopped = { "󰁕 ", "DiagnosticWarn", "DapStoppedLine" },
Breakpoint = "",
BreakpointCondition = "",
BreakpointRejected = { "", "DiagnosticError" },
LogPoint = ".>",
},
diagnostics = {
Error = "",
Warn = "",
Hint = "",
Info = "",
},
git = {
added = "",
modified = "",
removed = "",
},
kinds = {
Array = "",
Boolean = "󰨙 ",
Class = "",
Codeium = "󰘦 ",
Color = "",
Control = "",
Collapsed = "",
Constant = "󰏿 ",
Constructor = "",
Copilot = "",
Enum = "",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "",
Function = "󰊕 ",
Interface = "",
Key = "",
Keyword = "",
Method = "󰊕 ",
Module = "",
Namespace = "󰦮 ",
Null = "",
Number = "󰎠 ",
Object = "",
Operator = "",
Package = "",
Property = "",
Reference = "",
Snippet = "󱄽 ",
String = "",
Struct = "󰆼 ",
Supermaven = "",
TabNine = "󰏚 ",
Text = "",
TypeParameter = "",
Unit = "",
Value = "",
Variable = "󰀫 ",
},
}
return M
+9 -1
View File
@@ -3,16 +3,24 @@ require("bufferline").setup ({
diagnostics = "nvim_lsp", diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict, context) diagnostics_indicator = function(count, level, diagnostics_dict, context)
local s = " " local s = " "
if diagnostics_dict then
for e, n in pairs(diagnostics_dict) do for e, n in pairs(diagnostics_dict) do
local sym = e == "error" and "" local sym = e == "error" and ""
or (e == "warning" and "" or "") or (e == "warning" and "" or "")
s = s .. n .. sym s = sym .. n
end end
return s return s
end
return ""
end, end,
show_close_icon = false, show_close_icon = false,
show_buffer_close_icons = false, show_buffer_close_icons = false,
always_show_bufferline = true, always_show_bufferline = true,
tab_size = 1,
indicator = {
style = "icon",
icon = "",
},
offsets = { offsets = {
{ {
filetype = "NvimTree", filetype = "NvimTree",
+83
View File
@@ -0,0 +1,83 @@
local M = {}
local icons = require("assets.icons").icons.kinds
local devicons = {
default_icon = { icon = "󰈚", name = "Default" },
js = { icon = "󰌞", name = "js" },
ts = { icon = "󰛦", name = "ts" },
lock = { icon = "󰌾", name = "lock" },
["robots.txt"] = { icon = "󰚩", name = "robots" },
}
M.components = {
kind_icon = {
text = function(ctx)
local icon = (icons[ctx.kind] or "󰈚")
return icon .. " "
end,
},
kind = {
highlight = function(ctx)
return ctx.kind
end,
}
}
local opts = {
'saghen/blink.cmp',
dependencies = { 'rafamadriz/friendly-snippets' },
version = '1.*',
opts = {
keymap = {
preset = 'enter',
["<Tab>"] = { "select_next", "fallback" },
["<S-Tab>"] = { "select_prev", "fallback" },
},
appearance = {
nerd_font_variant = 'mono'
},
completion = {
documentation = { auto_show = true, auto_show_delay_ms = 50 },
keyword = { range = "full" },
accept = { auto_brackets = { enabled = false }},
ghost_text = { enabled = true },
list = {
selection = {
preselect = true,
auto_insert = false,
}
},
menu = {
scrollbar = false,
border = "single",
draw = {
padding = 1,
columns = {{ "kind_icon" }, { "label" }, { "kind" }},
components = M.components,
}
}
},
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer' },
},
snippets = {
preset = 'default',
},
fuzzy = { implementation = "prefer_rust_with_warning" }
},
opts_extend = { "sources.default" }
}
return opts
+71
View File
@@ -0,0 +1,71 @@
---@diagnostic disable: redundant-parameter
require("catppuccin").setup({
flavour = "auto",
background = {
light = "latte",
dark = "mocha",
},
transparent_background = false,
float = {
transparent = false,
solid = false,
},
show_end_of_buffer = false,
term_colors = false,
dim_inactive = {
enabled = false,
shade = "dark",
percentage = 0.15,
},
no_italic = false,
no_bold = false,
no_underline = false,
styles = {
comments = { "italic" },
conditionals = { "italic" },
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
-- miscs = {},
},
lsp_styles = {
virtual_text = {
errors = { "italic" },
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
ok = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
ok = { "underline" },
},
inlay_hints = {
background = true,
},
},
color_overrides = {},
custom_highlights = {},
default_integrations = true,
auto_integrations = false,
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
notify = false,
mini = {
enabled = true,
indentscope_color = "",
},
},
})
+51
View File
@@ -0,0 +1,51 @@
local icons = require("assets.icons").icons
require('gitsigns').setup {
signs = {
add = { text = icons.git.added },
change = { text = icons.git.modified },
delete = { text = icons.git.removed },
topdelete = { text = icons.git.removed },
changedelete = { text = icons.git.modified },
untracked = { text = '' },
},
signs_staged = {
add = { text = icons.git.added },
change = { text = icons.git.modified },
delete = { text = icons.git.removed },
topdelete = { text = icons.git.removed },
changedelete = { text = icons.git.modified },
untracked = { text = '' },
},
signs_staged_enable = true,
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
watch_gitdir = {
follow_files = true
},
auto_attach = true,
attach_to_untracked = false,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = {
virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
delay = 1000,
ignore_whitespace = false,
virt_text_priority = 100,
use_focus = true,
},
current_line_blame_formatter = '<author>, <author_time:%R> - <summary>',
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 40000, -- Disable if file is longer than this (in lines)
preview_config = {
-- Options passed to nvim_open_win
style = 'minimal',
relative = 'cursor',
row = 0,
col = 1
},
}
+24
View File
@@ -0,0 +1,24 @@
require("kanagawa").setup({
compile = true,
undercurl = true,
commentStyle = { italic = true },
functionStyle = {},
keywordStyle = { italic = true},
statementStyle = { bold = true },
typeStyle = {},
transparent = false,
dimInactive = false,
terminalColors = true,
colors = {
palette = {},
theme = { wave = {}, lotus = {}, dragon = {}, all = {} },
},
overrides = function(colors)
return {}
end,
theme = "dragon",
background = {
dark = "dragon",
light = "lotus"
},
})
+62 -62
View File
@@ -12,13 +12,13 @@ local function flatten_to_array(t)
_flatten(t) _flatten(t)
return res return res
end end
local cmp = require("cmp") -- local cmp = require("cmp")
local cmp_lsp = require("cmp_nvim_lsp") -- local cmp_lsp = require("cmp_nvim_lsp")
local capabilities = vim.tbl_deep_extend( local capabilities = vim.tbl_deep_extend(
"force", "force",
{}, {},
vim.lsp.protocol.make_client_capabilities(), vim.lsp.protocol.make_client_capabilities()
cmp_lsp.default_capabilities() -- cmp_lsp.default_capabilities()
) )
local cmp_kinds = { local cmp_kinds = {
@@ -113,64 +113,64 @@ require("mason-lspconfig").setup({
} }
}) })
cmp.setup { -- cmp.setup {
preselect = 'None', -- preselect = 'None',
formatting = { -- formatting = {
fields = { 'kind', 'abbr' }, -- fields = { 'kind', 'abbr' },
format = function(entry, vim_item) -- format = function(entry, vim_item)
vim_item.kind = cmp_kinds[vim_item.kind] or '' -- vim_item.kind = cmp_kinds[vim_item.kind] or ''
if entry.completion_item.detail then -- if entry.completion_item.detail then
vim_item.menu = entry.completion_item.detail -- vim_item.menu = entry.completion_item.detail
end -- end
return vim_item -- return vim_item
end, -- end,
}, -- },
completion = { completeopt = "menu,menuone" }, -- completion = { completeopt = "menu,menuone" },
snippet = { -- snippet = {
expand = function(args) -- expand = function(args)
require("luasnip").lsp_expand(args.body) -- require("luasnip").lsp_expand(args.body)
end, -- end,
}, -- },
--
mapping = { -- mapping = {
["<C-p>"] = cmp.mapping.select_prev_item(), -- ["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(), -- ["<C-n>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4), -- ["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4), -- ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), -- ["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(), -- ["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm { -- ["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert, -- behavior = cmp.ConfirmBehavior.Insert,
select = true, -- select = true,
}, -- },
["<Tab>"] = cmp.mapping(function(fallback) -- ["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then -- if cmp.visible() then
cmp.select_next_item() -- cmp.select_next_item()
elseif require("luasnip").expand_or_jumpable() then -- elseif require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump() -- require("luasnip").expand_or_jump()
else -- else
fallback() -- fallback()
end -- end
end, { "i", "s" }), -- end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback) -- ["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then -- if cmp.visible() then
cmp.select_prev_item() -- cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then -- elseif require("luasnip").jumpable(-1) then
require("luasnip").jump(-1) -- require("luasnip").jump(-1)
else -- else
fallback() -- fallback()
end -- end
end, { "i", "s" }), -- end, { "i", "s" }),
}, -- },
--
sources = cmp.config.sources({ -- sources = cmp.config.sources({
{ name = "path" }, -- { name = "path" },
{ name = "nvim_lsp" }, -- { name = "nvim_lsp" },
{ name = "luasnip" }, -- { name = "luasnip" },
{ name = "buffer" }, -- { name = "buffer" },
{ name = "nvim_lua" }, -- { name = "nvim_lua" },
}), -- }),
} -- }
vim.diagnostic.config({ vim.diagnostic.config({
-- update_in_insert = true, -- update_in_insert = true,
+24 -14
View File
@@ -1,5 +1,7 @@
local fn = vim.fn local fn = vim.fn
local icons = require("assets.icons").icons
local get_active_lsp = function() local get_active_lsp = function()
local msg = "" local msg = ""
local buf_ft = vim.api.nvim_get_option_value("filetype", {}) local buf_ft = vim.api.nvim_get_option_value("filetype", {})
@@ -40,18 +42,14 @@ local function ime_state()
end end
local diff = function() local diff = function()
local git_status = vim.b.gitsigns_status_dict local gitsigns = vim.b.gitsigns_status_dict
if git_status == nil then if gitsigns then
return return {
added = gitsigns.added,
modified = gitsigns.changed,
removed = gitsigns.removed,
}
end end
local modify_num = git_status.changed
local remove_num = git_status.removed
local add_num = git_status.added
local info = { added = add_num, modified = modify_num, removed = remove_num }
-- vim.print(info)
return info
end end
local virtual_env = function() local virtual_env = function()
@@ -119,11 +117,16 @@ require("lualine").setup {
{ {
"filename", "filename",
symbols = { symbols = {
readonly = "[󰌾]", readonly = "[ 󰌾 ]",
}, },
}, },
{ {
"diff", "diff",
symbols = {
added = icons.git.added,
modified = icons.git.modified,
removed = icons.git.removed,
},
source = diff, source = diff,
}, },
{ {
@@ -151,7 +154,12 @@ require("lualine").setup {
{ {
"diagnostics", "diagnostics",
sources = { "nvim_diagnostic" }, sources = { "nvim_diagnostic" },
symbols = { error = "", warn = "", info = "", hint = "" }, symbols = {
error = icons.diagnostics.Error,
warn = icons.diagnostics.Warn,
info = icons.diagnostics.Info,
hint = icons.diagnostics.Hint
},
}, },
}, },
lualine_y = { lualine_y = {
@@ -167,7 +175,9 @@ require("lualine").setup {
"filetype", "filetype",
}, },
lualine_z = { lualine_z = {
"progress", {
"location",
},
}, },
}, },
inactive_sections = { inactive_sections = {
+35
View File
@@ -0,0 +1,35 @@
require("monokai-pro").setup({
transparent_background = false,
terminal_colors = true,
devicons = true,
styles = {
comment = { italic = true },
keyword = { italic = true },
type = { italic = true },
storageclass = { italic = true },
structure = { italic = true },
parameter = { italic = true },
annotation = { italic = true },
tag_attribute = { italic = true },
},
filter = "pro",
day_night = {
enable = false,
day_filter = "pro",
night_filter = "spectrum",
},
inc_search = "background",
background_clear = {
},
plugins = {
bufferline = {
underline_selected = false,
underline_visible = false,
},
indent_blankline = {
context_highlight = "default",
context_start_underline = false,
},
},
})
+1 -1
View File
@@ -60,7 +60,7 @@ return {
notifier = { enabled = true }, notifier = { enabled = true },
quickfile = { enabled = true }, quickfile = { enabled = true },
scope = { enabled = true }, scope = { enabled = true },
scroll = { enabled = true }, scroll = { enabled = false },
statuscolumn = { enabled = true }, statuscolumn = { enabled = true },
words = { enabled = true }, words = { enabled = true },
terminal = { terminal = {
-10
View File
@@ -15,16 +15,6 @@ map("n", "<A-Down>", "<cmd>KittyNavigateDown<CR>", { desc = "Move to bottom spli
map("n", "<A-Up>", "<cmd>KittyNavigateUp<CR>", { desc = "Move to top split" }) map("n", "<A-Up>", "<cmd>KittyNavigateUp<CR>", { desc = "Move to top split" })
map("n", "<A-Right>", "<cmd>KittyNavigateRight<CR>", { desc = "Move to right split" }) map("n", "<A-Right>", "<cmd>KittyNavigateRight<CR>", { desc = "Move to right split" })
-- map("n", "<A-Left>", "<cmd>lua require('tmux').move_left()<CR>", { desc = "Move to left split" })
-- map("n", "<A-Down>", "<cmd>lua require('tmux').move_bottom()<CR>", { desc = "Move to bottom split" })
-- map("n", "<A-Up>", "<cmd>lua require('tmux').move_top()<CR>", { desc = "Move to top split" })
-- map("n", "<A-Right>", "<cmd>lua require('tmux').move_right()<CR>", { desc = "Move to right split" })
--
-- map("n", "<C-Left>", "<cmd>lua require('tmux').resize_left()<CR>", { desc = "Move to left split" })
-- map("n", "<C-Down>", "<cmd>lua require('tmux').resize_bottom()<CR>", { desc = "Move to bottom split" })
-- map("n", "<C-Up>", "<cmd>lua require('tmux').resize_top()<CR>", { desc = "Move to top split" })
-- map("n", "<C-Right>", "<cmd>lua require('tmux').resize_right()<CR>", { desc = "Move to right split" })
-- Copilot Chat buffer -- Copilot Chat buffer
map("n", "<A-c>", vim.cmd.CopilotChatToggle) map("n", "<A-c>", vim.cmd.CopilotChatToggle)
map("i", "<A-c>", vim.cmd.CopilotChatToggle) map("i", "<A-c>", vim.cmd.CopilotChatToggle)
+46
View File
@@ -0,0 +1,46 @@
return {
{
"olimorris/onedarkpro.nvim",
priority = 1000,
config = function()
require("config.themelight")
end,
},
{
"notken12/base46-colors",
},
{
"loctvl842/monokai-pro.nvim",
config = function()
require("config.monokaipro")
end,
},
{
"catppuccin/nvim",
name = "catppuccin",
-- config = function()
-- require("config.catppuccin")
-- end,
},
{
"rebelot/kanagawa.nvim",
-- config = function()
-- require("config.kanagawa")
-- end,
},
{
"sainnhe/edge",
lazy = false,
priority = 1000,
config = function()
vim.g.edge_enable_italic = 1
vim.g.edge_style = "default"
vim.g.edge_menu_selection_background = "purple"
end,
},
{
"projekt0n/github-nvim-theme",
lazy = false,
priority = 1000,
}
}
+28 -68
View File
@@ -1,14 +1,7 @@
return { return {
-- { {
-- "nvimdev/lspsaga.nvim", require("plugins.colorschemes")
-- config = function() },
-- require("config.lspsaga")
-- end,
-- dependencies = {
-- "nvim-tree/nvim-web-devicons",
-- "nvim-treesitter/nvim-treesitter",
-- },
-- },
{ {
"nvim-mini/mini.nvim", "nvim-mini/mini.nvim",
version = false, version = false,
@@ -23,29 +16,12 @@ return {
require("config.treesitter") require("config.treesitter")
end, end,
}, },
{
"sainnhe/edge",
lazy = false,
priority = 1000,
config = function()
vim.g.edge_enable_italic = 1
vim.g.edge_style = "default"
vim.g.edge_menu_selection_background = "purple"
end,
},
{ {
"rmagatti/auto-session", "rmagatti/auto-session",
config = function() config = function()
require("config.autosession") require("config.autosession")
end, end,
}, },
{
"olimorris/onedarkpro.nvim",
priority = 1000,
config = function()
require("config.themelight")
end,
},
{ {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
dependencies = { dependencies = {
@@ -84,9 +60,6 @@ return {
require("config.modicator") require("config.modicator")
end end
}, },
{
"shinchu/lightline-gruvbox.vim",
},
{ {
"jiaoshijie/undotree", "jiaoshijie/undotree",
config = function() config = function()
@@ -142,17 +115,6 @@ return {
{ {
require("config.snacks") require("config.snacks")
}, },
{
"notken12/base46-colors",
},
-- {
-- "mason-org/mason-lspconfig.nvim",
-- opts = {},
-- dependencies = {
-- { "mason-org/mason.nvim", opts = {} },
-- "neovim/nvim-lspconfig",
-- },
-- },
{ {
"folke/lazydev.nvim", "folke/lazydev.nvim",
ft = "lua", ft = "lua",
@@ -166,28 +128,23 @@ return {
dependencies = { dependencies = {
"williamboman/mason.nvim", "williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"hrsh7th/nvim-cmp",
"L3MON4D3/LuaSnip", "L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip", -- "saadparwaiz1/cmp_luasnip",
"j-hui/fidget.nvim", "j-hui/fidget.nvim",
}, },
config = function() config = function()
require("config.lspconfig") require("config.lspconfig")
end, end,
}, },
{ -- {
"smolck/command-completion.nvim", -- "smolck/command-completion.nvim",
opts = { -- opts = {
border = nil, -- border = nil,
highlight_selection = true, -- highlight_selection = true,
use_matchfuzzy = true, -- use_matchfuzzy = true,
tab_completion = true, -- tab_completion = true,
}, -- },
}, -- },
{ {
"andweeb/presence.nvim", "andweeb/presence.nvim",
}, },
@@ -204,12 +161,12 @@ return {
require("config.harpoon") require("config.harpoon")
end, end,
}, },
{ -- {
"catgoose/nvim-colorizer.lua", -- "catgoose/nvim-colorizer.lua",
config = function() -- config = function()
require("config.colorizer") -- require("config.colorizer")
end, -- end,
}, -- },
{ {
"ziglang/zig.vim", "ziglang/zig.vim",
}, },
@@ -274,12 +231,6 @@ return {
}), }),
} }
}, },
-- {
-- "aserowy/tmux.nvim",
-- config = function()
-- require("config.tmux")
-- end,
-- },
{ {
"aznhe21/actions-preview.nvim", "aznhe21/actions-preview.nvim",
config = function() config = function()
@@ -319,4 +270,13 @@ return {
{ {
require("config.dropbar") require("config.dropbar")
}, },
{
require("config.blink")
},
{
"lewis6991/gitsigns.nvim",
config = function()
require("config.gitsigns")
end,
},
} }