From 07979773e1bfa0651e36270e96bad9b861f0df1c Mon Sep 17 00:00:00 2001 From: Mo8it Date: Wed, 4 May 2022 22:49:26 +0200 Subject: [PATCH] Lower refresh rate --- .config/nvim/lua/options.lua | 49 ++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua index 2c90722..1a99150 100644 --- a/.config/nvim/lua/options.lua +++ b/.config/nvim/lua/options.lua @@ -1,45 +1,44 @@ -local opt = vim.o -local cmd = vim.cmd +local o = vim.o -- -opt.expandtab = true -opt.tabstop = 4 -opt.shiftwidth = 4 -opt.smartindent = true +o.expandtab = true +o.tabstop = 4 +o.shiftwidth = 4 +o.smartindent = true -opt.number = true -opt.relativenumber = true +o.number = true +o.relativenumber = true -opt.ignorecase = true -opt.smartcase = true +o.ignorecase = true +o.smartcase = true -opt.gdefault = true +o.gdefault = true -opt.termguicolors = true +o.termguicolors = true -opt.wrap = false +o.wrap = false -opt.whichwrap = "b,s,h,l,<,>,[,]" +o.whichwrap = "b,s,h,l,<,>,[,]" -opt.clipboard = "unnamedplus" +o.clipboard = "unnamedplus" -opt.undofile = true +o.undofile = true -opt.showmode = false +o.showmode = false -opt.scrolloff = 3 -opt.sidescrolloff = 5 +o.scrolloff = 3 +o.sidescrolloff = 5 -opt.cursorline = true +o.cursorline = true -opt.shell = "/home/mo/.local/bin/xonsh" +o.shell = "/usr/bin/fish" -opt.confirm = true +o.confirm = true -opt.linebreak = true +o.linebreak = true -opt.laststatus = 3 +o.laststatus = 3 -- Highlight on yank local function custom_highlight_on_yank() @@ -52,7 +51,7 @@ vim.api.nvim_create_autocmd("TextYankPost", { }) -- Noevide -vim.g.neovide_refresh_rate = 120 +vim.g.neovide_refresh_rate = 90 -- Disable diagnostics vim.diagnostic.disable()