70 lines
1.7 KiB
Lua
70 lines
1.7 KiB
Lua
-- Settings
|
|
|
|
-- cursor
|
|
vim.api.nvim_set_option("guicursor","n-v-c-sm:hor100-Cursor,i-ci-ve:ver100-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:3'
|
|
|
|
-- 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
|
|
|
|
-- disable Netrw for Filetree Plugin
|
|
vim.g.loaded_netrw = 1
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
|
|
-- 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
|
|
|
|
vim.opt.shortmess = "I"
|