From dc35f95109e73358287ecad8a480fd173886bd67 Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Fri, 31 Jan 2025 02:48:27 +0100 Subject: [PATCH] expand: filetree, some other modules for neorg --- config/default.nix | 31 ++++++++++++++++++++++++++++++- flake.nix | 2 +- test.norg | 5 +++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 test.norg diff --git a/config/default.nix b/config/default.nix index 9eb243d..db0ac01 100644 --- a/config/default.nix +++ b/config/default.nix @@ -7,9 +7,22 @@ number = true; relativenumber = true; }; + keymaps = [ + { + # Focus file tree + key = "v"; + action = "CHADopen --always-focus"; + } + { + # Toggle file tree + key = "e"; + action = "CHADopen"; + } + ]; # Set as leader globals.mapleader = " "; + globals.maplocalleader = ","; extraPlugins = with pkgs; [ # TODO add from flake.nix @@ -39,12 +52,15 @@ load = { "core.concealer" = { config = { - icon_preset = "varied"; + icon_preset = "diamond"; }; }; "core.defaults" = { __empty = null; }; + "core.integrations.telescope" = { + __empty = null; + }; "core.dirman" = { config = { workspaces = { @@ -64,6 +80,8 @@ plugins.telescope = { enable = true; extensions = { + fzf-native.enable = true; + undo.enable = true; ui-select = { settings = { specific_opts = { @@ -77,6 +95,11 @@ action = "find_files"; options.desc = "Find project files"; }; + "f" = { + action = "live_grep"; + options.desc = "Livegrep"; + }; + }; }; @@ -94,4 +117,10 @@ enable = true; }; + plugins.noice.enable = true; + # File tree + plugins.chadtree = { + enable = true; + }; + } diff --git a/flake.nix b/flake.nix index 8efed61..4f81215 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "neogen flake"; + description = "neorg flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; diff --git a/test.norg b/test.norg new file mode 100644 index 0000000..3432183 --- /dev/null +++ b/test.norg @@ -0,0 +1,5 @@ +** hello there + +* headiong + /italic/ + _asd_