Skip to content

Commit

Permalink
telescope: add scala files grep tab
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Apr 2, 2024
1 parent b5630e0 commit 810b858
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions modules/telescope/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ in
"<leader>fg" = "<cmd> Telescope live_grep<CR>";
"<leader>fb" = "<cmd> Telescope buffers<CR>";
"<leader>fh" = "<cmd> Telescope help_tags<CR>";
"<leader>ft" = "<cmd> Telescope<CR>";
"<leader>fk" = "<cmd> Telescope marks<CR>";

"<leader>fvcw" = "<cmd> Telescope git_commits<CR>";
"<leader>fvcb" = "<cmd> Telescope git_bcommits<CR>";
"<leader>fvc" = "<cmd> Telescope git_commits<CR>";
"<leader>fvb" = "<cmd> Telescope git_branches<CR>";
"<leader>fvs" = "<cmd> Telescope git_status<CR>";
"<leader>fvx" = "<cmd> Telescope git_stash<CR>";
Expand All @@ -57,7 +56,7 @@ in
}
) // (
withAttrSet config.vim.treesitter.enable {
"<leader>fs" = "<cmd> Telescope treesitter<CR>";
"<leader>fts" = "<cmd> Telescope treesitter<CR>";
}
);

Expand All @@ -76,6 +75,12 @@ in
available = function() -- optional
return vim.fn.isdirectory(".git") == 1
end
},
{
name = "Scala files",
tele_func = function()
builtin.fd({ find_command = { "${pkgs.fd}/bin/fd", "-e", "scala" } })
end
}
},
})
Expand Down

0 comments on commit 810b858

Please sign in to comment.