do I look like I want to write a commit message for my nvim config?
This commit is contained in:
@@ -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" })
|
||||
|
||||
|
Reference in New Issue
Block a user