Commit 2902b90

Ansari <ping@ansari.wtf>
2026-03-09 18:00:27
gitsigns plugin for better git changes in nvim and autocompletions
1 parent ef77d9e
Changed files (4)
.config
.config/nvim/lua/plugins/gitsigns.lua
@@ -0,0 +1,8 @@
+return {
+	"lewis6991/gitsigns.nvim",
+	config = function()
+		require("gitsigns").setup({
+			current_line_blame = true,
+		}, vim.keymap.set("n", "<leader>gp", ":Gitsigns preview_hunk_inline<CR>", {}))
+	end,
+}
.config/nvim/lazy-lock.json
@@ -5,6 +5,7 @@
   "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
   "catppuccin": { "branch": "main", "commit": "0a5de4da015a175f416d6ef1eda84661623e0500" },
   "friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
+  "gitsigns.nvim": { "branch": "main", "commit": "7c4faa3540d0781a28588cafbd4dd187a28ac6e3" },
   "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
   "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
   "mason-lspconfig.nvim": { "branch": "main", "commit": "21c2a84ce368e99b18f52ab348c4c02c32c02fcf" },
.config/zsh/completions/_mise
@@ -0,0 +1,40 @@
+#compdef mise
+# @generated by usage-cli from usage spec
+local curcontext="$curcontext"
+
+# caching config
+_usage_mise_cache_policy() {
+  if [[ -z "${lifetime}" ]]; then
+    lifetime=$((60*60*4)) # 4 hours
+  fi
+  local -a oldp
+  oldp=( "$1"(Nms+${lifetime}) )
+  (( $#oldp ))
+}
+
+_mise() {
+  typeset -A opt_args
+  local curcontext="$curcontext" cache_policy
+
+  if ! type -p usage &> /dev/null; then
+      echo >&2
+      echo "Error: usage CLI not found. This is required for completions to work in mise." >&2
+      echo "See https://usage.jdx.dev for more information." >&2
+      return 1
+  fi
+
+  local spec_file="${TMPDIR:-/tmp}/usage__usage_spec_mise_2026_2_24.spec"
+  if [[ ! -f "$spec_file" ]]; then
+    mise usage > "$spec_file"
+  fi
+  _arguments "*: :(($(command usage complete-word --shell zsh -f "$spec_file" -- "${words[@]}" )))"
+  return 0
+}
+
+if [ "$funcstack[1]" = "_mise" ]; then
+    _mise "$@"
+else
+    compdef _mise mise
+fi
+
+# vim: noet ci pi sts=0 sw=4 ts=4
.config/zsh/init.zsh
@@ -1,4 +1,5 @@
 # Completions 
+fpath=($ZSH/completions $fpath)
 autoload -Uz compinit
 compinit
 zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"