about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-09 16:32:33 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-09 20:33:35 +0200
commit7b4ff390b5d7c698acced64c0633227143ccf49c (patch)
tree135860d70eed8f12f95064b79248fcde24e995a6 /hm/soispha/conf/nvim
parentbuild(treewide): Update (diff)
downloadnixos-config-7b4ff390b5d7c698acced64c0633227143ccf49c.zip
chore(treewide): Conform to changed settings
Diffstat (limited to 'hm/soispha/conf/nvim')
-rw-r--r--hm/soispha/conf/nvim/plgs/telescope/defaults/default.nix2
-rw-r--r--hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix9
-rw-r--r--hm/soispha/conf/nvim/plgs/telescope/keymaps/default.nix4
3 files changed, 9 insertions, 6 deletions
diff --git a/hm/soispha/conf/nvim/plgs/telescope/defaults/default.nix b/hm/soispha/conf/nvim/plgs/telescope/defaults/default.nix
index 1d88aad8..933089ef 100644
--- a/hm/soispha/conf/nvim/plgs/telescope/defaults/default.nix
+++ b/hm/soispha/conf/nvim/plgs/telescope/defaults/default.nix
@@ -1,5 +1,5 @@
 {...}: {
-  programs.nixvim.plugins.telescope.defaults = {
+  programs.nixvim.plugins.telescope.settings.defaults = {
     mappings = let
       insert_and_normal_mappings = {
         # map actions.which_key to <c-h> (default: <c-/>)
diff --git a/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix b/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix
index b236f3c5..c1cebc09 100644
--- a/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix
+++ b/hm/soispha/conf/nvim/plgs/telescope/extensions/frecency/default.nix
@@ -12,10 +12,11 @@
     plugins.telescope = {
       extensions.frecency = {
         enable = true;
-        showUnindexed = true;
-        showScores = true;
-        # TODO: add this:
-        #db_safe_mode = true;
+        settings = {
+          show_scores = true;
+          db_safe_mode = false;
+          default_workspace = "CWD"; # or 'LSP'
+        };
       };
     };
   };
diff --git a/hm/soispha/conf/nvim/plgs/telescope/keymaps/default.nix b/hm/soispha/conf/nvim/plgs/telescope/keymaps/default.nix
index f0745f73..e551cc5a 100644
--- a/hm/soispha/conf/nvim/plgs/telescope/keymaps/default.nix
+++ b/hm/soispha/conf/nvim/plgs/telescope/keymaps/default.nix
@@ -2,7 +2,9 @@
   programs.nixvim.plugins.telescope.keymaps = {
     "<space>rg" = {
       action = "live_grep";
-      desc = "[rg] in a live session";
+      options = {
+        desc = "[rg] in a live session";
+      };
     };
   };
 }