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; number = true;
relativenumber = 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 # Set <Space> as leader
globals.mapleader = " "; globals.mapleader = " ";
globals.maplocalleader = ",";
extraPlugins = with pkgs; [ extraPlugins = with pkgs; [
# TODO add from flake.nix # TODO add from flake.nix
@ -39,12 +52,15 @@
load = { load = {
"core.concealer" = { "core.concealer" = {
config = { config = {
icon_preset = "varied"; icon_preset = "diamond";
}; };
}; };
"core.defaults" = { "core.defaults" = {
__empty = null; __empty = null;
}; };
"core.integrations.telescope" = {
__empty = null;
};
"core.dirman" = { "core.dirman" = {
config = { config = {
workspaces = { workspaces = {
@ -64,6 +80,8 @@
plugins.telescope = { plugins.telescope = {
enable = true; enable = true;
extensions = { extensions = {
fzf-native.enable = true;
undo.enable = true;
ui-select = { ui-select = {
settings = { settings = {
specific_opts = { specific_opts = {
@ -77,6 +95,11 @@
action = "find_files"; action = "find_files";
options.desc = "Find project files"; options.desc = "Find project files";
}; };
"<leader>f" = {
action = "live_grep";
options.desc = "Livegrep";
};
}; };
}; };
@ -94,4 +117,10 @@
enable = true; 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 = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

5
test.norg Normal file
View file

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