Extract options to my_options.lua
This commit is contained in:
parent
472372a5b4
commit
f7c5812c9e
36
init.lua
36
init.lua
@ -15,41 +15,7 @@ local utils = require('utils')
|
||||
require('plugins')
|
||||
require('keymappings')
|
||||
-------------------- OPTIONS -------------------------------
|
||||
cmd 'colorscheme gruvbox-material' -- Put your favorite colorscheme here
|
||||
cmd 'syntax enable'
|
||||
cmd 'filetype plugin indent on'
|
||||
cmd 'language en_US.utf-8'
|
||||
utils.opt('o', 'hlsearch', true)
|
||||
utils.opt('o', 'guifont', 'Hack NF:h9')
|
||||
utils.opt('o', 'swapfile', false)
|
||||
utils.opt('o', 'backup', false)
|
||||
utils.opt('o', 'spelllang', 'en,de')
|
||||
local indent = 2
|
||||
utils.opt('b', 'expandtab', true)
|
||||
utils.opt('b', 'shiftwidth', indent)
|
||||
utils.opt('b', 'smartindent', true)
|
||||
utils.opt('b', 'tabstop', indent)
|
||||
utils.opt('o', 'hidden', true)
|
||||
utils.opt('o', 'ignorecase', true)
|
||||
utils.opt('o', 'scrolloff', 4 )
|
||||
utils.opt('o', 'shiftround', true)
|
||||
utils.opt('o', 'relativenumber', false)
|
||||
utils.opt('o', 'smartcase', true)
|
||||
utils.opt('o', 'splitbelow', true)
|
||||
utils.opt('o', 'splitright', true)
|
||||
utils.opt('o', 'wildmode', 'longest:full,full')
|
||||
utils.opt('w', 'number', true)
|
||||
utils.opt('o', 'clipboard', 'unnamed,unnamedplus')
|
||||
utils.opt('o', 'mouse', 'a')
|
||||
utils.opt('o', 'wrap', false)
|
||||
utils.opt('o', 'termguicolors', true)
|
||||
utils.opt('o', 'splitbelow', true)
|
||||
utils.opt('o', 'splitright', true)
|
||||
utils.opt('o', 'list', true)
|
||||
utils.opt('o', 'updatetime', 300)
|
||||
utils.opt('o', 'wrap', true)
|
||||
utils.opt('o', 'showmatch', true)
|
||||
|
||||
require('my_options')
|
||||
-------------------- AUTOCOMMANDS --------------------------
|
||||
require("autocommands")
|
||||
-------------------- TREE-SITTER ---------------------------
|
||||
|
35
lua/my_options.lua
Normal file
35
lua/my_options.lua
Normal file
@ -0,0 +1,35 @@
|
||||
local utils = require('utils')
|
||||
vim.cmd 'colorscheme gruvbox-material' -- Put your favorite colorscheme here
|
||||
vim.cmd 'syntax enable'
|
||||
vim.cmd 'filetype plugin indent on'
|
||||
vim.cmd 'language en_US.utf-8'
|
||||
utils.opt('o', 'hlsearch', true)
|
||||
utils.opt('o', 'guifont', 'Hack NF:h9')
|
||||
utils.opt('o', 'swapfile', false)
|
||||
utils.opt('o', 'backup', false)
|
||||
utils.opt('o', 'spelllang', 'en,de')
|
||||
local indent = 2
|
||||
utils.opt('b', 'expandtab', true)
|
||||
utils.opt('b', 'shiftwidth', indent)
|
||||
utils.opt('b', 'smartindent', true)
|
||||
utils.opt('b', 'tabstop', indent)
|
||||
utils.opt('o', 'hidden', true)
|
||||
utils.opt('o', 'ignorecase', true)
|
||||
utils.opt('o', 'scrolloff', 4 )
|
||||
utils.opt('o', 'shiftround', true)
|
||||
utils.opt('o', 'relativenumber', false)
|
||||
utils.opt('o', 'smartcase', true)
|
||||
utils.opt('o', 'splitbelow', true)
|
||||
utils.opt('o', 'splitright', true)
|
||||
utils.opt('o', 'wildmode', 'longest:full,full')
|
||||
utils.opt('w', 'number', true)
|
||||
utils.opt('o', 'clipboard', 'unnamed,unnamedplus')
|
||||
utils.opt('o', 'mouse', 'a')
|
||||
utils.opt('o', 'wrap', false)
|
||||
utils.opt('o', 'termguicolors', true)
|
||||
utils.opt('o', 'splitbelow', true)
|
||||
utils.opt('o', 'splitright', true)
|
||||
utils.opt('o', 'list', true)
|
||||
utils.opt('o', 'updatetime', 300)
|
||||
utils.opt('o', 'wrap', true)
|
||||
utils.opt('o', 'showmatch', true)
|
Loading…
x
Reference in New Issue
Block a user