From a6a823e0d3d3fe35825613626b00193d3f49e19b Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Thu, 1 Jun 2023 21:21:10 +0200 Subject: [PATCH] markdown: add mkdnflow plugin - Adds mkdnflow plugin to add some notebook features. - Removes the markdown and markdown_inline parsers for treesitter as it is not compatible with vim-pandoc-syntax (or the other way round). Co-Authored-by: iGor milhit --- init.lua | 2 +- lua/custom/plugins/mkdnflow.lua | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/mkdnflow.lua diff --git a/init.lua b/init.lua index ea2da01..6647f56 100644 --- a/init.lua +++ b/init.lua @@ -325,7 +325,7 @@ vim.keymap.set('n', 'sd', require('telescope.builtin').diagnostics, { de -- See `:help nvim-treesitter` require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter - ensure_installed = { 'c', 'cpp', 'go', 'lua', 'markdown', 'markdown_inline', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' }, + ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' }, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, diff --git a/lua/custom/plugins/mkdnflow.lua b/lua/custom/plugins/mkdnflow.lua new file mode 100644 index 0000000..1bc50e8 --- /dev/null +++ b/lua/custom/plugins/mkdnflow.lua @@ -0,0 +1,19 @@ +-- Mkdownflow plugin. +-- Allows to follow links, anchors, create links, and many more. +-- https://github.com/jakewvincent/mkdnflow.nvim + +-- Keymaps for mkdnflow. +-- Table +vim.keymap.set({'n','x','v'}, 'tf', 'MkdnTableFormat', {desc = 'Format table under cursor'}) + +return { + { + "jakewvincent/mkdnflow.nvim", + ft = 'pandoc', + lazy = true, + config = function () + require('mkdnflow').setup({ + }) + end + } +}