More keybindings
This commit is contained in:
@ -6,6 +6,17 @@ vim.g.maplocalleader = " " -- Set the local leader key to the space bar.
|
|||||||
vim.opt.number = true -- Absolute numbers on all lines
|
vim.opt.number = true -- Absolute numbers on all lines
|
||||||
vim.opt.relativenumber = true -- Relative numbers (hybrid when both enabled)
|
vim.opt.relativenumber = true -- Relative numbers (hybrid when both enabled)
|
||||||
|
|
||||||
|
-- ===================================================================
|
||||||
|
-- Search Settings
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
|
vim.opt.hlsearch = true -- Highlight all matches on search
|
||||||
|
vim.opt.incsearch = true -- Show search results incrementally as you type
|
||||||
|
vim.opt.ignorecase = true -- Ignore case in search patterns
|
||||||
|
vim.opt.smartcase = true -- Override ignorecase if search pattern contains uppercase letters
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Essential Keybindings
|
-- Essential Keybindings
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|||||||
@ -10,6 +10,11 @@ return {
|
|||||||
-- ADD THIS LINE to load the new extension
|
-- ADD THIS LINE to load the new extension
|
||||||
require("telescope").load_extension("themes")
|
require("telescope").load_extension("themes")
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>f", builtin.find_files, { desc = "Find files" })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>ff", builtin.find_files, { desc = "Find files" })
|
||||||
|
vim.keymap.set("n", "<leader>fg", builtin.live_grep, { desc = "Live grep" })
|
||||||
|
|
||||||
-- ADD THIS LINE to create the new keymap
|
-- ADD THIS LINE to create the new keymap
|
||||||
vim.keymap.set("n", "<leader>th", "<cmd>Telescope themes<cr>", { desc = "Switch Theme" })
|
vim.keymap.set("n", "<leader>th", "<cmd>Telescope themes<cr>", { desc = "Switch Theme" })
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user