initial commit
This commit is contained in:
commit
48bd259cd8
29 changed files with 1107 additions and 0 deletions
63
lua/core/settings.lua
Normal file
63
lua/core/settings.lua
Normal file
|
@ -0,0 +1,63 @@
|
|||
-- Settings
|
||||
|
||||
-- cursor
|
||||
vim.api.nvim_set_option("guicursor","n-v-c-sm:hor20-Cursor,i-ci-ve:ver80-iCursor,r-cr-o:hor40,a:blinkwait700-blinkoff400-blinkon250")
|
||||
|
||||
-- disable mouse
|
||||
vim.api.nvim_set_option("mouse","")
|
||||
|
||||
-- relative numbers
|
||||
vim.opt.nu = true
|
||||
vim.opt.rnu = true
|
||||
vim.opt.signcolumn = 'yes'
|
||||
|
||||
-- setting completion menu for autocompletion
|
||||
vim.opt.completeopt = 'menu,menuone,noselect'
|
||||
vim.opt.list = true
|
||||
|
||||
-- correct tabbing
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.expandtab = true
|
||||
|
||||
-- enable foldcolumn
|
||||
vim.wo.foldcolumn = "2"
|
||||
|
||||
-- smart indenting by vim
|
||||
vim.api.nvim_set_option("smartindent",true)
|
||||
|
||||
-- highlightsearch off but incsearch on with smartcase and ignorecase
|
||||
vim.api.nvim_set_option("hlsearch", false)
|
||||
vim.api.nvim_set_option("incsearch", true)
|
||||
vim.api.nvim_set_option("smartcase", true)
|
||||
vim.api.nvim_set_option("ignorecase", true)
|
||||
|
||||
-- colors with gui-terminal and dark background
|
||||
vim.api.nvim_set_option("termguicolors", true)
|
||||
vim.api.nvim_set_option("background", "dark")
|
||||
|
||||
-- always center
|
||||
-- vim.api.nvim_set_option("scrolloff",999)
|
||||
vim.api.nvim_set_option("scrolloff",15)
|
||||
|
||||
-- spellchecking
|
||||
vim.wo.spell = true
|
||||
vim.bo.spelllang = "de"
|
||||
|
||||
-- highlight the current linenumber
|
||||
vim.wo.cursorline = true
|
||||
vim.wo.cursorlineopt = "both"
|
||||
|
||||
-- splitting below and right
|
||||
vim.api.nvim_set_option("splitbelow",true)
|
||||
vim.api.nvim_set_option("splitright",true)
|
||||
|
||||
-- disable Netrw-Banner
|
||||
vim.g.netrw_banner = 0
|
||||
|
||||
-- undotree file management
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.local/share/nvim/undodir"
|
||||
vim.opt.undofile = true
|
Loading…
Add table
Add a link
Reference in a new issue