49 lines
1.3 KiB
Lua
49 lines
1.3 KiB
Lua
-- 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.rnu = true
|
|
|
|
-- correct tabbing
|
|
vim.api.nvim_set_option("tabstop",4)
|
|
vim.api.nvim_set_option("softtabstop",4)
|
|
vim.api.nvim_set_option("shiftwidth",4)
|
|
vim.api.nvim_set_option("expandtab",true)
|
|
|
|
-- 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.opt.scrolloff = 999
|
|
vim.api.nvim_set_option("scrolloff",999)
|
|
|
|
-- spellchecking
|
|
vim.wo.spell = true
|
|
vim.bo.spelllang = "de,en_us"
|
|
|
|
-- 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
|
|
|