nvim/lua/plugins/tresitter.lua
2023-01-01 19:36:00 +01:00

51 lines
1.1 KiB
Lua

local M = {
'nvim-treesitter/nvim-treesitter',
-- lazy = false,
event = 'BufReadPost',
}
function M.config()
local configs = require 'nvim-treesitter.configs'
configs.setup {
-- ensure_installed = {
-- 'bash',
-- 'c',
-- 'cpp',
-- 'go',
-- 'javascript',
-- 'typescript',
-- 'json',
-- 'lua',
-- 'python',
-- 'rust',
-- 'html',
-- 'css',
-- 'toml',
-- 'latex',
-- 'markdown',
-- 'vim',
-- 'dot',
-- },
ignore_install = { 'haskell' },
-- matchup = {
-- enable = true -- mandatory, false will disable the whole extension
-- -- disable = { "c", "ruby" }, -- optional, list of language that will be disabled
-- },
highlight = {
enable = true, -- false will disable the whole extension
disable = { 'html' },
},
-- context_commentstring = { enable = true, config = { css = '// %s' } },
-- indent = {enable = true, disable = {"python", "html", "javascript"}},
-- TODO seems to be broken
indent = { enable = false, disable = { 'python', 'css' } },
-- autotag = { enable = true },
-- autopairs = {
-- enable = true,
-- },
}
end
return M