Skip to content

Commit 4b038fc

Browse files
committed
Enable tab completion w/ ghost text a la VS Code
1 parent ff1dc37 commit 4b038fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dot_config/nvim/init.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ require('lazy').setup({
510510
local client = vim.lsp.get_client_by_id(event.data.client_id)
511511
if client and client_supports_method(client, vim.lsp.protocol.Methods.textDocument_documentHighlight, event.buf) then
512512
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
513-
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
513+
vim.api.nvim_create_autocmd({ 'CursorHold' }, {
514514
buffer = event.buf,
515515
group = highlight_augroup,
516516
callback = vim.lsp.buf.document_highlight,
@@ -754,7 +754,7 @@ require('lazy').setup({
754754
-- <c-k>: Toggle signature help
755755
--
756756
-- See :h blink-cmp-config-keymap for defining your own keymap
757-
preset = 'default',
757+
preset = 'super-tab',
758758

759759
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
760760
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
@@ -770,6 +770,9 @@ require('lazy').setup({
770770
-- By default, you may press `<c-space>` to show the documentation.
771771
-- Optionally, set `auto_show = true` to show the documentation after a delay.
772772
documentation = { auto_show = false, auto_show_delay_ms = 500 },
773+
774+
-- Display a preview of the selected item on the current line
775+
ghost_text = { enabled = true },
773776
},
774777

775778
sources = {

0 commit comments

Comments
 (0)