This commit is contained in:
Ray Elliott 2026-11-03 13:44:13 +00:00
commit 1cad7970b4
2 changed files with 9 additions and 1 deletions

View file

@ -368,7 +368,7 @@ The configuration uses nvim-surround v4's default mappings.
| insert | `<C-x><C-f>` | Complete a filesystem path | | insert | `<C-x><C-f>` | Complete a filesystem path |
| insert/select | `<Tab>` / `<S-Tab>` | Jump forward/backward through native snippet tabstops | | insert/select | `<Tab>` / `<S-Tab>` | Jump forward/backward through native snippet tabstops |
Completion opens automatically after a 150 ms delay, uses fuzzy matching, and does not preselect an item. LSP buffers prioritize language-aware results exclusively; buffer words remain available explicitly with `<C-x><C-n>`. Buffers without an LSP autocomplete from a bounded set of nearby words. Completion opens automatically after a 150 ms delay, uses fuzzy matching, and does not preselect an item. LSP buffers prioritize language-aware results exclusively; buffer words remain available explicitly with `<C-x><C-n>`. Buffers without an LSP autocomplete from a bounded set of nearby words. Native completion is disabled in Telescope prompts so it does not obscure picker results.
### Copilot Inline Suggestions `lua/plugins/copilot.lua` ### Copilot Inline Suggestions `lua/plugins/copilot.lua`

View file

@ -8,6 +8,14 @@ vim.opt.autocompletedelay = 150
vim.opt.completeopt = { "menu", "menuone", "noselect", "popup", "fuzzy" } vim.opt.completeopt = { "menu", "menuone", "noselect", "popup", "fuzzy" }
vim.opt.complete = { ".^10", "w^5", "b^5", "u^5" } vim.opt.complete = { ".^10", "w^5", "b^5", "u^5" }
vim.api.nvim_create_autocmd("FileType", {
pattern = "TelescopePrompt",
callback = function(args)
vim.bo[args.buf].autocomplete = false
end,
desc = "Disable native completion in Telescope prompts",
})
vim.keymap.set("i", "<C-Space>", function() vim.keymap.set("i", "<C-Space>", function()
vim.lsp.completion.get() vim.lsp.completion.get()
end, { desc = "Completion: Trigger LSP suggestions", silent = true }) end, { desc = "Completion: Trigger LSP suggestions", silent = true })