2022-12-20 17:21:09 +00:00
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.ignorecase = true
|
|
|
|
vim.opt.tabstop = 2
|
|
|
|
vim.opt.shiftwidth = 2
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
|
|
|
|
require'nvim-treesitter.configs'.setup {
|
|
|
|
ensure_installed = { "c", "lua", "kotlin", "javascript", "typescript" },
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
additional_vim_regex_highlighting = false,
|
|
|
|
},
|
2022-12-21 07:03:53 +00:00
|
|
|
rainbow = {
|
|
|
|
enable = true,
|
|
|
|
extended_mode = true,
|
|
|
|
max_file_lines = nil,
|
|
|
|
}
|
2022-12-20 17:21:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
use {
|
|
|
|
'nvim-treesitter/nvim-treesitter',
|
|
|
|
run = function()
|
|
|
|
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
|
|
|
|
ts_update()
|
|
|
|
end,
|
|
|
|
}
|
2022-12-21 07:03:53 +00:00
|
|
|
use 'p00f/nvim-ts-rainbow'
|
|
|
|
use 'jiangmiao/auto-pairs'
|
2022-12-20 17:21:09 +00:00
|
|
|
end)
|
|
|
|
|