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

25 lines
492 B
Lua
Raw Normal View History

2022-10-19 00:47:07 +01:00
local present, treesitter = pcall(require, "nvim-treesitter.configs")
require('nvim-treesitter.install').update({ with_sync = true })
if not present then
return
2022-10-19 00:47:07 +01:00
end
local options = {
ensure_installed = { "lua", "haskell", "rust", "markdown", "markdown_inline" },
2022-10-19 00:47:07 +01:00
highlight = {
enable = true,
use_languagetree = true,
additional_vim_regex_highlighting = { "markdown" },
},
2022-10-19 00:47:07 +01:00
indent = {
enable = true,
},
2022-10-19 00:47:07 +01:00
}
treesitter.setup(options)