neovim

Personal neovim configuration files
git clone git://gtms.dev/neovim
Log | Files | Refs

options.lua (1347B)


      1 vim.opt.exrc = true
      2 vim.opt.clipboard = 'unnamedplus'
      3 vim.opt.completeopt = 'menu,menuone,noselect'
      4 -- vim.opt.equalalways = false -- exp
      5 vim.opt.grepprg = 'rg --vimgrep --no-heading --smart-case --ignore-case'
      6 vim.opt.grepformat = '%f:%l:%c:%m'
      7 vim.opt.formatoptions:append('o')
      8 vim.opt.formatoptions:append('r')
      9 vim.opt.ignorecase = true -- use `/C` to force case
     10 vim.opt.inccommand = 'split'
     11 vim.opt.pumheight = 5
     12 -- vim.opt.shortmess = vim.opt.shortmess + 'c' -- exp
     13 vim.opt.showbreak = '>\\'
     14 vim.opt.showmode = false
     15 vim.opt.smartcase = true
     16 vim.opt.splitbelow = true
     17 vim.opt.splitright = true
     18 vim.opt.termguicolors = true
     19 vim.opt.updatetime = 100
     20 vim.opt.expandtab = true
     21 vim.opt.tabstop = 2
     22 vim.opt.shiftwidth = 2
     23 -- vim.opt.softtabstop = -1 -- exp
     24 vim.opt.smartindent = true
     25 vim.opt.breakindent = true
     26 vim.opt.swapfile = false
     27 vim.opt.undofile = true
     28 vim.opt.laststatus = 3
     29 vim.opt.statusline = ' '
     30 -- its nice but when:
     31 -- * changing qf-item there is entr-prompt
     32 -- vim.opt.cmdheight = 0
     33 vim.opt.winbar = '%=%m %f'
     34 vim.opt.ruler = false
     35 vim.opt.listchars = { space = '·', tab = '» ', extends = '›', precedes = '‹', nbsp = '_', trail = '_', eol = '$' }
     36 vim.opt.fillchars = { eob = '•', diff = '╱' }
     37 vim.opt.scrolloff = 5
     38 vim.opt.sidescrolloff = 5
     39 vim.opt.signcolumn = 'yes:1'
     40 vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'