astro-nvim-v3 - turn on diagnose for checking errors

This commit is contained in:
huyjaky
2025-02-16 10:57:17 +07:00
parent 93678288f1
commit dcdb4c4397
4 changed files with 6 additions and 3 deletions

View File

@@ -118,10 +118,11 @@ return {
end
end, { "i", "s" }),
vim.api.nvim_set_keymap("i", "<C-f>", 'copilot#Accept("\\<CR>")', { expr = true, silent = true }),
-- vim.g.copilot_no_tab_map = true,
-- ["<C-f>"] = cmp.mapping(function(fallback)
-- -- Check if Copilot is suggesting something
-- if vim.fn["copilot#Accept"]() ~= "" then
-- vim.api.nvim_set_keymap("i", "<C-f>", 'copilot#Accept("\\<CR>")', { expr = true, silent = true })
-- else
-- fallback() -- If no suggestion, fallback to default behavior
-- end