From dd394120a2a940cc165f3f29fe8e374c964cba77 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 11 Aug 2022 18:51:51 +0200 Subject: [PATCH] nvim: set some options --- .config/nvim/lua/my/settings.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/my/settings.lua b/.config/nvim/lua/my/settings.lua index 582c24b..310873d 100644 --- a/.config/nvim/lua/my/settings.lua +++ b/.config/nvim/lua/my/settings.lua @@ -3,17 +3,21 @@ vim.o.list = true -- show whitespace vim.o.listchars = 'tab:▸ ,trail:·,nbsp:+' vim.o.textwidth = 80 -- default text width vim.o.colorcolumn = tostring(vim.o.textwidth) -vim.o.wrap = false +vim.o.wrap = false -- don't wrap long lines vim.o.cursorline = true -- highlight row with cursor vim.o.scrolloff = 5 -- show 5 lines below/above cursor - +vim.o.sidescrolloff = 5 -- same fore left/right vim.o.expandtab = true -- indent using spaces vim.o.tabstop = 4 -- 1 tab = 4 spaces vim.o.shiftwidth = 4 -- 1 indentation = 4 spaces - vim.o.completeopt = 'menu,menuone,noselect' -- completion popup vim.o.autochdir = true -- change workir to current file dir vim.o.updatetime = 500 -- fire CursorHold autocommand event +vim.o.cmdheight = 2 -- message area size +vim.o.mouse = 'nv' -- make use of mouse in these modes +vim.o.pumheight = 10 -- maximum entries in popup menu +vim.o.smartindent = true -- indent after { and so on + -- theme vim.o.termguicolors = true -- 24 bit colours