new formatting, nixvim is working
This commit is contained in:
parent
9d1dfa44d7
commit
88db34c822
88 changed files with 1994 additions and 1845 deletions
|
@ -11,48 +11,48 @@
|
|||
};
|
||||
in {
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimUtils; [
|
||||
(buildVimPlugin {
|
||||
pname = "copilotchat";
|
||||
version = "2.4.0";
|
||||
src = pkgs.fetchFromGitHub copilotChatRepo;
|
||||
meta = {
|
||||
description = "Chat with GitHub Copilot in Neovim";
|
||||
homepage = "https://github.com/CopilotC-Nvim/CopilotChat.nvim/";
|
||||
license = lib.licenses.gpl3;
|
||||
};
|
||||
})
|
||||
];
|
||||
extraConfigLua = ''
|
||||
require("CopilotChat").setup { }
|
||||
'';
|
||||
extraPlugins = with pkgs.vimUtils; [
|
||||
(buildVimPlugin {
|
||||
pname = "copilotchat";
|
||||
version = "2.4.0";
|
||||
src = pkgs.fetchFromGitHub copilotChatRepo;
|
||||
meta = {
|
||||
description = "Chat with GitHub Copilot in Neovim";
|
||||
homepage = "https://github.com/CopilotC-Nvim/CopilotChat.nvim/";
|
||||
license = lib.licenses.gpl3;
|
||||
};
|
||||
})
|
||||
];
|
||||
extraConfigLua = ''
|
||||
require("CopilotChat").setup { }
|
||||
'';
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>a";
|
||||
action = "+copilot";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>ae";
|
||||
action = "<cmd>CopilotChatExplain<cr>";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>af";
|
||||
action = "<cmd>CopilotChatFix<cr>";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>ad";
|
||||
action = "<cmd>CopilotChatDocs<cr>";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>ac";
|
||||
action = "<cmd>CopilotChatCommit<cr>";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>a";
|
||||
action = "+copilot";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>ae";
|
||||
action = "<cmd>CopilotChatExplain<cr>";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>af";
|
||||
action = "<cmd>CopilotChatFix<cr>";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>ad";
|
||||
action = "<cmd>CopilotChatDocs<cr>";
|
||||
}
|
||||
{
|
||||
mode = "x";
|
||||
key = "<leader>ac";
|
||||
action = "<cmd>CopilotChatCommit<cr>";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,58 +1,58 @@
|
|||
{
|
||||
programs.nixvim = {
|
||||
plugins.flash = {
|
||||
enable = true;
|
||||
labels = "asdfghjklqwertyuiopzxcvbnm";
|
||||
search = {
|
||||
mode = "fuzzy";
|
||||
};
|
||||
jump = {
|
||||
autojump = true;
|
||||
};
|
||||
label = {
|
||||
uppercase = false;
|
||||
rainbow = {
|
||||
enabled = false;
|
||||
shade = 5;
|
||||
plugins.flash = {
|
||||
enable = true;
|
||||
labels = "asdfghjklqwertyuiopzxcvbnm";
|
||||
search = {
|
||||
mode = "fuzzy";
|
||||
};
|
||||
jump = {
|
||||
autojump = true;
|
||||
};
|
||||
label = {
|
||||
uppercase = false;
|
||||
rainbow = {
|
||||
enabled = false;
|
||||
shade = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n" "x" "o"];
|
||||
key = "s";
|
||||
action = "<cmd>lua require('flash').jump()<cr>";
|
||||
options = {
|
||||
desc = "Flash";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n" "x" "o"];
|
||||
key = "S";
|
||||
action = "<cmd>lua require('flash').treesitter()<cr>";
|
||||
options = {
|
||||
desc = "Flash Treesitter";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "o";
|
||||
key = "r";
|
||||
action = "<cmd>lua require('flash').remote()<cr>";
|
||||
options = {
|
||||
desc = "Remote Flash";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["x" "o"];
|
||||
key = "R";
|
||||
action = "<cmd>lua require('flash').treesitter_search()<cr>";
|
||||
options = {
|
||||
desc = "Treesitter Search";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n" "x" "o"];
|
||||
key = "s";
|
||||
action = "<cmd>lua require('flash').jump()<cr>";
|
||||
options = {
|
||||
desc = "Flash";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["n" "x" "o"];
|
||||
key = "S";
|
||||
action = "<cmd>lua require('flash').treesitter()<cr>";
|
||||
options = {
|
||||
desc = "Flash Treesitter";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "o";
|
||||
key = "r";
|
||||
action = "<cmd>lua require('flash').remote()<cr>";
|
||||
options = {
|
||||
desc = "Remote Flash";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = ["x" "o"];
|
||||
key = "R";
|
||||
action = "<cmd>lua require('flash').treesitter_search()<cr>";
|
||||
options = {
|
||||
desc = "Treesitter Search";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
{pkgs, ...}: {
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimUtils; [
|
||||
(buildVimPlugin {
|
||||
pname = "grapple.nvim";
|
||||
version = "1.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "cbochs";
|
||||
repo = "grapple.nvim";
|
||||
rev = "59d458e378c4884f22b7a68e61c07ed3e41aabf0";
|
||||
hash = "sha256-4k8BE9i8kG4pL7Fj0xw9cG8sjA0u4jzJ40WSV/lBFhY=";
|
||||
};
|
||||
})
|
||||
];
|
||||
extraPlugins = with pkgs.vimUtils; [
|
||||
(buildVimPlugin {
|
||||
pname = "grapple.nvim";
|
||||
version = "1.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "cbochs";
|
||||
repo = "grapple.nvim";
|
||||
rev = "59d458e378c4884f22b7a68e61c07ed3e41aabf0";
|
||||
hash = "sha256-4k8BE9i8kG4pL7Fj0xw9cG8sjA0u4jzJ40WSV/lBFhY=";
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
extraConfigLua = ''
|
||||
require('grapple').setup({
|
||||
scope = "git_branch",
|
||||
})
|
||||
'';
|
||||
extraConfigLua = ''
|
||||
require('grapple').setup({
|
||||
scope = "git_branch",
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,52 +1,52 @@
|
|||
{
|
||||
programs.nixvim = {
|
||||
plugins.oil = {
|
||||
enable = true;
|
||||
settings = {
|
||||
useDefaultKeymaps = true;
|
||||
deleteToTrash = true;
|
||||
float = {
|
||||
padding = 2;
|
||||
maxWidth = 0; # ''math.ceil(vim.o.lines * 0.8 - 4)'';
|
||||
maxHeight = 0; # ''math.ceil(vim.o.columns * 0.8)'';
|
||||
border = "rounded"; # 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open
|
||||
winOptions = {
|
||||
winblend = 0;
|
||||
plugins.oil = {
|
||||
enable = true;
|
||||
settings = {
|
||||
useDefaultKeymaps = true;
|
||||
deleteToTrash = true;
|
||||
float = {
|
||||
padding = 2;
|
||||
maxWidth = 0; # ''math.ceil(vim.o.lines * 0.8 - 4)'';
|
||||
maxHeight = 0; # ''math.ceil(vim.o.columns * 0.8)'';
|
||||
border = "rounded"; # 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open
|
||||
winOptions = {
|
||||
winblend = 0;
|
||||
};
|
||||
};
|
||||
preview = {
|
||||
border = "rounded";
|
||||
};
|
||||
keymaps = {
|
||||
"g?" = "actions.show_help";
|
||||
"<CR>" = "actions.select";
|
||||
"<C-\\>" = "actions.select_vsplit";
|
||||
"<C-enter>" = "actions.select_split"; # this is used to navigate left
|
||||
"<C-t>" = "actions.select_tab";
|
||||
"<C-v>" = "actions.preview";
|
||||
"<C-c>" = "actions.close";
|
||||
"<C-r>" = "actions.refresh";
|
||||
"-" = "actions.parent";
|
||||
"_" = "actions.open_cwd";
|
||||
"`" = "actions.cd";
|
||||
"~" = "actions.tcd";
|
||||
"gs" = "actions.change_sort";
|
||||
"gx" = "actions.open_external";
|
||||
"g." = "actions.toggle_hidden";
|
||||
"q" = "actions.close";
|
||||
};
|
||||
};
|
||||
preview = {
|
||||
border = "rounded";
|
||||
};
|
||||
keymaps = {
|
||||
"g?" = "actions.show_help";
|
||||
"<CR>" = "actions.select";
|
||||
"<C-\\>" = "actions.select_vsplit";
|
||||
"<C-enter>" = "actions.select_split"; # this is used to navigate left
|
||||
"<C-t>" = "actions.select_tab";
|
||||
"<C-v>" = "actions.preview";
|
||||
"<C-c>" = "actions.close";
|
||||
"<C-r>" = "actions.refresh";
|
||||
"-" = "actions.parent";
|
||||
"_" = "actions.open_cwd";
|
||||
"`" = "actions.cd";
|
||||
"~" = "actions.tcd";
|
||||
"gs" = "actions.change_sort";
|
||||
"gx" = "actions.open_external";
|
||||
"g." = "actions.toggle_hidden";
|
||||
"q" = "actions.close";
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "-";
|
||||
action = ":Oil<CR>";
|
||||
options = {
|
||||
desc = "Open parent directory";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "-";
|
||||
action = ":Oil<CR>";
|
||||
options = {
|
||||
desc = "Open parent directory";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
{
|
||||
programs.nixvim = {
|
||||
plugins.undotree = {
|
||||
enable = true;
|
||||
settings = {
|
||||
autoOpenDiff = true;
|
||||
focusOnToggle = true;
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ut";
|
||||
action = "<cmd>UndotreeToggle<CR>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Undotree";
|
||||
plugins.undotree = {
|
||||
enable = true;
|
||||
settings = {
|
||||
autoOpenDiff = true;
|
||||
focusOnToggle = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ut";
|
||||
action = "<cmd>UndotreeToggle<CR>";
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Undotree";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue