From bb2816652c7a16fcb80d5965c2be08dab1f981b5 Mon Sep 17 00:00:00 2001 From: "antoine.lenours" Date: Tue, 9 Jan 2024 10:49:02 +0100 Subject: [PATCH] Add markdown plugins --- README.md | 5 +++++ lua/custom/plugins.lua | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 5d9cbd6..b7f71cc 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,8 @@ I added some plugins, check it out in `lua/custom/plugins.lua` and `lua/custom/m The list of the plugins: - [gopls](https://github.com/golang/tools/tree/master/gopls) : Go langage server (Autocompletion) - [gopher](https://github.com/olexsmir/gopher.nvim) : Add key mappings + +## Markdown +- [iamcco/markdown-preview.nvim](https://githib.com/iamcco/markdown-preview.nvim) +- [ixru/nvim-markdown](https://github.com/ixru/nvim-markdown) + diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 5d38796..468d2cf 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -22,6 +22,8 @@ local plugins = { return require "custom.configs.none-ls" end, }, + + -- Go plugins { "olexsmir/gopher.nvim", ft = "go", @@ -33,5 +35,17 @@ local plugins = { vim.cmd [[silent! GoInstallDeps]] end, }, + + -- Markdown plugins + { + 'ixru/nvim-markdown', + ft = "markdown", + }, + { + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + ft = { "markdown" }, + build = function() vim.fn["mkdp#util#install"]() end, + } } return plugins