This commit is contained in:
2026-03-09 11:09:59 +09:00
parent 5180e01a71
commit 75731fb91c
34 changed files with 601 additions and 29 deletions
+6
View File
@@ -0,0 +1,6 @@
{...}: {
imports = [
./ui
./editor
];
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins.nvim-autopairs.enable = true;
}
@@ -0,0 +1,26 @@
{...}: {
programs.nixvim.plugins.blink-cmp = {
enable = true;
setupLspCapabilities = true;
settings = {
keymap = {
preset = "enter";
"<C-Space>" = ["show"];
"<C-d>" = ["scroll_documentation_up"];
"<C-e>" = ["hide"];
"<C-f>" = ["scroll_documentation_down"];
"<Tab>" = ["select_next" "fallback"];
"<S-Tab>" = ["select_prev" "fallback"];
};
sources.default = [
"lsp"
"path"
"buffer"
];
};
};
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins.comment.enable = true;
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins."conform-nvim".enable = true;
}
@@ -0,0 +1,5 @@
{...}: {
programs.nixvim.plugins.copilot-lua = {
enable = true;
};
}
@@ -0,0 +1,14 @@
{...}: {
imports = [
./telescope.nix
./treesitter.nix
./blink-cmp.nix
./gitsigns.nix
./comment.nix
./autopairs.nix
./lsp-signature.nix
./copilot.nix
./trouble.nix
./conform.nix
];
}
@@ -0,0 +1,15 @@
{...}: {
# git change view
programs.nixvim.plugins.gitsigns = {
enable = true;
settings = {
signs = {
add = {text = "+";};
change = {text = "~";};
delete = {text = "_";};
topdelete = {text = "‾";};
changedelete = {text = "~";};
};
};
};
}
@@ -0,0 +1,11 @@
{...}: {
programs.nixvim.plugins.lsp-signature = {
enable = true;
settings = {
hint_enable = true;
hint_prefix = " ";
floating_window = true;
bind = true;
};
};
}
@@ -0,0 +1,43 @@
{...}: {
programs.nixvim = {
plugins.telescope = {
enable = true;
extensions = {
fzf-native.enable = true;
};
keymaps = {
"<leader>ff" = {
action = "find_files";
options = {
desc = "ファイルを探す";
silent = true;
};
};
"<leader>fg" = {
action = "live_grep";
options = {
desc = "文字列を全文検索";
silent = true;
};
};
"<leader>fb" = {
action = "buffers";
options = {
desc = "開いているバッファを探す";
silent = true;
};
};
"<leader>fh" = {
action = "help_tags";
options = {
desc = "ヘルプ項目を探す";
silent = true;
};
};
};
};
};
}
@@ -0,0 +1,9 @@
{...}: {
programs.nixvim.plugins.treesitter = {
enable = true;
settings = {
highlight.enable = true;
indent.enable = true;
};
};
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins.trouble.enable = true;
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins.indent-blankline.enable = true;
}
@@ -0,0 +1,11 @@
{...}: {
imports = [
./lualine.nix
./neo-tree.nix
./blankline.nix
./which-key.nix
./web-devicons.nix
./toggleterm.nix
./treesitter.nix
];
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins.lualine.enable = true;
}
@@ -0,0 +1,16 @@
{...}: {
programs.nixvim = {
plugins.neo-tree = {
enable = true;
settings = {
close_if_last_window = true;
filesystem = {
follow_current_file = {
enabled = true;
leave_dirs_open = true;
};
};
};
};
};
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins.toggleterm.enable = true;
}
@@ -0,0 +1,3 @@
{...}: {
programs.nixvim.plugins."treesitter-context".enable = true;
}
@@ -0,0 +1,4 @@
{...}: {
# icon set preview
programs.nixvim.plugins.web-devicons.enable = true;
}
@@ -0,0 +1,4 @@
{...}: {
# key map help
programs.nixvim.plugins.which-key.enable = true;
}