hydra.nvim
lua-language-server
hydra.nvim | lua-language-server | |
---|---|---|
30 | 79 | |
990 | 3,011 | |
- | 1.8% | |
0.0 | 9.4 | |
5 months ago | 7 days ago | |
Lua | Lua | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hydra.nvim
-
New input method
similar to hydra?
-
New plugin: Notebook Navigator - Execute and manipulate code cells a la VSCode
A Hydra mode to quickly manipulate and run cells
-
Your favourite Neovim plugins?
Possibly hydra, which everything from submodes to a more customized which-key. Works really well for making a telescope menu or a DAP mode.
-
How to re perform last key strokes?
The other way, that I use for some navigation functions is using hydra.nvim. You can basically create little 'submodes' to group related functionality with quicker mappings. Like after [hjkl] you can just hit hjkl to keep moving around, and then hitting esc or just any key not in the submode to leave it.
-
Is there any generic, simple way to close floating windows created by Neovim?
I use this function to exclude the currently focused floating window and ignore floating windows of some plugins (in this case only the popup from hydra.nvim is ignored):
-
Introducing stackmap.nvim
There is also https://github.com/anuvyklack/keymap-layer.nvim used by https://github.com/anuvyklack/hydra.nvim
-
mini.nvim - release of version 0.8.0
This suggestion and similar (like [[ and ]] to repeat latest target) did come up. I feel like that is the "responsibility" of something like anuvyklack/hydra.nvim or the (some time eventually) planned 'mini.nvim' alternative.
-
Question regarding vertical movement
I installed hop but can't get used to it and just hold j/k/W/B as someone commented higher. Btw, for plaintext files this can be useful, even without hydra: https://github.com/anuvyklack/hydra.nvim/wiki/Quick-words
-
Neovim version of tpope/vim-repeat
Of course, each case is different, but for making repeatable mappings there is anuvyklack/hydra.nvim. Or in some cases you can avoid this by choosing appropriate mappings (like Ctrl + arrows for window resizing which doesn't require repeating several keystrokes for a single operation).
-
Keymap hints while typing commands?
I don't quite know what I am looking at in your screenshot (I haven't used emacs either though), but I use hydra.nvim and I can get a similar end result with it
lua-language-server
-
Some questions about code formatting with lsp-zero and mason
Check the documentation of lua_ls
-
Beginner question: is there any coding standard for documenting Lua functions or tables emulating OOP?
You can use LLS extension for VSCode. Documentation: https://github.com/LuaLS/lua-language-server/wiki/Annotations
-
Lua: The Little Language That Could
There's lua-language-server which works with types defined in definition files and/or annotations in comments.
-
Documentation Comment highlighting with TreeSitter
Lastly, neovim now supports semantic token highlighting which uses semantic tokens from LSP servers to provide even better, language specific highlighting. Some LSP servers support semantic tokens for doc comments. The lua language server is a good example. Unfortunately, if you're using a language like C or C++, the language servers do not provide semantic tokens for comments because doxygen style comments are not specific to those languages so you might be out of luck for semantic token highlighting.
-
This little thing bugs me: in lua LSP popup content, the closing paren is always highlighted red
I think it is because the language server send a different type for the first line: https://github.com/LuaLS/lua-language-server/blob/eeffd1462b892fda5d01282acf840ba0e154e467/script/core/hover/label.lua (might be one of the other files here, not label)
-
How to add lua-language-server to $PATH
And I was reading this installation guide and after "./bin/lua-language-server " I get this in terminal
-
New to lua
Not sure about typescript but there is a jsdoc equivalent: https://github.com/LuaLS/lua-language-server/wiki/Annotations
-
How complex can I make games in Lua?
Lua with lua-language-server and annotated types is a much nicer experience.
-
mini.nvim - release of version 0.8.0
For it to be language-aware (like provide suggestions for module/table/class methods/fields) you also need language server (like lua_ls for Lua). But even without it you should see suggestions from fallback method. If you don't, then 'mini.completion' is not installed and/or activated.
-
PSA: Changes to the mason.nvim registry
I also want to thank current & past GitHub sponsors who help finance costs associated with the plugin. I regularly pay the surplus forward to other devs whose tooling I heavily rely on (huge shout-out to sumneko for working on the Lua language server, without it a plugin of the complexity of mason.nvim would be impossible, go sponsor them here).
What are some alternatives?
which-key.nvim - 💥 Create key bindings that stick. WhichKey is a lua plugin for Neovim 0.5 that displays a popup with possible keybindings of the command you started typing.
lua-lsp - A Lua language server
vim-which-key - :tulip: Vim plugin that shows keybindings in popup
luacheck - A tool for linting and static analysis of Lua code.
vim-resize-mode - A Vim mode for easier window resizing
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
winshift.nvim - Rearrange your windows with ease.
lsp-mode - Emacs client/library for the Language Server Protocol
Launch.nvim - 🚀 Launch.nvim is modular starter for Neovim.
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
nvim-window
nvim-cmp - A completion plugin for neovim coded in Lua.