From 5ca6ac2147c0741a2970b034ff120f44fb0eea8b Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Mon, 17 Oct 2022 15:17:55 -0500 Subject: [PATCH] Fixing minor error in Nvim config --- .config/nitrogen/bg-saved.cfg | 6 +++--- .config/nvim/lua/dt/base.lua | 1 - .config/nvim/lua/dt/highlights.lua | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.config/nitrogen/bg-saved.cfg b/.config/nitrogen/bg-saved.cfg index 9f73c7f..636dfde 100644 --- a/.config/nitrogen/bg-saved.cfg +++ b/.config/nitrogen/bg-saved.cfg @@ -1,14 +1,14 @@ [xin_0] -file=/home/dt/wallpapers/0063.jpg +file=/home/dt/wallpapers/0137.jpg mode=0 bgcolor=#000000 [xin_1] -file=/home/dt/wallpapers/0063.jpg +file=/home/dt/wallpapers/0137.jpg mode=0 bgcolor=#000000 [xin_2] -file=/home/dt/wallpapers/0063.jpg +file=/home/dt/wallpapers/0137.jpg mode=0 bgcolor=#000000 diff --git a/.config/nvim/lua/dt/base.lua b/.config/nvim/lua/dt/base.lua index cac00b2..671ba55 100644 --- a/.config/nvim/lua/dt/base.lua +++ b/.config/nvim/lua/dt/base.lua @@ -7,7 +7,6 @@ local g = vim.g local o = vim.o local opt = vim.opt -local A = vim.api -- cmd('syntax on') -- vim.api.nvim_command('filetype plugin indent on') diff --git a/.config/nvim/lua/dt/highlights.lua b/.config/nvim/lua/dt/highlights.lua index c9b95d2..a449871 100644 --- a/.config/nvim/lua/dt/highlights.lua +++ b/.config/nvim/lua/dt/highlights.lua @@ -20,7 +20,7 @@ local ok, _ = pcall(vim.cmd, "colorscheme base16-onedark") -- local ok, _ = pcall(vim.cmd, 'colorscheme base16-tomorrow-night') -- Highlight the region on yank -A.nvim_create_autocmd("TextYankPost", { +vim.api.nvim_create_autocmd("TextYankPost", { group = num_au, callback = function() vim.highlight.on_yank({ higroup = "Visual", timeout = 120 })