markdown: disable treesitter for pandoc filetype

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2023-09-22 16:09:15 +02:00
parent d0d30fea68
commit 0405d28860
Signed by: igor
GPG Key ID: 692D97C3D0228A99
4 changed files with 8 additions and 40 deletions

View File

@ -211,6 +211,13 @@ require('lazy').setup({
{
-- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
cond = function ()
return vim.bo.filetype == "pandoc"
end,
config = function ()
require('nvim-treesitter').setup({
}),
dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects',
},
@ -362,7 +369,7 @@ vim.keymap.set('n', '<leader>ss', require'telescope'.extensions.luasnip.luasnip
-- 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', 'json' },
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'json' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,

View File

@ -1,39 +0,0 @@
-- Zen mode with twilight.
-- Improves the edition experience with distraction free feature.
return {
"folke/zen-mode.nvim",
ft = {
"markdown",
"pandoc"
},
-- Twilight allows to dim text outside of the cursor line.
dependencies = {
"folke/twilight.nvim",
opts = {
-- Set the context to null in order to avoid highlighting to much
-- paragraphs in markdown.
context = 0,
},
},
opts = {
window = {
-- Set the window width (85 columns) and height (80%).
width = 85,
height = .8,
options = {
-- Disable line numbering, signcolumn and colorcolumn.
number = false,
signcolumn = "no",
},
},
plugins = {
options = {
enabled = true,
ruler = false,
showcmd = false,
},
gitsigns = { enabled = false },
},
},
}