From e88e14a2d4423eefc441faa6593c4364a792f84f Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Thu, 28 Mar 2024 15:58:53 +0100 Subject: [PATCH] pandoc: disable treesitter for markdown - Disables treesitter for markdown to avoid conflicts with vim-pandoc* plugins. - Sets the folding level to 1 for pandoc filetypes. - Moves to a nord light theme. - Fixes the treesitter configuration. Co-Authored-by: iGor milhit --- after/ftplugin/pandoc.lua | 1 + init.lua | 44 +++++++++++++++++++++++++++++---------- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/after/ftplugin/pandoc.lua b/after/ftplugin/pandoc.lua index 8a2ff02..7390e13 100644 --- a/after/ftplugin/pandoc.lua +++ b/after/ftplugin/pandoc.lua @@ -3,3 +3,4 @@ -- See :h awa vim.opt.awa=true +vim.opt.foldlevel = 1 diff --git a/init.lua b/init.lua index 7a68af3..77df7cb 100644 --- a/init.lua +++ b/init.lua @@ -107,19 +107,29 @@ require('lazy').setup({ }, }, + -- { + -- -- Nordic Theme + -- 'andersevenrud/nordic.nvim', + -- priority = 1000, + -- config = function() + -- require('nordic').colorscheme({ + -- underline_option = 'none', + -- italic = true, + -- italic_comments = false, + -- minimal_mode = false, + -- alternate_backgrounds = false + -- }) + -- end, + -- }, + { - -- Nordic Theme - 'andersevenrud/nordic.nvim', + -- "Mofiqul/adwaita.nvim", + "shaunsingh/nord.nvim", + lazy = false, priority = 1000, config = function() - require('nordic').colorscheme({ - underline_option = 'none', - italic = true, - italic_comments = false, - minimal_mode = false, - alternate_backgrounds = false - }) - end, + vim.cmd('colorscheme nord') + end }, { @@ -342,10 +352,22 @@ require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'json' }, + -- Do not install parses synchronously + sync_install = false, + -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, - highlight = { enable = true }, + -- List of parsers to ignore installing + ignore_install = { "markdown" }, + + -- Required property, but empr? + modules = {}, + + highlight = { + enable = true, + disable = { "markdown" }, + }, indent = { enable = true, disable = { 'python' } }, incremental_selection = { enable = true,