mirror of
https://github.com/softinio/nix-config.git
synced 2025-10-18 19:16:41 -07:00
jj update and corrections for github copilot lsp
This commit is contained in:
parent
6b37f9ec83
commit
82aa68744f
4 changed files with 33 additions and 9 deletions
2
home.nix
2
home.nix
|
@ -73,7 +73,7 @@
|
|||
nix-index
|
||||
nixfmt-rfc-style
|
||||
nix-prefetch-git
|
||||
nodejs
|
||||
nodejs-slim
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
ollama
|
||||
|
|
|
@ -4,7 +4,16 @@ let
|
|||
l = [
|
||||
"log"
|
||||
"-r"
|
||||
"(main@origin..@):: | (main@origin..@)-"
|
||||
"ancestors(reachable(@, mutable()), 2)"
|
||||
];
|
||||
n = [ "new" ];
|
||||
tug = [
|
||||
"bookmark"
|
||||
"move"
|
||||
"--from"
|
||||
"closest_bookmark(@-)"
|
||||
"--to"
|
||||
"@-"
|
||||
];
|
||||
};
|
||||
in
|
||||
|
@ -13,11 +22,18 @@ in
|
|||
enable = true;
|
||||
settings = {
|
||||
aliases = MyAliases;
|
||||
gerrit.enabled = false;
|
||||
git = {
|
||||
subprocess = true;
|
||||
};
|
||||
signing = {
|
||||
key = "~/.ssh/id_ed25519.pub";
|
||||
};
|
||||
templates = {
|
||||
git_push_bookmark = "'\"softinio/push-\" ++ change_id.short()'";
|
||||
};
|
||||
ui = {
|
||||
default-command = "log";
|
||||
default-command = "l";
|
||||
diff-formatter = [
|
||||
"difft"
|
||||
"--color=always"
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
enable = true;
|
||||
menu = {
|
||||
nvim_lsp = "[LSP]";
|
||||
copilot-vim = "[copilot]";
|
||||
luasnip = "[snip]";
|
||||
buffer = "[buffer]";
|
||||
path = "[path]";
|
||||
|
@ -67,6 +68,7 @@
|
|||
|
||||
sources = [
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "copilot-vim"; }
|
||||
{ name = "luasnip"; }
|
||||
{
|
||||
name = "buffer";
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
{ ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
# GitHub Copilot
|
||||
copilot-vim.enable = true;
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
# GitHub Copilot
|
||||
copilot-vim.enable = true;
|
||||
|
||||
# Avante AI assistant (imported from separate file)
|
||||
# avante config is in avante.nix
|
||||
# Avante AI assistant (imported from separate file)
|
||||
# avante config is in avante.nix
|
||||
};
|
||||
|
||||
globals = {
|
||||
copilot_node_command = lib.mkForce "${pkgs.nodejs-slim}/bin/node";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue