From a6f429aa5d5acead7ab0455b95731d9366b086d3 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 11 Sep 2023 19:38:52 +0300 Subject: [PATCH] nvim: replace unmap definition, disable cursorline by default --- cli/.config/nvim/lua/maps.lua | 6 +++--- cli/.config/nvim/lua/settings.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/.config/nvim/lua/maps.lua b/cli/.config/nvim/lua/maps.lua index d610575..9d202c7 100644 --- a/cli/.config/nvim/lua/maps.lua +++ b/cli/.config/nvim/lua/maps.lua @@ -1,11 +1,11 @@ vim.g.mapleader = ' ' -function unmap(key) - vim.api.nvim_set_keymap('', key, '', {}) -end function map(mode, key, action) vim.api.nvim_set_keymap(mode, key, action, {noremap = true}) end +function unmap(key) + map('', key, '') +end -- some unmaps unmap(' ') diff --git a/cli/.config/nvim/lua/settings.lua b/cli/.config/nvim/lua/settings.lua index 61e6a8e..7de994f 100644 --- a/cli/.config/nvim/lua/settings.lua +++ b/cli/.config/nvim/lua/settings.lua @@ -1,6 +1,6 @@ vim.o.modeline = false vim.o.foldmethod = 'marker' -vim.o.cursorline = true +vim.o.cursorline = false vim.o.colorcolumn = '80' vim.o.relativenumber = true vim.o.breakindent = true