do I look like I want to write a commit message for my nvim config?

This commit is contained in:
2025-09-02 10:58:12 -04:00
parent 33b35f16c1
commit 869859a2ce
6 changed files with 27 additions and 53 deletions

View File

@@ -42,6 +42,13 @@ map("i", "<C-n>", function()
end
end
end, { desc = "Trigger/select next completion" })
map("i", "<CR>", function()
if vim.fn.pumvisible() ~= 0 then
feedkeys("<C-e><CR>")
else
feedkeys("<CR>")
end
end, { desc = "prevent omnifunc from completing on <CR>" })
map("i", "<C-s>", "<C-x><C-s>", { desc = "Trigger spell completion" })
map("n", "<C-s>", lz "<cmd>se spell<CR>ea<C-x><C-s><cmd>se nospell<CR>", { desc = "Trigger spell completion" })