From 2ff89694d33956631686993b2fc7e70f81473477 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Sun, 4 Feb 2024 12:26:11 +0000 Subject: [PATCH] nvim: add MD preview --- nvim/lua/thomas/plugins-setup.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nvim/lua/thomas/plugins-setup.lua b/nvim/lua/thomas/plugins-setup.lua index 8842c18..12fee35 100644 --- a/nvim/lua/thomas/plugins-setup.lua +++ b/nvim/lua/thomas/plugins-setup.lua @@ -107,6 +107,14 @@ return packer.startup(function(use) use("windwp/nvim-autopairs") -- autoclose parens, brackets, quotes, etc... use({ "windwp/nvim-ts-autotag", after = "nvim-treesitter" }) -- autoclose tags + use({ + "iamcco/markdown-preview.nvim", + run = "cd app && npm install", + setup = function() + vim.g.mkdp_filetypes = { "markdown" } + end, + ft = { "markdown" }, + }) -- GitHub Copilot use({