This commit is contained in:
Christoph Schmatzler
2025-08-13 08:25:17 +02:00
parent fc6bf69f00
commit 7e219a4f79
10 changed files with 68 additions and 36 deletions

View File

@@ -4,7 +4,9 @@
./mappings.nix
./options.nix
./plugins/conform.nix
./plugins/blink-cmp.nix
./plugins/grug-far.nix
./plugins/oil.nix
./plugins/lazygit.nix
./plugins/lsp.nix
./plugins/mini.nix

View File

@@ -1,16 +1,10 @@
{
programs.nixvim.keymaps = [
# e - explore/edit
{
mode = "n";
key = "<leader>ed";
action = ":lua require('mini.files').open()<CR>";
options.desc = "Directory";
}
{
mode = "n";
key = "<leader>ef";
action = ":lua require('mini.files').open(vim.api.nvim_buf_get_name(0))<CR>";
action = ":lua require('oil').open()<CR>";
options.desc = "File directory";
}
{

View File

@@ -0,0 +1,17 @@
{
programs.nixvim.plugins.blink-cmp = {
enable = true;
settings = {
signature.enabled = true;
completion = {
accept = {
auto_brackets = {
enabled = true;
semantic_token_resolution.enabled = false;
};
};
documentation.auto_show = true;
};
};
};
}

View File

@@ -123,14 +123,8 @@
];
};
comment = {};
completion = {
lsp_completion = {
source_func = "omnifunc";
};
};
diff = {};
extra = {};
files = {};
git = {};
icons = {};
indentscope = {};

View File

@@ -0,0 +1,30 @@
{
programs.nixvim.plugins.oil = {
enable = true;
settings = {
columns = [
"icon"
];
keymaps = {
"<C-r>" = "actions.refresh";
"<leader>qq" = "actions.close";
};
skip_confirm_for_simple_edits = true;
constrain_cursor = "editable";
default_file_explorer = true;
view_options = {
show_hidden = true;
};
win_options = {
concealcursor = "ncv";
conceallevel = 3;
cursorcolumn = false;
foldcolumn = "0";
list = false;
signcolumn = "no";
spell = false;
wrap = false;
};
};
};
}

View File

@@ -37,6 +37,7 @@
};
home-manager = {
useGlobalPkgs = true;
users.${user} = {
pkgs,
config,

View File

@@ -1,5 +1 @@
{user, ...}: {
age.identityPaths = [
"/Users/${user}/.ssh/id_ed25519"
];
}
{user, ...}: {}