nvim: go full treesitter
This commit is contained in:
parent
6fb2ec1b35
commit
3df18bf768
2 changed files with 28 additions and 0 deletions
|
@ -47,6 +47,17 @@ return require('packer').startup(function(use)
|
||||||
use 'neomutt/neomutt.vim'
|
use 'neomutt/neomutt.vim'
|
||||||
use 'godlygeek/tabular'
|
use 'godlygeek/tabular'
|
||||||
use 'preservim/vim-markdown'
|
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
|
-- pretty bits
|
||||||
use {
|
use {
|
||||||
|
|
17
nvim.lua/.config/nvim/lua/ts_setup.lua
Normal file
17
nvim.lua/.config/nvim/lua/ts_setup.lua
Normal 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,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue