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 <igor@milhit.ch>
main
iGor milhit 2024-03-28 15:58:53 +01:00
parent de01104408
commit fa63aa9445
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 34 additions and 11 deletions

View File

@ -3,3 +3,4 @@
-- See :h awa -- See :h awa
vim.opt.awa=true vim.opt.awa=true
vim.opt.foldlevel = 1

View File

@ -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 -- "Mofiqul/adwaita.nvim",
'andersevenrud/nordic.nvim', "shaunsingh/nord.nvim",
lazy = false,
priority = 1000, priority = 1000,
config = function() config = function()
require('nordic').colorscheme({ vim.cmd('colorscheme nord')
underline_option = 'none', end
italic = true,
italic_comments = false,
minimal_mode = false,
alternate_backgrounds = false
})
end,
}, },
{ {
@ -342,10 +352,22 @@ 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', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'json' }, 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!) -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false, 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' } }, indent = { enable = true, disable = { 'python' } },
incremental_selection = { incremental_selection = {
enable = true, enable = true,