dotfiles/nvim/init.lua

27 lines
624 B
Lua
Raw Normal View History

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,
},
}
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,
}
end)