Added nvim lua config

This commit is contained in:
Nikurasu 2022-12-20 18:21:09 +01:00
parent b3115466a5
commit 2e8f00d17d
2 changed files with 30 additions and 0 deletions

26
nvim/init.lua Normal file
View file

@ -0,0 +1,26 @@
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)

View file

@ -21,11 +21,15 @@ symbol = " "
[conda]
symbol = " "
[cmd_duration]
style = "bold purple"
[dart]
symbol = " "
[directory]
read_only = " "
style = "bold blue"
[docker_context]
symbol = " "