From 84d6ea7a6302a916a38af262685db03902ce4866 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Thu, 8 Jul 2021 15:37:51 +0430 Subject: you can disable clipboard (#783) --- lua/settings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/settings.lua') diff --git a/lua/settings.lua b/lua/settings.lua index 3bf5d338..e1da3965 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -22,7 +22,7 @@ vim.g.colors_name = O.colorscheme --- SETTINGS --- opt.backup = false -- creates a backup file -opt.clipboard = "unnamedplus" -- allows neovim to access the system clipboard +opt.clipboard = O.clipboard -- allows neovim to access the system clipboard opt.cmdheight = O.cmdheight -- more space in the neovim command line for displaying messages opt.colorcolumn = "99999" -- fix indentline for now opt.completeopt = { "menuone", "noselect" } -- cgit v1.2.3 From 3ec856a78d0e00f93110d57d908ea5c39aa081ae Mon Sep 17 00:00:00 2001 From: Gruak <43846312+Gruak@users.noreply.github.com> Date: Thu, 8 Jul 2021 17:09:43 +0200 Subject: add scrolloff config option --- lua/settings.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua/settings.lua') diff --git a/lua/settings.lua b/lua/settings.lua index e1da3965..044708b9 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -34,6 +34,7 @@ opt.hlsearch = O.hl_search -- highlight all matches on previous search pattern opt.ignorecase = O.ignore_case -- ignore case in search patterns opt.mouse = "a" -- allow the mouse to be used in neovim opt.pumheight = 10 -- pop up menu height +opt.scrolloff = O.scrolloff -- minimal number of screen lines to keep above and below the cursor opt.showmode = false -- we don't need to see things like -- INSERT -- anymore opt.showtabline = 2 -- always show tabs opt.smartcase = O.smart_case -- smart case -- cgit v1.2.3 From 4f372bb3b77f5bc60aa14fdaf2b9687414fc981a Mon Sep 17 00:00:00 2001 From: rebuilt Date: Thu, 8 Jul 2021 23:12:48 +0200 Subject: call colorschemes only after they get installed (#798) --- lua/settings.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lua/settings.lua') diff --git a/lua/settings.lua b/lua/settings.lua index 044708b9..78e9e777 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -11,21 +11,17 @@ cmd "set inccommand=split" cmd "set iskeyword+=-" cmd "set whichwrap+=<,>,[,],h,l" if O.transparent_window then - cmd "au ColorScheme * hi Normal ctermbg=none guibg=none" - cmd "au ColorScheme * hi SignColumn ctermbg=none guibg=none" + cmd "au ColorScheme * hi Normal ctermbg=none guibg=none" + cmd "au ColorScheme * hi SignColumn ctermbg=none guibg=none" end ---- COLORSCHEME --- - -vim.g.colors_name = O.colorscheme - --- SETTINGS --- opt.backup = false -- creates a backup file opt.clipboard = O.clipboard -- allows neovim to access the system clipboard opt.cmdheight = O.cmdheight -- more space in the neovim command line for displaying messages opt.colorcolumn = "99999" -- fix indentline for now -opt.completeopt = { "menuone", "noselect" } +opt.completeopt = {"menuone", "noselect"} opt.conceallevel = 0 -- so that `` is visible in markdown files opt.fileencoding = "utf-8" -- the encoding written to a file opt.guifont = "monospace:h17" -- the font used in graphical neovim applications -- cgit v1.2.3