Move my defaults to init.lua

There is no plugin default, why after/plugin/default.lua is not run
This commit is contained in:
Thomas Ruoff
2023-10-11 23:50:52 +02:00
parent 84eeceb6fa
commit c4ce956a1d
2 changed files with 28 additions and 29 deletions

View File

@@ -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

View File

@@ -157,9 +157,36 @@ require('lazy').setup({
-- [[ Setting options ]] -- [[ Setting options ]]
-- See `:help vim.o` -- 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 -- Set highlight on search
vim.o.hlsearch = false vim.o.hlsearch = true
-- Make line numbers default -- Make line numbers default
vim.wo.number = true vim.wo.number = true