Move treesitter config to own file, fix ensure_installed setup
This commit is contained in:
parent
8cc2f9f188
commit
667115842f
|
@ -147,12 +147,3 @@ require('lspconfig')['sumneko_lua'].setup {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
require'nvim-treesitter.configs'.setup {
|
|
||||||
highlight = {
|
|
||||||
ensure_installed = {"python", "markdown", "lua", "yaml", "bash"},
|
|
||||||
auto_install = true,
|
|
||||||
enable = true,
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
18
lua/config_plugins/config_treesitter.lua
Normal file
18
lua/config_plugins/config_treesitter.lua
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
ensure_installed = {
|
||||||
|
'python',
|
||||||
|
'markdown',
|
||||||
|
'lua',
|
||||||
|
'yaml',
|
||||||
|
'bash',
|
||||||
|
'html',
|
||||||
|
'json',
|
||||||
|
'toml',
|
||||||
|
},
|
||||||
|
auto_install = true,
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -37,14 +37,15 @@ require('packer').startup(function(use)
|
||||||
use "lukas-reineke/indent-blankline.nvim"
|
use "lukas-reineke/indent-blankline.nvim"
|
||||||
end)
|
end)
|
||||||
|
|
||||||
require 'config_plugins/config_aerial'
|
require 'config_plugins.config_aerial'
|
||||||
require 'config_plugins/config_gitsigns'
|
require 'config_plugins.config_gitsigns'
|
||||||
require 'config_plugins/config_lualine'
|
require 'config_plugins.config_lualine'
|
||||||
require 'config_plugins/config_nightfox'
|
require 'config_plugins.config_nightfox'
|
||||||
require 'config_plugins/config_nvim-tree'
|
require 'config_plugins.config_nvim-tree'
|
||||||
require 'config_plugins/config_sniprun'
|
require 'config_plugins.config_sniprun'
|
||||||
require 'config_plugins/config_telescope'
|
require 'config_plugins.config_telescope'
|
||||||
require 'config_plugins/config_toggleterm'
|
require 'config_plugins.config_toggleterm'
|
||||||
|
require 'config_plugins.config_treesitter'
|
||||||
|
|
||||||
require('trouble').setup()
|
require('trouble').setup()
|
||||||
require('fidget').setup()
|
require('fidget').setup()
|
||||||
|
|
Loading…
Reference in a new issue