neovim: add vale & ltex-lsp

This commit is contained in:
ooks-io 2025-01-24 22:30:45 +11:00
parent aa3af5f0e5
commit 5604745c78
16 changed files with 1442 additions and 18 deletions

View file

@ -1,20 +1,31 @@
{
{hozen, ...}: let
inherit (hozen) color;
in {
vim.gruvbox-material = {
enable = true;
contrast = "medium";
italics = false;
transparent = false;
extraConfig =
# lua
''
local g_colors = require("gruvbox-material.colors")
local colors = g_colors.get(vim.o.background, "soft")
additionalHighlights = {
RenderMarkdownH1Bg = {bg = "#${color.layout.body}";};
RenderMarkdownH2Bg = {bg = "#${color.layout.body}";};
RenderMarkdownH3Bg = {bg = "#${color.layout.body}";};
RenderMarkdownH4Bg = {bg = "#${color.layout.body}";};
RenderMarkdownH5Bg = {bg = "#${color.layout.body}";};
RenderMarkdownH6Bg = {bg = "#${color.layout.body}";};
"@markup.heading.1" = {
fg = "#${color.green.base}";
bold = true;
};
"@markup.heading.2" = {
fg = "#${color.blue.base}";
bold = true;
};
-- Noice
vim.api.nvim_set_hl(0, "NoiceCmdlinePopupBorderHelp", { fg = colors.yellow })
vim.api.nvim_set_hl(0, "NoiceCmdlinePopupBorder", { fg = colors.grey1 })
vim.api.nvim_set_hl(0, "NoiceCmdlineIcon", { fg = colors.green })
vim.api.nvim_set_hl(0, "NoiceCmdLinePopupTitle", { fg = colors.grey1 })
'';
NoiceCmdlinePopupBorder = {fg = "#${color.border.active}";};
NoiceCmdlinePopupBorderHelp = {fg = "#${color.yellow.base}";};
NoiceCmdlineIcon = {fg = "#${color.green.base}";};
NoiceCmdLinePopupTitle = {fg = "#${color.typography.text}";};
};
};
}