Move most init.lua configing to lua/config.lua
parent
28f33e8267
commit
914b57cdbb
@ -1,2 +1,14 @@
|
||||
-- plugin-independent configuration, such as autocmds
|
||||
vim.cmd("autocmd InsertLeave * write")
|
||||
local set = vim.opt
|
||||
|
||||
-- Set some stuff up like clipboard and mouse
|
||||
set.termguicolors = true -- Needed for literally any modern colorscheme
|
||||
set.mouse = 'a' -- Mouse support
|
||||
set.clipboard = 'unnamedplus' -- Use X11 clipboard
|
||||
set.pumheight = 5 -- Uhh whatever the fuck this does
|
||||
set.number = true -- Show line numbers
|
||||
set.tabstop = 4 -- Set up tabs
|
||||
set.shiftwidth = 4 -- See above
|
||||
|
||||
-- Autocmds
|
||||
vim.cmd("autocmd InsertLeave * write") -- Autowrite when leaving insert mode
|
||||
|
Loading…
Reference in new issue