first commit
This commit is contained in:
@@ -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,
|
||||
})
|
||||
Reference in New Issue
Block a user