From d9dbe0aea1de5ae97846c08934ec431121868598 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Fri, 14 Jul 2023 10:21:42 +0200 Subject: [PATCH] telescope ignore node_modules --- home-manager/home.nix | 3 +++ home-manager/zsh.nix | 6 ++--- nixos/machines/pc-mans/configuration.nix | 19 ++++++++++++++ .../nvim/after/plugin/telescope.lua | 26 +++++++++++++++++++ 4 files changed, 51 insertions(+), 3 deletions(-) diff --git a/home-manager/home.nix b/home-manager/home.nix index b1888a2..ea87b56 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -72,6 +72,9 @@ python3 ansible nodejs_20 + exa + bat + cryptomator ]; services.nextcloud-client = { diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index e9086db..53e2613 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -4,9 +4,9 @@ programs.zsh = { enable = true; # autocd = true; - # dotDir = ".config/zsh"; - # enableAutosuggestions = true; - # enableCompletion = true; + dotDir = ".config/zsh"; + enableAutosuggestions = true; + enableCompletion = true; shellAliases = { l = "exa -l"; ssh = "TERM=xterm-256color ssh"; diff --git a/nixos/machines/pc-mans/configuration.nix b/nixos/machines/pc-mans/configuration.nix index d96eda6..4b9ff28 100644 --- a/nixos/machines/pc-mans/configuration.nix +++ b/nixos/machines/pc-mans/configuration.nix @@ -30,6 +30,19 @@ ${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --rate 144.00 --size 1920x1080 --right-of HDMI-0 --primary --output HDMI-0 --auto ''; +# services.gnome.gnome-keyring.enable = true; + +# security.pam.services = [ +# { name = "gnome_keyring" +# text = '' +# auth optional ${gnome3.gnome_keyring}/lib/security/pam_gnome_keyring.so +# session optional ${gnome3.gnome_keyring}/lib/security/pam_gnome_keyring.so auto_start +# +# password optional ${gnome3.gnome_keyring}/lib/security/pam_gnome_keyring.so +# ''; +# } +#]; + boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -55,6 +68,12 @@ inetutils ]; + # services.gnome3.gnome-keyring.enable = true; + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + }; + home-manager = { extraSpecialArgs = { inherit inputs; }; users = { diff --git a/package-configs/nvim/after/plugin/telescope.lua b/package-configs/nvim/after/plugin/telescope.lua index 8fb6a32..41f3cbe 100644 --- a/package-configs/nvim/after/plugin/telescope.lua +++ b/package-configs/nvim/after/plugin/telescope.lua @@ -3,3 +3,29 @@ vim.keymap.set('n', 'pf', builtin.find_files, {}) vim.keymap.set('n', 'pg', builtin.live_grep, {}) vim.keymap.set('n', 'pb', builtin.buffers, {}) vim.keymap.set('n', 'ph', builtin.help_tags, {}) + +require('telescope').setup{ + defaults = { + -- Default configuration for telescope goes here: + -- config_key = value, + file_ignore_patterns = { + "node_modules" + } + }, + pickers = { + -- Default configuration for builtin pickers goes here: + -- picker_name = { + -- picker_config_key = value, + -- ... + -- } + -- Now the picker_config_key will be applied every time you call this + -- builtin picker + }, + extensions = { + -- Your extension configuration goes here: + -- extension_name = { + -- extension_config_key = value, + -- } + -- please take a look at the readme of the extension you want to configure + } +}