🐛 fix(nvim): disable default codeium keymaps

This commit is contained in:
Sergio Laín 2023-10-19 20:21:14 +02:00
parent c2cc39d891
commit d58bec9dc5
No known key found for this signature in database
GPG key ID: E3BC677C07A2C7AC
2 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,12 @@ if vim.lsp.inlay_hint then
vim.lsp.inlay_hint(0, nil) vim.lsp.inlay_hint(0, nil)
end, { desc = "Toggle Inlay Hints" }) end, { desc = "Toggle Inlay Hints" })
end end
---@param path string
local function open(path)
vim.fn.jobstart({ vim.g.open_command, path }, { detach = true })
vim.notify(string.format("Opening %s", path))
end
-- map( -- map(
-- "n", -- "n",
-- "<leader>xs", -- "<leader>xs",

View file

@ -3,6 +3,8 @@ return {
"Exafunction/codeium.vim", "Exafunction/codeium.vim",
event = "BufEnter", event = "BufEnter",
config = function() config = function()
vim.g.codeium_disable_bindings = 1
vim.keymap.set("i", "<M-CR>", function() vim.keymap.set("i", "<M-CR>", function()
return vim.fn["codeium#Accept"]() return vim.fn["codeium#Accept"]()
end, { expr = true }) end, { expr = true })