comparison .chezmoitemplates/init.lua @ 574:8b04d5ffd210

Clean up unused functions and mappings
author zegervdv <zegervdv@me.com>
date Fri, 04 Mar 2022 10:35:44 +0100
parents c2cc785e1674
children 50e9c21e8e95
comparison
equal deleted inserted replaced
573:eb6ebdacf201 574:8b04d5ffd210
790 790
791 -- Swap backticks and quotes 791 -- Swap backticks and quotes
792 map('n', '`', "'") 792 map('n', '`', "'")
793 map('n', "'", '`') 793 map('n', "'", '`')
794 794
795 -- Do not move on *
796 map('n', '*', function()
797 local view = vim.fn.winsaveview()
798 vim.cmd [[ normal! * ]]
799 vim.fn.winrestview(view)
800 end, { silent = true, desc = 'Search word under cursor without moving to first results' })
801
802 map('n', '<UP>', ':cprev<CR>', { desc = 'Go to previous error/match' })
803 map('n', '<DOWN>', ':cnext<CR>', { desc = 'Go to next error/match' })
804 map('n', '<LEFT>', ':cpf<CR>', { desc = 'Go to previous error/match in previous file' })
805 map('n', '<RIGHT>', ':cnf<CR>', { desc = 'Go to next error/match in next file' })
806
795 local au = require 'au' 807 local au = require 'au'
796 808
797 -- Highlight yanked text 809 -- Highlight yanked text
798 au.TextYankPost = function() 810 au.TextYankPost = function()
799 vim.highlight.on_yank { timeout = 120 } 811 vim.highlight.on_yank { timeout = 120 }