dotfiles/.config/nvim/lua/plugins/treesitter.lua

45 lines
1.1 KiB
Lua
Raw Normal View History

2024-06-01 03:53:39 +01:00
return {
{
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPost", "BufNewFile" },
dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects'
},
config = function()
local treesitter = require("nvim-treesitter.configs")
require('nvim-treesitter.install').update({ with_sync = true })
2022-10-19 00:47:07 +01:00
2024-06-01 03:53:39 +01:00
local options = {
ensure_installed = { "c", "lua", "haskell", "markdown" },
2022-10-19 00:47:07 +01:00
2024-06-01 03:53:39 +01:00
highlight = {
enable = true,
use_languagetree = true,
additional_vim_regex_highlighting = { "org" },
},
indent = {
enable = true,
},
}
2022-10-19 00:47:07 +01:00
2024-06-01 03:53:39 +01:00
treesitter.setup(options)
end
},
2024-06-01 03:53:39 +01:00
{
"nvim-treesitter/nvim-treesitter-context",
event = "VeryLazy",
config = function()
require 'treesitter-context'.setup()
end,
},
2024-06-01 03:53:39 +01:00
{
'echasnovski/mini.ai',
event = "VeryLazy",
version = false,
opts = {}
},
2022-10-19 00:47:07 +01:00
}