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 <igor@milhit.ch>
iGor milhit 2023-06-01 21:21:10 +02:00
parent 0485ae6ed5
commit a6a823e0d3
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 20 additions and 1 deletions

View File

@ -325,7 +325,7 @@ vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { de
-- See `:help nvim-treesitter` -- See `:help nvim-treesitter`
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter -- 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!) -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false, auto_install = false,

View File

@ -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'}, '<leader>tf', '<cmd>MkdnTableFormat<CR>', {desc = 'Format table under cursor'})
return {
{
"jakewvincent/mkdnflow.nvim",
ft = 'pandoc',
lazy = true,
config = function ()
require('mkdnflow').setup({
})
end
}
}