update
This commit is contained in:
parent
306b1c188c
commit
1cad7970b4
2 changed files with 9 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ The configuration uses nvim-surround v4's default mappings.
|
|||
| insert | `<C-x><C-f>` | Complete a filesystem path |
|
||||
| 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`
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,14 @@ vim.opt.autocompletedelay = 150
|
|||
vim.opt.completeopt = { "menu", "menuone", "noselect", "popup", "fuzzy" }
|
||||
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.lsp.completion.get()
|
||||
end, { desc = "Completion: Trigger LSP suggestions", silent = true })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue