Add search stuff

This commit is contained in:
Olli Vuolteenaho 2024-01-16 15:05:30 +02:00
parent ebcbbae0d0
commit 65cc4496be
1 changed files with 7 additions and 1 deletions

View File

@ -274,7 +274,7 @@ require('lazy').setup({
-- NOTE: You can change these options as you wish!
-- Set highlight on search
vim.o.hlsearch = false
vim.o.hlsearch = true
-- Make line numbers default
vim.wo.number = true
@ -494,6 +494,12 @@ end, 0)
-- Newline on <CR>
vim.keymap.set('n', '<CR>', 'o<Esc>')
-- Drop hlsearch
vim.keymap.set('n', '?q', ':set hlsearch!<CR>')
-- Drop line numbers
vim.keymap.set('n', '?l', ':set number!<CR>')
-- [[ Configure LSP ]]
-- This function gets run when an LSP connects to a particular buffer.
local on_attach = function(_, bufnr)