diff --git a/nvim/init.lua b/nvim/init.lua new file mode 100644 index 0000000..4c7b039 --- /dev/null +++ b/nvim/init.lua @@ -0,0 +1,56 @@ +--vim:set ts=2 sw=2 et: + +--fix different locale settings when ssh'ing +vim.o.encoding = 'utf-8' + +--replace vertical split pipe character with space +vim.o.fillchars = 'vert:|,fold: ' + +--Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable +--delays and poor user experience. +vim.o.updatetime = 300 + +vim.o.splitright = true +vim.o.splitbelow = true + +--switch buffers without writing to file +vim.o.hidden = true + +--fold indents +vim.o.foldmethod = 'indent' + +--Don't open folds when jumping over one with (, {, [[ or [{ +vim.opt.foldopen = vim.opt.foldopen - { 'block' } + +--search down into subfolders +--provides tab-completion for all file-related tasks +vim.opt.path = vim.opt.path + { '**' } + +--line numbers +vim.o.number = true + +--changes to current directory when creating new files +vim.o.autochdir = true + +--higlhight search +vim.o.hls = true + +--search as characters are entered +vim.o.incsearch = true + +--line for linewrapping +vim.o.colorcolumn = '80' + +--wrap text instead of being on one line +vim.o.lbr = true + +--default Colors for CursorLine +vim.o.cursorline = true + +vim.o.termguicolors = true +vim.o.background = 'dark' +vim.cmd('colorscheme space_vim_theme') + +--activate statusbar +vim.o.laststatus = 2 +vim.o.statusline = ' %F %m%r%w %= %{hostname()} %{strlen(&ft)?&ft:"none"} %{(&bomb?",BOM":"")} %{&ff} %l/%L %c %P'