Skip to content

Commit 2428eac

Browse files
committed
Add floating search
1 parent 59ab8e3 commit 2428eac

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

config/nvim/lua/config/keymaps.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ local groups = {}
6565
local mappings = {}
6666
local vmappings = {}
6767

68+
-- search
69+
nmap("/", "<CMD>SearchBoxIncSearch<CR>", { remap = true })
70+
nmap("?", "<CMD>SearchBoxIncSearch reverse=true<CR>", { remap = true })
71+
6872
-- comments
6973
nmap(";;", "gcc", { remap = true })
7074
nmap(";A", "gcA", { remap = true })

config/nvim/lua/plugins/plugins.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,22 @@ return {
2626
end,
2727
},
2828

29+
-- floating command line
2930
{
3031
"VonHeikemen/fine-cmdline.nvim",
3132
dependencies = {
3233
{ "MunifTanjim/nui.nvim" },
3334
},
3435
},
3536

37+
-- floating search
38+
{
39+
"VonHeikemen/searchbox.nvim",
40+
requires = {
41+
{ "MunifTanjim/nui.nvim" },
42+
},
43+
},
44+
3645
-- git
3746
{
3847
"kdheepak/lazygit.nvim",

0 commit comments

Comments
 (0)