first commit

This commit is contained in:
2026-05-18 16:15:04 +07:00
commit 216c9fdec4
8 changed files with 307 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
vim.opt.completeopt = { "menuone", "noselect", "popup" }
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if client:supports_method("textDocument/completion") then
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = false })
end
end,
})
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank({ timeout = 170 })
end,
})