new formatting, nixvim is working
This commit is contained in:
parent
6513d61fa3
commit
0e22544a8a
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>";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue