nvim: render markdown plugin

This commit is contained in:
Johannes Rothe 2024-12-21 21:49:19 +01:00
parent 928a557707
commit 4f80dfc9b6

View File

@ -26,7 +26,12 @@
sonokai_style = "atlantis"; sonokai_style = "atlantis";
sonokai_disable_italic_comment = 1; sonokai_disable_italic_comment = 1;
}; };
keymaps = []; keymaps = [
{
key = "<leader>rm";
action = "<cmd>RenderMarkdown toggle<CR>";
}
];
opts = { opts = {
colorcolumn = "88"; colorcolumn = "88";
cursorline = true; cursorline = true;
@ -43,8 +48,8 @@
{ name = "buffer"; } { name = "buffer"; }
]; ];
settings.mapping = { settings.mapping = {
"<C-d>" = "cmp.mapping.scroll_docs(-4)"; "<C-d>" = "cmp.mapping.scroll_docs(-2)";
"<C-f>" = "cmp.mapping.scroll_docs(4)"; "<C-f>" = "cmp.mapping.scroll_docs(2)";
"<C-Space>" = "cmp.mapping.complete()"; "<C-Space>" = "cmp.mapping.complete()";
"<C-e>" = "cmp.mapping.close()"; "<C-e>" = "cmp.mapping.close()";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})"; "<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select}), {'i', 's'})";
@ -67,13 +72,14 @@
}; };
lsp.servers.gopls.enable = true; lsp.servers.gopls.enable = true;
lsp.servers.nixd.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.tflint.enable = true;
lsp.servers.yamlls.enable = true; lsp.servers.yamlls.enable = true;
lsp-format.enable = true; # Automatically format on save lsp-format.enable = true; # Automatically format on save
lsp-lines.enable = true; # Display lsp hints in lines lsp-lines.enable = true; # Display lsp hints in lines
lsp-signature.enable = true; # Show function signature when typing lsp-signature.enable = true; # Show function signature when typing
lualine.enable = true; # Statusline lualine.enable = true; # Statusline
render-markdown.enable = true;
treesitter.enable = true; treesitter.enable = true;
web-devicons.enable = true; web-devicons.enable = true;
}; };