Files
dotfiles/nvim/lua/plugins/windsurf.lua
Nikolai Papin bc80157fa9 feat: add auto-save plugin with toggle mapping;
feat: windsurf is back;
feat: add html snippet for boilerplate;
refactor: lsp config due to deprecation;
refactor: update hop mappings to current-line only with offsets;
chore: adjust base02 color in kolyan theme
2025-11-06 00:34:29 +03:00

31 lines
931 B
Lua

return {
"Exafunction/windsurf.vim",
event = 'BufEnter',
enabled = false,
init = function()
vim.g.codeium_disable_bindings = 1
-- Completion
vim.keymap.set("i", "<S-Enter>", function()
return vim.fn["codeium#Accept"]()
end, { expr = true })
-- Complete next word
vim.keymap.set("i", "<M-Enter>", function()
return vim.fn["codeium#AcceptNextWord"]()
end, { expr = true })
-- Complete line
vim.keymap.set("i", "<M-\\>", function()
return vim.fn["codeium#AcceptNextLine"]()
end, { expr = true })
-- Next
vim.keymap.set("i", "<M-]>", function()
return vim.fn["codeium#CycleCompletions"](1)
end, { expr = true })
-- Previous
vim.keymap.set("i", "<M-[>", function()
return vim.fn["codeium#Clear"]()
end, { expr = true })
end
}