diff --git a/lua/kickstart/plugins/treesitter.lua b/lua/kickstart/plugins/treesitter.lua index 72e7754..e1b6f8f 100644 --- a/lua/kickstart/plugins/treesitter.lua +++ b/lua/kickstart/plugins/treesitter.lua @@ -9,7 +9,18 @@ return { }, build = ':TSUpdate', opts = { - ensure_installed = { 'lua', 'python', 'rust', 'javascript', 'typescript', 'vimdoc', 'vim', 'svelte', 'c_sharp' }, + ensure_installed = { + 'lua', + 'python', + 'rust', + 'javascript', + 'typescript', + 'vimdoc', + 'vim', + 'svelte', + 'c_sharp', + 'markdown', + }, -- Autoinstall languages that are not installed auto_install = true, -- Enable autotags and -rename @@ -22,6 +33,7 @@ return { -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules. -- If you are experiencing weird indenting issues, add the language to -- the list of additional_vim_regex_highlighting and disabled languages for indent. + disable = { 'markdown' }, additional_vim_regex_highlighting = { 'ruby' }, }, indent = { enable = true, disable = { 'ruby' } }, diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index 265b216..bf6ba7f 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -26,6 +26,17 @@ require('lazy').setup({ -- Processing-Java 'sophacles/vim-processing', + -- Markdown preview plugin + { + 'iamcco/markdown-preview.nvim', + cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' }, + build = 'cd app; npm install', + init = function() + vim.g.mkdp_filetypes = { 'markdown' } + end, + ft = { 'markdown' }, + }, + -- Smooth scroll plugin and keymaps { 'karb94/neoscroll.nvim',