development/templates/nvim/lua/options.lua.j2

59 lines
1.3 KiB
Django/Jinja

-- {{ ansible_managed }}
-- fix different locale settings when ssh'ing
vim.o.encoding = 'utf-8'
vim.o.syntax = 'on'
-- display all matching files when we tab complete
vim.o.wildmenu = true
-- 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
-- folding
vim.o.foldmethod = 'expr'
vim.o.foldlevel = 99
vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
-- 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
-- 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
-- theme related
vim.o.termguicolors = true
-- use a dedicated file explorer
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- python interpreter
vim.g.python3_host_prog = '/usr/bin/python3'