Compare commits

...

2 commits

Author SHA1 Message Date
95cd793a00
neovim: add plugins & config 2024-11-01 07:21:24 -04:00
5d479b444e
nushell: update cfg 2024-11-01 07:20:06 -04:00
15 changed files with 144 additions and 1 deletions

View file

@ -21,6 +21,23 @@
command = "Neotree";
}
];
keymaps = [
{
action = "<cmd>LazyGit<CR>";
key = "<C-l>";
mode = "n";
}
{
action = "<cmd>ToggleTerm<CR>";
key = "<C-t>";
mode = "n";
}
{
action = "<cmd>Telescope<CR>";
key = "<C-f>";
mode = "n";
}
];
extraConfigLua = ''
vim.wo.relativenumber = true
'';

View file

@ -6,15 +6,23 @@ _: {
./editor/bufferline.nix
./editor/autosave.nix
./editor/treesitter.nix
./editor/guessindent.nix
./editor/luasnip.nix
./editor/cmp.nix
./lsp/lsp.nix
./lsp/conform.nix
./misc/wakatime.nix
./misc/direnv.nix
./misc/presence.nix
./misc/lazygit.nix
./misc/vimbbye.nix
./ui/lualine.nix
./ui/mini.nix
./ui/transparent.nix
./ui/telescope.nix
./ui/fidget.nix
./ui/dashboard.nix
./ui/toggleterm.nix
];
programs.nixvim.plugins.web-devicons.enable = true;
}

View file

@ -0,0 +1,27 @@
_: {
programs.nixvim.plugins = {
cmp = {
enable = true;
autoEnableSources = true;
settings = {
sources = [
{name = "nvim_lsp";}
{name = "path";}
{name = "buffer";}
{name = "luasnip";}
];
mapping = {
__raw = ''
cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }),
})
'';
};
};
};
};
}

View file

@ -0,0 +1,3 @@
_: {
programs.nixvim.plugins.guess-indent.enable = true;
}

View file

@ -0,0 +1,9 @@
_: {
programs.nixvim.plugins.luasnip = {
enable = true;
settings = {
enable_autosnippets = true;
store_selection_keys = "<Tab>";
};
};
}

View file

@ -2,5 +2,13 @@ _: {
programs.nixvim.plugins.neo-tree = {
enable = true;
enableDiagnostics = true;
extraOptions = {
filesystem = {
filtered_items = {
visible = true;
hide_fotfiles = false;
};
};
};
};
}

View file

@ -11,6 +11,13 @@
toml
xml
yaml
rust
go
gomod
];
settings = {
highlight.enable = true;
indent.enable = false;
};
};
}

View file

@ -12,6 +12,21 @@
"alejandra"
]
];
rust = [
[
"rustfmt"
]
];
go = [
[
"gofmt"
]
];
lua = [
[
"stylua"
]
];
};
format_on_save = ''
function(bufnr)
@ -49,6 +64,15 @@
alejandra = {
commmand = "${lib.getExe pkgs.alejandra}";
};
rustfmt = {
commmand = "${lib.getExe pkgs.rustfmt}";
};
gofmt = {
commmand = "${lib.getExe pkgs.go}";
};
stylua = {
commmand = "${lib.getExe pkgs.stylua}";
};
};
};
};

View file

@ -27,6 +27,13 @@ _: {
installCargo = true;
installRustc = true;
};
gopls = {
enable = true;
autostart = true;
};
nushell = {
enable = true;
};
};
};
};

View file

@ -0,0 +1,3 @@
_: {
programs.nixvim.plugins.lazygit.enable = true;
}

View file

@ -0,0 +1,3 @@
_: {
programs.nixvim.plugins.vim-bbye.enable = true;
}

View file

@ -0,0 +1,5 @@
_: {
programs.nixvim.plugins.dashboard = {
enable = true;
};
}

View file

@ -0,0 +1,8 @@
_: {
programs.nixvim.plugins.fidget = {
enable = true;
notification.window = {
winblend = 0;
};
};
}

View file

@ -0,0 +1,13 @@
_: {
programs.nixvim.plugins.toggleterm = {
enable = true;
settings = {
direction = "float";
float_opts = {
border = "curved";
height = 30;
width = 130;
};
};
};
}

View file

@ -9,6 +9,7 @@ alias la = eza -alughHo --git --icons --color always
alias calc = eva
alias c = clear
alias f = yazi
alias v = nvim
alias cat = bat
alias rm = rm -i
alias cp = cp -i
@ -77,7 +78,7 @@ $env.config = {
metric: true # true => KB, MB, GB (ISO standard), false => KiB, MiB, GiB (Windows standard)
format: "auto" # b, kb, kib, mb, mib, gb, gib, tb, tib, pb, pib, eb, eib, zb, zib, auto
}
footer_mode: "25" # always, never, number_of_rows, auto
footer_mode: "auto" # always, never, number_of_rows, auto
float_precision: 2
# buffer_editor: "emacs" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL
use_ansi_coloring: true