Skip to content

Commit

Permalink
chore: adjust keymap example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramilito committed Feb 12, 2025
1 parent ab1f0c7 commit 3c8b307
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ local group = vim.api.nvim_create_augroup("kubectl_mappings", { clear = true })
callback = function(ev)
local k = vim.keymap
local opts = { buffer = ev.buf }

k.set("n", "<C-e", "<Plug>(kubectl.picker_view)", opts)
end,
})
Expand All @@ -150,12 +151,12 @@ local group = vim.api.nvim_create_augroup("kubectl_mappings", { clear = true })
callback = function(ev)
local k = vim.keymap
local opts = { buffer = ev.buf }
k.del("n", "<Plug>(kubectl.view_deployments)", opts)
k.del("n", "<Plug>(kubectl.view_pods)", opts)
k.del("n", "<Plug>(kubectl.view_services)", opts)
k.del("n", "<Plug>(kubectl.view_secrets)", opts)
k.del("n", "<Plug>(kubectl.view_ingresses)", opts)
k.del("n", "<Plug>(kubectl.view_configmaps)", opts)

pcall(k.del, "n", 1, opts)
pcall(k.del, "n", 2, opts)
pcall(k.del, "n", 3, opts)
pcall(k.del, "n", 5, opts)
pcall(k.del, "n", 6, opts)
end,
})
```
Expand Down

0 comments on commit 3c8b307

Please sign in to comment.