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 7b68a32..1adaed2 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 { "ray-x/go.nvim", config = function() @@ -32,19 +34,16 @@ local plugins = { ft = {"go", 'gomod'}, build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries }, - ---[[ + -- Markdown plugins { - "olexsmir/gopher.nvim", - ft = "go", - config = function (_, opts) - require("gopher").setup(opts) - require("core.utils").load_mappings("gopher") - end, - build = function () - vim.cmd [[silent! GoInstallDeps]] - --end, - --}, ---]]-- + '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