nvim: go full treesitter

This commit is contained in:
Grigory Shipunov 2023-01-21 22:11:43 +01:00
parent 6fb2ec1b35
commit 3df18bf768
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
2 changed files with 28 additions and 0 deletions

View file

@ -47,6 +47,17 @@ return require('packer').startup(function(use)
use 'neomutt/neomutt.vim'
use 'godlygeek/tabular'
use 'preservim/vim-markdown'
-- treesitter
use {
'nvim-treesitter/nvim-treesitter',
run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,
config = function()
require('ts_setup')
end,
}
-- pretty bits
use {

View file

@ -0,0 +1,17 @@
local ts_conf = require('nvim-treesitter.configs')
ts_conf.setup {
ensure_installed = "all",
highlight = {
enable = true,
},
indent = {
enable = true,
},
incremental_selection = {
enable = true,
},
textobjects = {
enable = true,
},
}