mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 06:27:18 +01:00
Move my defaults to init.lua
There is no plugin default, why after/plugin/default.lua is not run
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
vim.opt.backup = false
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.writebackup = false
|
||||
|
||||
vim.opt.colorcolumn = { 80, 120 }
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.tabstop = 2
|
||||
|
||||
vim.opt.showmode = false
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.listchars = 'tab:» ,extends:›,precedes:‹,nbsp:·,trail:·,eol:↵'
|
||||
|
||||
vim.opt.hlsearch = true
|
||||
|
||||
-- global status line ftw
|
||||
vim.opt.laststatus = 3
|
||||
-- sometimes handy, sometimes not, still evaluating
|
||||
vim.opt.winbar = '%=%m %f'
|
||||
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.splitright = true
|
||||
|
||||
vim.opt.scrolloff = 4
|
||||
vim.opt.sidescrolloff = 4
|
||||
|
||||
vim.opt.spelllang = { 'en_us', 'en_gb', 'de' }
|
||||
|
||||
vim.opt.foldlevelstart = 99
|
||||
29
init.lua
29
init.lua
@@ -157,9 +157,36 @@ require('lazy').setup({
|
||||
|
||||
-- [[ Setting options ]]
|
||||
-- See `:help vim.o`
|
||||
--
|
||||
|
||||
-- look mom, no backups
|
||||
vim.o.backup = false
|
||||
vim.o.swapfile = false
|
||||
vim.o.writebackup = false
|
||||
|
||||
vim.o.colorcolumn = '80,120'
|
||||
vim.o.shiftwidth = 2
|
||||
vim.o.tabstop = 2
|
||||
|
||||
-- global status line ftw
|
||||
vim.opt.laststatus = 3
|
||||
|
||||
-- well, do I recall what this does? I don't atm
|
||||
vim.o.splitbelow = true
|
||||
vim.o.splitright = true
|
||||
|
||||
-- spelling
|
||||
vim.o.spelllang = 'en_us,en_gb,de'
|
||||
|
||||
-- scrolloff
|
||||
vim.o.scrolloff = 4
|
||||
vim.o.sidescrolloff = 4
|
||||
|
||||
-- sometimes handy, sometimes not, still evaluating
|
||||
vim.o.winbar = '%=%m %f'
|
||||
|
||||
-- Set highlight on search
|
||||
vim.o.hlsearch = false
|
||||
vim.o.hlsearch = true
|
||||
|
||||
-- Make line numbers default
|
||||
vim.wo.number = true
|
||||
|
||||
Reference in New Issue
Block a user