Create and push an initial working version of this repo before I change things on this machine Signed-off-by: Robert Morrison <robert@closedless.xyz>
92 lines
1.6 KiB
Lua
92 lines
1.6 KiB
Lua
-- options
|
|
|
|
local opt = vim.opt
|
|
|
|
vim.g.mapleader = '\\'
|
|
vim.g.maplocalleader = ','
|
|
|
|
-- Show the line number on the currentline,
|
|
-- and relative numbers on the others
|
|
opt.relativenumber = true
|
|
opt.number = true
|
|
|
|
-- Make searching a litle nicer
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
opt.hlsearch = true
|
|
opt.incsearch = true
|
|
|
|
-- Split in a more logical manner
|
|
opt.splitright = true
|
|
opt.splitbelow = true
|
|
|
|
-- making timeout super short makes which-key show up immediately
|
|
opt.timeout = true
|
|
opt.timeoutlen = 0
|
|
|
|
-- Try and keep some context on screen
|
|
opt.scrolloff = 15
|
|
opt.sidescroll = 6
|
|
|
|
-- Force 24 colour support
|
|
opt.termguicolors = true
|
|
|
|
-- Set terminal title
|
|
opt.title = true
|
|
|
|
-- Spell in english by default
|
|
opt.spelllang = 'en_gb'
|
|
|
|
-- Ignore compiled files in completion
|
|
opt.wildignore = {
|
|
'*pycache*',
|
|
'*.o',
|
|
'*~',
|
|
'*.pyc',
|
|
}
|
|
|
|
-- folding
|
|
opt.foldmethod = 'expr'
|
|
opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
|
opt.foldminlines = 5
|
|
opt.foldclose = 'all'
|
|
opt.foldlevelstart = 1
|
|
|
|
-- control the sign column
|
|
opt.signcolumn = 'auto:2-5'
|
|
|
|
-- Cursorline default
|
|
opt.cursorline = true
|
|
|
|
-- UI
|
|
opt.showmode = false
|
|
opt.showcmd = true
|
|
opt.cmdheight = 1
|
|
opt.background = 'dark'
|
|
opt.laststatus = 0
|
|
|
|
-- Indentation & wrapping
|
|
opt.autoindent = true
|
|
opt.cindent = true
|
|
opt.wrap = true
|
|
|
|
opt.tabstop = 4
|
|
opt.shiftwidth = 4
|
|
opt.softtabstop = 4
|
|
opt.expandtab = false
|
|
|
|
opt.breakindent = true
|
|
opt.showbreak = '>'
|
|
opt.linebreak = true
|
|
|
|
-- Misc
|
|
opt.belloff = 'all'
|
|
opt.clipboard = 'unnamedplus'
|
|
opt.mouse = 'a'
|
|
|
|
opt.shortmess = ''
|
|
.. 's' -- don't give search messages
|
|
.. 'W' -- don't give file written messages
|
|
.. 'I' -- don't give intro message
|
|
.. 'F' -- don't give file info when editing
|