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>
parent
0485ae6ed5
commit
a6a823e0d3
2
init.lua
2
init.lua
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue