nvim: re-add old mapping to remove hlsearch

This commit is contained in:
Oliver Davies 2021-11-03 23:42:20 +00:00
parent 514e4ad061
commit 78513b1154

View file

@ -58,7 +58,8 @@ map('v', '<left>', '<nop>', options)
map('v', '<right>', '<nop>', options)
map('v', '<up>', '<nop>', options)
map('n', '<Leader>k', ':nohlsearch', options)
-- Clears hlsearch after doing a search, otherwise just does normal <CR> stuff
vim.cmd[[ nnoremap <expr> <CR> {-> v:hlsearch ? ":nohl\<CR>" : "\<CR>"}() ]]
require('packer').startup(function()
use 'wbthomason/packer.nvim'