neovim: add vale & ltex-lsp
This commit is contained in:
parent
aa3af5f0e5
commit
5604745c78
16 changed files with 1442 additions and 18 deletions
|
|
@ -4,5 +4,8 @@
|
|||
lspkind.enable = true;
|
||||
lspSignature.enable = true;
|
||||
trouble = {enable = true;};
|
||||
null-ls = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,19 @@
|
|||
vim = {
|
||||
languages.markdown = {
|
||||
enable = true;
|
||||
vale.enable = true;
|
||||
ltex.enable = true;
|
||||
extensions = {
|
||||
render-markdown-nvim = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
heading = {
|
||||
border = true;
|
||||
width = "block";
|
||||
left_pad = 3;
|
||||
right_pad = 4;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,9 +7,11 @@
|
|||
useSystemClipboard = true;
|
||||
autopairs.nvim-autopairs.enable = true;
|
||||
hideSearchHighlight = true;
|
||||
spellcheck.enable = true;
|
||||
theme = {
|
||||
enable = false;
|
||||
};
|
||||
spellcheck = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}";};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue