update neotree, theme, add dashboard and auto command

This commit is contained in:
Roel de Cort 2024-05-08 00:55:52 +02:00
parent 7a7072adfe
commit beb019f6fa
6 changed files with 110 additions and 38 deletions

11
config/auto_cmds.nix Normal file
View file

@ -0,0 +1,11 @@
{
autoCmd = [
{
group = "highlight_yank";
callback = ''
function()
vim.highlight.on_yank()
'';
}
];
}

View file

@ -3,6 +3,7 @@ _: {
# General Configuration
./settings.nix
./keymaps.nix
./auto_cmds.nix
# Themes
./plugins/themes/default.nix
@ -25,6 +26,7 @@ _: {
# UI plugins
./plugins/ui/bufferline.nix
./plugins/ui/lualine.nix
./plugins/ui/dashboard.nix
# LSP
./plugins/lsp/lsp.nix

View file

@ -21,7 +21,7 @@
keymaps = [
{
mode = ["n"];
key = "<C-e>";
key = "<leader>e";
action = "<cmd>Neotree toggle<cr>";
options = {desc = "Open/Close Neotree";};
}

View file

@ -16,6 +16,8 @@
cmp = true;
notify = true;
gitsigns = true;
dashboard = true;
lualine = true;
which_key = true;
illuminate = {
enabled = true;

View file

@ -0,0 +1,25 @@
{
plugins.dashboard = {
enable = true;
header = [
''
''
];
center = [
{
action = "Telescope find_files";
desc = " Find File";
icon = " ";
shortcut = "f";
}
];
};
}