-vim.opt.shortmess = "I"
-
--- Treesitter
-require('nvim-treesitter.configs').setup {
- ensure_installed = "maintained",
- highlight = {
- enable = true,
- additional_vim_regex_highlighting = false,
- },
- incremental_selection = {
- enable = true,
- keymaps = {
- init_selection = "gnn",
- node_incremental = "grn",
- scope_incremental = "grc",
- node_decremental = "grm",
- },
- },
- indent = {
- enable = true
- }
-}
-
--- Folds
-vim.opt.foldmethod = 'expr'
-vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
-vim.opt.foldenable = false
-map('n', '<leader>fe', ':set foldenable<CR>', opts)
-map('n', '<leader>fd', ':set nofoldenable<CR>', opts)
-
--- Autocommands
-local autocommands = {
- highlight_yank = {
- {'TextYankPost', '*',
- 'lua vim.highlight.on_yank{on_visual=false}'};
- };
-}
-
-nvim_create_augroups(autocommands)