huge refactor

- tidy up
- shuffle code around
- use same abstractions for all usecases
This commit is contained in:
Vladan Popovic 2023-07-30 04:26:25 +02:00
parent 9570523e75
commit 721bc03588
12 changed files with 116 additions and 178 deletions

View file

@ -1,2 +1,3 @@
-- nvim-compe
require('config.compe')
require('config.treesitter')

19
lua/config/treesitter.lua Normal file
View file

@ -0,0 +1,19 @@
require('nvim-treesitter.configs').setup {
ensure_installed = { "lua", "rust", "elm", "python", "yaml", "toml" },
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting=false,
},
ident = {
enable = true,
},
rainbow = {
enable = true,
extended_mode = false,
max_file_lines = nil,
}
}
vim.api.nvim_set_hl(0, "@variable", { })
vim.api.nvim_set_hl(0, "@parameter", { })