Skip to content

Commit

Permalink
Fixed neovim trouble plugin
Browse files Browse the repository at this point in the history
Changed default search engine for firefox
  • Loading branch information
jwyuen committed Oct 30, 2024
1 parent 4941da4 commit 6828a63
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
38 changes: 27 additions & 11 deletions nix-config/home/firefox.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ pkgs, config, inputs, ... }:
{
pkgs,
config,
inputs,
...
}:

{
programs.firefox = {
Expand Down Expand Up @@ -29,27 +34,38 @@
search = {
force = true;
default = "Searx";
order = [ "Searx" "Google" ];
order = [
"Searx"
"Google"
];
engines = {
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
"NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
urls = [ { template = "https://nixos.wiki/index.php?search={searchTerms}"; } ];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = [ "@nw" ];
};
"Searx" = {
urls = [{ template = "https://searx.work/?q={searchTerms}"; }];
urls = [ { template = "https://baresearch.org/?q={searchTerms}"; } ];
iconUpdateURL = "https://nixos.wiki/favicon.png";
updateInterval = 24 * 60 * 60 * 1000; # every day
definedAliases = [ "@searx" ];
Expand Down
1 change: 1 addition & 0 deletions nix-config/home/nvim/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ vim.keymap.set("n", "<C-0>", "<cmd>bnext<CR>", { desc = "go to next buffer" })
vim.keymap.set("n", "<leader>fd", function()
MiniFiles.open()
end, { desc = "open mini.files (filetree)" })
vim.keymap.set("n", "<leader>xx", "<cmd>Trouble diagnostics toggle<cr>", { desc = "Diagnostics (Trouble)" })
2 changes: 2 additions & 0 deletions nix-config/home/nvim/plugins/misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ require("nvim-treesitter.configs").setup({
highlight = { enable = true },
indent = { enable = true },
})

require("trouble").setup()

0 comments on commit 6828a63

Please sign in to comment.