expand: filetree, some other modules for neorg

This commit is contained in:
Barna Máté 2025-01-31 02:48:27 +01:00
parent ecca4677d6
commit dc35f95109
3 changed files with 36 additions and 2 deletions

View file

@ -7,9 +7,22 @@
number = true;
relativenumber = true;
};
keymaps = [
{
# Focus file tree
key = "<leader>v";
action = "<cmd>CHADopen --always-focus<cr>";
}
{
# Toggle file tree
key = "<leader>e";
action = "<cmd>CHADopen<cr>";
}
];
# Set <Space> 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";
};
"<leader>f" = {
action = "live_grep";
options.desc = "Livegrep";
};
};
};
@ -94,4 +117,10 @@
enable = true;
};
plugins.noice.enable = true;
# File tree
plugins.chadtree = {
enable = true;
};
}

View file

@ -1,5 +1,5 @@
{
description = "neogen flake";
description = "neorg flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

5
test.norg Normal file
View file

@ -0,0 +1,5 @@
** hello there
* headiong
/italic/
_asd_