From 86422bd68bf6565ccf482b5b575cc76309bdd503 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Wed, 29 Jan 2025 13:41:26 -0500 Subject: [PATCH] feat: Adds kubectl completions to zshrc. --- nvim/m-housh/lua/plugins/lsp.lua | 2 +- zsh/config/.zshrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/m-housh/lua/plugins/lsp.lua b/nvim/m-housh/lua/plugins/lsp.lua index 2201d81..315e489 100755 --- a/nvim/m-housh/lua/plugins/lsp.lua +++ b/nvim/m-housh/lua/plugins/lsp.lua @@ -69,7 +69,7 @@ return { --vim.keymap.set("n", "rn", vim.lsp.buf.rename, opts) opts.desc = "[R]eload or start LSP" - vim.keymap.set("n", "rl", ":LspRestart | :LspStart", opts) + vim.keymap.set({ "n", "x" }, "rl", ":LspRestart | :LspStart", opts) opts.desc = "Goto previous diagnostic" vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts) diff --git a/zsh/config/.zshrc b/zsh/config/.zshrc index 8746044..49466f0 100755 --- a/zsh/config/.zshrc +++ b/zsh/config/.zshrc @@ -205,6 +205,7 @@ alias wget="wget --hsts-file=$XDG_DATA_HOME/wget-hsts" # set wget history locat # NOTE: This needs to stay near the bottom, or it doesn't work properly. # Use fzf in history / search contexts. source <(fzf --zsh) +source <(kubectl completion zsh) #------------------------------ local configs ------------------------------