Skip to content

[nvim] It doesn't work when vim.lsp.inlay_hint is enable(true). #169

@nyngwang

Description

@nyngwang

Hi, first of all ty for making this beautiful plugin!

To reproduce the problem run :lua vim.lsp.inlay_hint.enable(true) from an neovim instance, and try to vim-easy-align the following code using this command:

" to align left
:'<,'>EasyAlign/'\a\+'/dlr0ig[]
" to align right
:'<,'>EasyAlign/'\a\+'/drr0ig[]
vim.pack.add({ 'https://github.com/jbyuki/venn.nvim' })
;(function ()
  -- https://github.com/jbyuki/venn.nvim/issues/13#issuecomment-1107845218.
  require('venn').set_arrow(   'up', '')
  require('venn').set_arrow( 'down', '')
  require('venn').set_arrow( 'left', '')
  require('venn').set_arrow('right', '')
end)()

DEMO

Explain: vim-easy-align can only work with :lua vim.lsp.inlay_hint.enable(false) set.
My guessing: those ghost-text could interfere the aligning algo?

vim-easy-align_issue.169.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions