Skip to content

Commit

Permalink
snacks/picker: prefer spelling picker
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Feb 6, 2025
1 parent 4450b30 commit 3328879
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
16 changes: 8 additions & 8 deletions modules/nixvim/plugins/fzf-lua/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,6 @@
desc = "Find quickfix";
};
}
{
mode = "n";
key = "<leader>fS";
action = ''<cmd>FzfLua spell_suggest<CR>'';
options = {
desc = "Find spelling suggestions";
};
}
{
mode = "n";
key = "<leader>fw";
Expand Down Expand Up @@ -203,6 +195,14 @@
desc = "Find registers";
};
}
{
mode = "n";
key = "<leader>fS";
action = ''<cmd>FzfLua spell_suggest<CR>'';
options = {
desc = "Find spelling suggestions";
};
}
{
mode = "n";
key = "<leader>fT";
Expand Down
60 changes: 30 additions & 30 deletions modules/nixvim/plugins/snacks/picker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,36 @@
desc = "Find lsp document symbols";
};
}
{
mode = "n";
key = "<leader>fS";
action.__raw = ''
function()
Snacks.picker.spelling({
layout = {
preview =false,
layout = {
relative = 'cursor',
width = 70,
min_width = 0,
min_height = 0,
row = 1,
backdrop = false,
width = 0.4,
height = 0.4,
box = "vertical",
{ win = "input", height = 1, border = "rounded", title = "{title} {live} {flags}", title_pos = "center" },
{ win = "list", border = "rounded" },
{ win = "preview", title = "{preview}", border = "rounded" }
}
}
})
end
'';
options = {
desc = "Find spelling suggestions";
};
}
# Moved to todo-comments module since lazy loading wasn't working
# {
# mode = "n";
Expand Down Expand Up @@ -257,36 +287,6 @@
desc = "Goto Type Definition";
};
}
{
mode = "n";
key = "<leader>fS";
action.__raw = ''
function()
Snacks.picker.spelling({
layout = {
preview =false,
layout = {
relative = 'cursor',
width = 70,
min_width = 0,
min_height = 0,
row = 1,
backdrop = false,
width = 0.4,
height = 0.4,
box = "vertical",
{ win = "input", height = 1, border = "rounded", title = "{title} {live} {flags}", title_pos = "center" },
{ win = "list", border = "rounded" },
{ win = "preview", title = "{preview}", border = "rounded" }
}
}
})
end
'';
options = {
desc = "Find spelling suggestions";
};
}
{
mode = "n";
key = "<leader>fw";
Expand Down

0 comments on commit 3328879

Please sign in to comment.