Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Neovim Lua API #48

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Improve Neovim Lua API #48

wants to merge 8 commits into from

Conversation

mawkler
Copy link
Contributor

@mawkler mawkler commented Feb 19, 2025

Hi! This PR improves the Neovim Lua API by exposing the functions rustowl.enable(), rustowl.disable() and rustowl.toggle() so that the user can, for instance, map those to keymaps that they desire. It also automatically does the configuration for the user in a more conventional manner, so that they don't have to explicitly call require('lspconfig').setup() themselves. It also exposes options for configuring whether to auto-enable RustOwl on startup, and lets the user set the idle time. Moreover, I added more extensive documentation for how the user can automatically build rustowl from source on installation from inside Neovim.

I started working on this last week and since, and since then c5cd9cd got merged. Since my PR does kind of the same thing, but a little more extensively I found the easiest way was to simply revert that commit.

lsp.lua -> highlight.lua
hover.lua -> show-on-hover.lua
Passing `default = true` to `vim.api.nvim_set_hl` ensures that the
highlight group only gets created if none already exists
@cordx56
Copy link
Owner

cordx56 commented Feb 22, 2025

It will take some time since this update didn't work in my environment. Please wait for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants