123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- -- Impatient
- require("impatient")
- -- Autocmds
- vim.cmd([[
- augroup CursorLine
- au!
- au VimEnter * setlocal cursorline
- au WinEnter * setlocal cursorline
- au BufWinEnter * setlocal cursorline
- au WinLeave * setlocal nocursorline
- augroup END
- autocmd FileType nix setlocal shiftwidth=4
- ]])
- local o = vim.opt
- local g = vim.g
- -- Show line
- o.colorcolumn = "80"
- g.loaded_netrw = 1
- g.loaded_netrwPlugin = 1
- -- Performance
- o.lazyredraw = true
- o.shell = "bash"
- o.shadafile = "NONE"
- -- Colors
- o.termguicolors = true
- -- Undo files
- o.undofile = true
- -- Indentation
- o.smartindent = true
- o.tabstop = 4
- o.shiftwidth = 2
- o.shiftround = true
- o.expandtab = true
- o.scrolloff = 3
- -- Set clipboard to use system clipboard
- o.clipboard = "unnamedplus"
- -- Use mouse
- o.mouse = "a"
- -- Nicer UI settings
- o.cursorline = true
- o.relativenumber = true
- o.number = true
- -- Get rid of annoying viminfo file
- o.viminfo = ""
- o.viminfofile = "NONE"
- -- Miscellaneous quality of life
- o.ignorecase = true
- o.hidden = true
- o.shortmess = "atI"
- o.wrap = false
- o.backup = false
- o.writebackup = false
- o.errorbells = false
- o.swapfile = false
- o.showmode = false
- o.laststatus = 3
- o.pumheight = 6
- o.splitright = true
- o.splitbelow = true
- o.completeopt = "menu,menuone,noselect"
|