diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-06-15 08:27:33 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-06-15 08:27:33 +0200 |
| commit | fa4c1b824baa744562679f25715e7027c7704ab8 (patch) | |
| tree | 8ad1499a9290338eb64dafe704aa4561d740d591 /nvim/lua/config/keymaps.lua | |
| parent | 2d4a82ab20c70787a2af2f5b31233e6df41cdcd6 (diff) | |
| download | dotfiles-fa4c1b824baa744562679f25715e7027c7704ab8.tar.gz dotfiles-fa4c1b824baa744562679f25715e7027c7704ab8.tar.bz2 dotfiles-fa4c1b824baa744562679f25715e7027c7704ab8.zip | |
feat: remove copilot plugin, keymaps and statusline indicator
Diffstat (limited to 'nvim/lua/config/keymaps.lua')
| -rw-r--r-- | nvim/lua/config/keymaps.lua | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index b776697..a2777e6 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua | |||
| @@ -66,36 +66,6 @@ function M.gitsigns() | |||
| 66 | map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame) | 66 | map("n", "<leader>tb", require("gitsigns").toggle_current_line_blame) |
| 67 | end | 67 | end |
| 68 | 68 | ||
| 69 | function M.copilot() | ||
| 70 | if vim.fn.exists(":Copilot") == 0 then return end | ||
| 71 | |||
| 72 | map("n", "<leader>ct", function() | ||
| 73 | local status = vim.fn["copilot#Enabled"]() | ||
| 74 | |||
| 75 | if status == 1 then | ||
| 76 | vim.cmd("Copilot disable") | ||
| 77 | print("Copilot disabled") | ||
| 78 | else | ||
| 79 | vim.cmd("Copilot enable") | ||
| 80 | print("Copilot enabled") | ||
| 81 | end | ||
| 82 | end, { desc = "Copilot Toggle" }) | ||
| 83 | |||
| 84 | map("n", "<leader>ce", function() | ||
| 85 | vim.cmd("Copilot enable") | ||
| 86 | print("Copilot enabled") | ||
| 87 | end, { desc = "Copilot Enable" }) | ||
| 88 | |||
| 89 | map("n", "<leader>cd", function() | ||
| 90 | vim.cmd("Copilot disable") | ||
| 91 | print("Copilot disabled") | ||
| 92 | end, { desc = "Copilot Disable" }) | ||
| 93 | |||
| 94 | map("n", "<leader>cs", function() | ||
| 95 | vim.cmd("Copilot status") | ||
| 96 | end, { desc = "Copilot Status" }) | ||
| 97 | end | ||
| 98 | |||
| 99 | function M.global() | 69 | function M.global() |
| 100 | local opts = { | 70 | local opts = { |
| 101 | silent = true, | 71 | silent = true, |
