renamed some files and directories that had identical filenames. Altered some nixvim plugin options. Set up gpg signing for git commits.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, config, username, ... }: {
|
||||
{ lib, config, username, pkgs, ... }: {
|
||||
options = {
|
||||
movOpts.programConfigs.gitConfig.enable =
|
||||
lib.mkEnableOption "enables my git configuration";
|
||||
@@ -6,7 +6,12 @@
|
||||
config = lib.mkIf config.movOpts.programConfigs.gitConfig.enable {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "${username}@gmail.com";
|
||||
signing = {
|
||||
gpgPath = "${pkgs.gnupg}/bin/gpg";
|
||||
key = "76118C11E525D3D0CBCA0F6EB2A3D477E86843DB";
|
||||
signByDefault = true;
|
||||
};
|
||||
userEmail = "kylerclay@proton.me";
|
||||
userName = "${username}";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,6 +1,21 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
keymaps = [
|
||||
{
|
||||
action = "<cmd>ChatGPTEditWithInstructions<CR>";
|
||||
key = "!egpt";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>ChatGPTCompleteCode<CR>";
|
||||
key = "!cgpt";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>ChatGPT<CR>";
|
||||
key = "!gpt";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<cmd>lua vim.lsp.buf.code_action()<CR>";
|
||||
key = "!ca";
|
||||
|
||||
8
modules/home/programs/nixvim/plugins/chatgpt.nix
Normal file
8
modules/home/programs/nixvim/plugins/chatgpt.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
programs.nixvim.plugins.chatgpt = {
|
||||
enable = true;
|
||||
settings = {
|
||||
api_key_cmd = "pass keys/openai/apikey";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
# ./coq.nix
|
||||
./barbar.nix
|
||||
./cmp.nix
|
||||
./chatgpt.nix
|
||||
./lsp.nix
|
||||
./fidget.nix
|
||||
./lualine.nix
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
settings = {
|
||||
virtual_text = { enable = true; };
|
||||
autocmd.enabled = true;
|
||||
sign.enabled = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user