Merge some lua files into options.lua

This commit is contained in:
flyingscorpio@clevo 2022-07-31 14:40:26 +02:00
parent 95afa57b21
commit 5b99db8a46
5 changed files with 26 additions and 26 deletions

View file

@ -1,9 +1,6 @@
require('transition')
require('encoding')
require('remaps')
require('spacetabs')
require('searching')
require('folding')
require('options')
require('plugins')
-- require('colors')

View file

@ -1,10 +0,0 @@
-- FOLDING
-- enable folding
vim.opt.foldenable = true
-- open most folds by default (0 to 99)
vim.opt.foldlevelstart = 10
-- guard against too many nested folds
vim.opt.foldnestmax = 10
-- fold based on filetype
vim.opt.foldmethod = 'syntax'

View file

@ -11,3 +11,29 @@ vim.opt.smartindent = true -- use intelligent indentation for C
vim.opt.wildmenu = true -- visual autocomplete for command menu
vim.opt.lazyredraw = true -- redraw only when necessary
vim.opt.showmatch = true -- highlight matching braces
-- SPACES AND TABS
vim.opt.expandtab = true
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
-- SEARCHING
-- search as characters are entered
vim.opt.incsearch = true
-- highlight matches
vim.opt.hlsearch = true
-- turn off search hightlight after search
vim.keymap.set('n', '<leader', '<cmd>nohlsearch<CR>', { remap = false })
-- FOLDING
-- enable folding
vim.opt.foldenable = true
-- open most folds by default (0 to 99)
vim.opt.foldlevelstart = 10
-- guard against too many nested folds
vim.opt.foldnestmax = 10
-- fold based on filetype
vim.opt.foldmethod = 'syntax'

View file

@ -1,8 +0,0 @@
-- SEARCHING
-- search as characters are entered
vim.opt.incsearch = true
-- highlight matches
vim.opt.hlsearch = true
-- turn off search hightlight after search
vim.keymap.set('n', '<leader', '<cmd>nohlsearch<CR>', { remap = false })

View file

@ -1,5 +0,0 @@
-- SPACES AND TABS
vim.opt.expandtab = true -- expand tabs to spaces
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4 -- number of spaces in tab when editing