diff --git a/neovim/languages/markdown.nix b/neovim/languages/markdown.nix index 9d835102..8d1878e8 100644 --- a/neovim/languages/markdown.nix +++ b/neovim/languages/markdown.nix @@ -1,8 +1,3 @@ -{ config, ... }: -let - cfg = config.vim.languages.markdown; - extCfg = cfg.extensions; -in { config.vim = { languages.markdown = { @@ -11,19 +6,44 @@ in format.type = [ "rumdl" ]; extraDiagnostics.enable = true; extraDiagnostics.types = [ "rumdl" ]; - extensions.render-markdown-nvim = { - setupOpts.latex.enabled = false; + extensions.markview-nvim = { + enable = true; + setupOpts = { + markdown = { + headings = { + shift_width = 0; + heading_1 = { + style = "icon"; + icon = "󰉫 "; + }; + heading_2 = { + style = "icon"; + icon = "󰉬 "; + }; + heading_3 = { + style = "icon"; + icon = "󰉭 "; + }; + heading_4 = { + style = "icon"; + icon = "󰉮 "; + }; + heading_5 = { + style = "icon"; + icon = "󰉯 "; + }; + heading_6 = { + style = "icon"; + icon = "󰉰 "; + }; + }; + }; + }; }; lsp.servers = [ "markdown-oxide" "rumdl" ]; }; - lazy.plugins.render-markdown-nvim = { - package = "render-markdown-nvim"; - setupModule = "render-markdown"; - inherit (extCfg.render-markdown-nvim) setupOpts; - ft = [ "markdown" ]; - }; }; } diff --git a/neovim/misc/colorscheme.nix b/neovim/misc/colorscheme.nix index ff6c6c65..d8ece24f 100644 --- a/neovim/misc/colorscheme.nix +++ b/neovim/misc/colorscheme.nix @@ -15,13 +15,15 @@ blink_cmp = { style = 'single', }, - blink_indent = true, fidget = true, gitsigns = true, render_markdown = true, lsp_trouble = true, neogit = true, notify = true, + snacks = { + enabled = true, + }, treesitter = true, treesitter_context = true, render_markdown = true,