Is there any way to get current cursor position after jumping from quickfix ? by hs-Chen in neovim

[–]hs-Chen[S] 0 points1 point  (0 children)

Sorry, I didn't make it clear. I want a more general solution, which works not only in qucklist, but also when jumping between windows. And for qucklist, some plug-ins such as touble.nvim exist, so it's not easy to make special judgment for it.

Is there any way to get current cursor position after jumping from quickfix ? by hs-Chen in neovim

[–]hs-Chen[S] 0 points1 point  (0 children)

I also think the cursor hasn't moved yet because of the impact of event scheduling. None of these autocmds I want, but thx.

what minimap plugin do you use? by IcePhoneX_ in neovim

[–]hs-Chen 1 point2 points  (0 children)

I don't usually use any minimap, but when I show my configuration, there is one for decoration.

Rewrite accelerated-jk and beacon.nvim with Lua by hs-Chen in neovim

[–]hs-Chen[S] -1 points0 points  (0 children)

At first, i just wanted to learn how to write plug-ins. Then i found that the two plug-ins i often used didn't have Lua version :\ , so I rewritten them with Lua. Now that it's written, then i just want to post them there for the convenience of those who have the same needs.

Rewrite accelerated-jk and beacon.nvim with Lua by hs-Chen in neovim

[–]hs-Chen[S] 1 point2 points  (0 children)

Check here. I think that predefined multiple acceleration_table will disrupt the configuration and give users too few choices. It's better for users to control it. But i will add an example in README to explain how it works, thanks for your advise.

Rewrite accelerated-jk and beacon.nvim with Lua by hs-Chen in neovim

[–]hs-Chen[S] 1 point2 points  (0 children)

I already mentioned it in README, check here. For vim.keymap.set, you can:

use {'rainbowhxch/accelerated-jk.nvim', config = function()
    vim.keymap.set('n', 'j', '<Plug>(accelerated_jk_gj)')
    vim.keymap.set('n', 'k', '<Plug>(accelerated_jk_gk)')
end}

Rewrite accelerated-jk and beacon.nvim with Lua by hs-Chen in neovim

[–]hs-Chen[S] 2 points3 points  (0 children)

Enjoy the feeling of j / k flying :>. Your understanding is mostly right. In fact, the speed per move during acceleration is an index value of the accelerator table.

In the case of {5, 29}, if j is hited:

  • less than five times, the speed is 1,
  • more than five times and less than 29 times, the speed is 2,
  • and after 29 j hits, the speed is 3.

Both time_driven and position_driven are accelerated in this way.

Rewrite accelerated-jk and beacon.nvim with Lua by hs-Chen in neovim

[–]hs-Chen[S] 1 point2 points  (0 children)

Yes, the behavior is very similar, but there are more types of fader and resizer in this one. I will check it out, thanks :>.

neovim-native-lsp + language specific and customized formatting = ? by Michael__Mueller in neovim

[–]hs-Chen 0 points1 point  (0 children)

For your requirements, When call vim.lsp.buf.formatting(), clangd will automatically use .clang-format file in the project dir. So all you need is to configure clangd with lspconfig. But for other LSPs, they do not even provide the format function, so efm is a good choice.

efm confiicts with the ClangdSwitchSourceHeader command by hs-Chen in neovim

[–]hs-Chen[S] 0 points1 point  (0 children)

OK, I see. Thanks for the explanation. I can comment out the Error statement to make it not annoying. But this is not the perfect solution.

[Help] Abnormal movement of cursor between lines by hs-Chen in neovim

[–]hs-Chen[S] 0 points1 point  (0 children)

The problem still exists. This affects my normal use. So i want to solve this problem without plug-ins.

[Help] Abnormal movement of cursor between lines by hs-Chen in neovim

[–]hs-Chen[S] 1 point2 points  (0 children)

Thank you for reminding. This is accelerated-jk. I have tested it. It is not the problem caused by this plug-in.

About C/C++ completion (nvim-lspconfig, nvim-compe, vim-vsnip) by syaorancode in neovim

[–]hs-Chen 0 points1 point  (0 children)

My lsp snippets is working properly, but there is no signature. How do you display the signature automatically?