dotfiles

config files and scripts
git clone git://git.hanetzok.net/dotfiles
Log | Files | Refs | README

options.lua (1607B)


      1 local g = vim.g       -- Global variables
      2 local opt = vim.opt   -- Set options (global/buffer/windows-scoped)
      3 
      4 -- General
      5 opt.mouse = 'a'                       -- Enable mouse support
      6 opt.clipboard = 'unnamedplus'         -- Copy/paste to system clipboard
      7 opt.swapfile = false                  -- Don't use swapfile
      8 opt.completeopt = 'menuone,noinsert,noselect'  -- Autocomplete options
      9 
     10 -- Neovim UI
     11 opt.relativenumber = true   -- Show relative line numbers
     12 opt.showmatch = true        -- Highlight matching parenthesis
     13 opt.foldmethod = 'marker'   -- Enable folding (default 'foldmarker')
     14 opt.colorcolumn = '80'      -- Line lenght marker at 80 columns
     15 opt.splitright = true       -- Vertical split to the right
     16 opt.splitbelow = true       -- Horizontal split to the bottom
     17 opt.ignorecase = true       -- Ignore case letters when search
     18 opt.smartcase = true        -- Ignore lowercase for the whole pattern
     19 opt.linebreak = true        -- Wrap on word boundary
     20 opt.termguicolors = true    -- Enable 24-bit RGB colors
     21 opt.laststatus=3            -- Set global statusline
     22 
     23 -- Tabs, indent
     24 opt.expandtab = true        -- Use spaces instead of tabs
     25 opt.shiftwidth = 2          -- Shift 2 spaces when tab
     26 opt.tabstop = 2             -- 1 tab == 2 spaces
     27 opt.smartindent = true      -- Autoindent new lines
     28 
     29 -- Memory, CPU
     30 opt.hidden = true           -- Enable background buffers
     31 opt.history = 100           -- Remember N lines in history
     32 opt.lazyredraw = true       -- Faster scrolling
     33 opt.synmaxcol = 240         -- Max column for syntax highlight
     34 opt.updatetime = 250        -- ms to wait for trigger an event