feat(nvim): plugins, fixes, helpers

Plugins:
- voldikss/vim-floaterm
- vim-test/vim-test
- tpope/vim-projectionist
- phpactor/phpactor
- catgoose/nvim-colorizer.lua

Fixes:
- lsp diagnostics config
- lsp diagnostics icons
- neo-tree configuration fixes
- tokyonight.nvim color scheme tweaks

Lots of tweaks to options.lua
This commit is contained in:
2025-01-07 21:41:56 +02:00
parent 8a3763e168
commit 09d62dd159
7 changed files with 406 additions and 59 deletions

View File

@@ -7,6 +7,121 @@ return {
init = function() vim.cmd.colorscheme(vim.g.colors_theme) end,
opts = {
transparent = true,
on_colors = function(colors)
colors.gitSigns = {
add = colors.teal,
change = colors.purple,
delete = colors.red,
}
end,
on_highlights = function(hl, c)
local util = require 'tokyonight.util'
local prompt = '#2d3149'
hl.NeoTreeFileNameOpened = {
fg = c.orange,
}
hl.GitSignsCurrentLineBlame = {
fg = c.fg_gutter,
}
hl.StatusLine = {
bg = util.darken(c.bg_dark, 0.98, '#000000'),
fg = c.fg_dark,
}
hl.StatusLineComment = {
bg = util.darken(c.bg_dark, 0.85, '#000000'),
fg = c.comment,
}
hl.LineNrAbove = {
fg = c.fg_gutter,
}
hl.LineNr = {
fg = util.lighten(c.fg_gutter, 0.7),
}
hl.LineNrBelow = {
fg = c.fg_gutter,
}
hl.MsgArea = {
bg = util.darken(c.bg_dark, 0.85, '#000000'),
}
-- Spelling
hl.SpellBad = {
undercurl = true,
sp = '#7F3A43',
}
-- Telescope
hl.TelescopeNormal = {
bg = c.bg_dark,
fg = c.fg_dark,
}
hl.TelescopeBorder = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopePromptNormal = {
bg = prompt,
}
hl.TelescopePromptBorder = {
bg = prompt,
fg = prompt,
}
hl.TelescopePromptTitle = {
bg = c.bg,
fg = c.fg_dark,
}
hl.TelescopePreviewTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
hl.TelescopeResultsTitle = {
bg = c.bg_dark,
fg = c.bg_dark,
}
-- Indent
hl.MiniIndentscopeSymbol = {
fg = util.darken(c.bg_highlight, 0.30),
}
hl.IblScope = {
fg = util.darken(c.bg_highlight, 0.80),
}
-- Floaterm
hl.Floaterm = {
bg = prompt,
}
hl.FloatermBorder = {
bg = prompt,
fg = prompt,
}
-- Copilot
hl.CopilotSuggestion = {
fg = c.comment,
}
-- NeoTree
hl.NeoTreeFileNameOpened = {
fg = c.fg,
bold = true,
}
hl.NvimTreeNormal = {
bg = util.darken(c.bg_dark, 0.85, '#000000'),
}
hl.NvimTreeNormalNC = {
bg = util.darken(c.bg_dark, 0.85, '#000000'),
}
hl.NvimTreeWinSeparator = {
fg = util.darken(c.bg_dark, 0.85, '#000000'),
bg = util.darken(c.bg_dark, 0.85, '#000000'),
}
end,
},
},
@@ -27,6 +142,17 @@ return {
},
},
-- The fastest Neovim colorizer
-- https://github.com/catgoose/nvim-colorizer.lua
{
'catgoose/nvim-colorizer.lua',
opts = {
user_default_options = {
names = false,
},
},
},
-- A neovim plugin that shows colorcolumn dynamically
-- https://github.com/Bekaboo/deadcolumn.nvim
{ 'Bekaboo/deadcolumn.nvim' },