From 4f80dfc9b63fd0c60a95ae936d92af0773f857f8 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sat, 21 Dec 2024 21:49:19 +0100 Subject: [PATCH] nvim: render markdown plugin --- home/terminal/nixvim/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/home/terminal/nixvim/default.nix b/home/terminal/nixvim/default.nix index 1f5d13c..1d6bd21 100644 --- a/home/terminal/nixvim/default.nix +++ b/home/terminal/nixvim/default.nix @@ -26,7 +26,12 @@ sonokai_style = "atlantis"; sonokai_disable_italic_comment = 1; }; - keymaps = []; + keymaps = [ + { + key = "rm"; + action = "RenderMarkdown toggle"; + } + ]; opts = { colorcolumn = "88"; cursorline = true; @@ -43,8 +48,8 @@ { name = "buffer"; } ]; settings.mapping = { - "" = "cmp.mapping.scroll_docs(-4)"; - "" = "cmp.mapping.scroll_docs(4)"; + "" = "cmp.mapping.scroll_docs(-2)"; + "" = "cmp.mapping.scroll_docs(2)"; "" = "cmp.mapping.complete()"; "" = "cmp.mapping.close()"; "" = "cmp.mapping(cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})"; @@ -67,13 +72,14 @@ }; lsp.servers.gopls.enable = true; lsp.servers.nixd.enable = true; - lsp.servers.terraform_lsp.enable = true; + lsp.servers.terraformls.enable = true; lsp.servers.tflint.enable = true; lsp.servers.yamlls.enable = true; lsp-format.enable = true; # Automatically format on save lsp-lines.enable = true; # Display lsp hints in lines lsp-signature.enable = true; # Show function signature when typing lualine.enable = true; # Statusline + render-markdown.enable = true; treesitter.enable = true; web-devicons.enable = true; };