mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 11:54:11 +09:00
nixvim
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user