junegunn / junegunn/vim-easy-align

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

Open
#169 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
4.2k
Forks
122
PR merge metrics
No merged PRs in 30d

Description

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:

```vimL
" to align left
:'<,'>EasyAlign/'\a\+'/dlr0ig[]
" to align right
:'<,'>EasyAlign/'\a\+'/drr0ig[]
```

```lua
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?

https://github.com/user-attachments/assets/1d0b7921-00ff-4477-bf58-3c0ee23ba2b8

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.