diff --git a/init.lua b/init.lua index 81ff7ed..15002e4 100644 --- a/init.lua +++ b/init.lua @@ -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', '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, diff --git a/lua/custom/plugins/pandoc.lua.save b/lua/custom/plugins/pandoc.lua similarity index 100% rename from lua/custom/plugins/pandoc.lua.save rename to lua/custom/plugins/pandoc.lua diff --git a/lua/custom/plugins/vim-markdown.lua b/lua/custom/plugins/vim-markdown.lua.save similarity index 100% rename from lua/custom/plugins/vim-markdown.lua rename to lua/custom/plugins/vim-markdown.lua.save diff --git a/lua/custom/plugins/zen-mode.lua b/lua/custom/plugins/zen-mode.lua deleted file mode 100644 index 5244601..0000000 --- a/lua/custom/plugins/zen-mode.lua +++ /dev/null @@ -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 }, - }, - }, -}