Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Oct 22, 2023
1 parent 869bbb5 commit 4225384
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/epo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,12 @@ local function signature_help(client, bufnr)
local id = api.nvim_create_autocmd('ModeChanged', {
buffer = ctx.bufnr,
group = group,
callback = function(args)
if not data.parameters or not data.parameters then
callback = function()
---@diagnostic disable-next-line: invisible
if not data.parameters or not data.parameters or not vim.snippet._session then
return
end
---@diagnostic disable-next-line: unused-local
---@diagnostic disable-next-line: invisible
local index = vim.snippet._session.current_tabstop.index
if index and data.parameters[index] and data.parameters[index].label then
api.nvim_buf_clear_namespace(fbuf, ns, line, line + 1)
Expand Down

0 comments on commit 4225384

Please sign in to comment.