mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(vim): add nvim-treesitter and configuration
This commit is contained in:
@@ -22,6 +22,7 @@ source ~/.config/nvim/plugins/sidebar.lua
|
||||
source ~/.config/nvim/plugins/speeddating.vim
|
||||
source ~/.config/nvim/plugins/telescope.lua
|
||||
source ~/.config/nvim/plugins/tree.lua
|
||||
source ~/.config/nvim/plugins/treesitter.lua
|
||||
source ~/.config/nvim/plugins/trouble.lua
|
||||
source ~/.config/nvim/plugins/ultisnips.vim
|
||||
source ~/.config/nvim/plugins/vim-easymotion.vim
|
||||
|
||||
@@ -62,6 +62,9 @@ Plug 'whatyouhide/vim-textobj-xmlattr' " ax, ix
|
||||
" Custom Motions
|
||||
Plug 'easymotion/vim-easymotion' " <Leader><Leader> (motion)
|
||||
|
||||
" Syntax Highlighting
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'JoosepAlviste/nvim-ts-context-commentstring'
|
||||
" Status Line
|
||||
Plug 'hoob3rt/lualine.nvim'
|
||||
Plug 'akinsho/bufferline.nvim'
|
||||
|
||||
41
nvim/plugins/treesitter.lua
Normal file
41
nvim/plugins/treesitter.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
-- nvim-treesitter
|
||||
-- https://github.com/nvim-treesitter/nvim-treesitter
|
||||
|
||||
local status, treesitter = pcall(require, 'nvim-treesitter')
|
||||
if (not status) then return end
|
||||
|
||||
treesitter.setup {
|
||||
ensure_installed = {
|
||||
'bash',
|
||||
'css',
|
||||
'dockerfile',
|
||||
'graphql',
|
||||
'html',
|
||||
'javascript',
|
||||
'jsdoc',
|
||||
'json',
|
||||
'lua',
|
||||
'python',
|
||||
'ruby',
|
||||
'scss',
|
||||
'svelte',
|
||||
'toml',
|
||||
'tsx',
|
||||
'typescript',
|
||||
'vim',
|
||||
'vue',
|
||||
'yaml',
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
additional_vim_regex_highlighting = true
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
},
|
||||
context_commentstring = {
|
||||
enable = true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user