Skip to content

Commit 3c980de

Browse files
authored
Update neocodeium + add twilight (#21)
1 parent 5268094 commit 3c980de

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

lua/config-plugins/codeium.lua

-9
This file was deleted.

lua/config-plugins/neocodeium.lua

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
return {
2+
"monkoose/neocodeium",
3+
event = "VeryLazy",
4+
opts = {
5+
silent = true,
6+
filetypes = {
7+
TelescopePrompt = false,
8+
["dap-repl"] = false,
9+
},
10+
},
11+
config = function(_, opts)
12+
local neocodeium = require("neocodeium")
13+
neocodeium.setup(opts)
14+
vim.keymap.set("i", "<A-f>", neocodeium.accept)
15+
vim.keymap.set("i", "<A-r>", function()
16+
neocodeium.cycle(1)
17+
end)
18+
vim.keymap.set("i", "<A-e>", function()
19+
neocodeium.cycle(-1)
20+
end)
21+
vim.keymap.set("i", "<A-q>", neocodeium.clear)
22+
end,
23+
}

lua/config-plugins/twilight.lua

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
local map = vim.api.nvim_set_keymap
2+
local options = { noremap = true }
3+
4+
map("n", "T", "<cmd>Twilight<CR>", options)
5+
6+
return {
7+
"folke/twilight.nvim",
8+
}

0 commit comments

Comments
 (0)