updated settings

This commit is contained in:
Oliver Ladner 2023-11-28 12:55:04 +01:00
commit 0198f0d14e

View file

@ -1,5 +1,3 @@
-- Preferences
-- Set highlight on search
vim.opt.hlsearch = true
@ -9,26 +7,24 @@ vim.opt.incsearch = true
-- Make line numbers default
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.signcolumn = 'number'
-- Separate sign colum (extra column for Git/LSP)
vim.wo.signcolumn = 'yes'
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true -- indent using spaces instead of <Tab>
-- Dynamic line numbers
--vim.wo.relativenumber = true
-- highlight columns
vim.opt.colorcolumn = '80,120'
-- Sync clipboard between OS and Neovim.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`
-- Remove this option if you want your OS clipboard to remain independent.
--vim.opt.clipboard = 'unnamedplus'
-- Always keep this amount of lines above and below the cursor
vim.opt.scrolloff = 5
vim.opt.scrolloff = 5
-- Always show tab bar
-- NOTE: I try to get away from this by using buffer management with Telescope
@ -37,9 +33,6 @@ vim.opt.scrolloff = 5
-- Highlight current line
--vim.opt.cursorline = true
-- Separate sign colum (shows Git line status)
vim.wo.signcolumn = 'yes'
-- Blink cursor in normal mode
--vim.opt.guicursor = 'n:blinkon300-blinkwait200-blinkoff300'
@ -50,3 +43,10 @@ vim.opt.termguicolors = true
vim.opt.background = 'dark' -- light, dark
-- Themes: duskfox, tokyonight-night, tokyonight-storm, tokyonight-day, tokyonight-moon
vim.cmd.colorscheme 'tokyonight-storm'
-- Decrease update time
vim.opt.updatetime = 250
vim.opt.timeoutlen = 300
-- Set completeopt to have a better completion experience
vim.opt.completeopt = 'menuone,noselect'