@@ -102,7 +102,7 @@ vim.g.have_nerd_font = false
102102vim .opt .number = true
103103-- You can also add relative line numbers, to help with jumping.
104104-- Experiment for yourself to see if you like it!
105- -- vim.opt.relativenumber = true
105+ vim .opt .relativenumber = true
106106
107107-- Enable mouse mode, can be useful for resizing splits for example!
108108vim .opt .mouse = ' a'
@@ -166,7 +166,9 @@ vim.opt.confirm = true
166166
167167-- Clear highlights on search when pressing <Esc> in normal mode
168168-- See `:help hlsearch`
169- vim .keymap .set (' n' , ' <Esc>' , ' <cmd>nohlsearch<CR>' )
169+ -- vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
170+ -- Replaced with a better approach that doesn't override Escape's normal function
171+ vim .keymap .set (' n' , ' <leader>/' , ' <cmd>nohlsearch<CR>' , { desc = ' Clear search highlights' })
170172
171173-- Diagnostic keymaps
172174vim .keymap .set (' n' , ' <leader>q' , vim .diagnostic .setloclist , { desc = ' Open diagnostic [Q]uickfix list' })
@@ -177,7 +179,7 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
177179--
178180-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
179181-- or just use <C-\><C-n> to exit terminal mode
180- vim .keymap .set (' t' , ' <Esc><Esc> ' , ' <C-\\ ><C-n>' , { desc = ' Exit terminal mode' })
182+ vim .keymap .set (' t' , ' <Esc>' , ' <C-\\ ><C-n>' , { desc = ' Exit terminal mode' })
181183
182184-- TIP: Disable arrow keys in normal mode
183185-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
@@ -965,18 +967,18 @@ require('lazy').setup({
965967 -- Here are some example plugins that I've included in the Kickstart repository.
966968 -- Uncomment any of the lines below to enable them (you will need to restart nvim).
967969 --
968- -- require 'kickstart.plugins.debug',
969- -- require 'kickstart.plugins.indent_line',
970- -- require 'kickstart.plugins.lint',
971- -- require 'kickstart.plugins.autopairs',
972- -- require 'kickstart.plugins.neo-tree',
973- -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
970+ require ' kickstart.plugins.debug' ,
971+ require ' kickstart.plugins.indent_line' ,
972+ require ' kickstart.plugins.lint' ,
973+ require ' kickstart.plugins.autopairs' ,
974+ require ' kickstart.plugins.neo-tree' ,
975+ require ' kickstart.plugins.gitsigns' , -- adds gitsigns recommend keymaps
974976
975977 -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
976978 -- This is the easiest way to modularize your config.
977979 --
978980 -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
979- -- { import = 'custom.plugins' },
981+ { import = ' custom.plugins' },
980982 --
981983 -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
982984 -- Or use telescope!
0 commit comments