8000 Use `vim.system(...)` instead of `vim.fn.system(...)` by HexoKnight · Pull Request #27 · IogaMaster/neocord · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use vim.system(...) instead of vim.fn.system(...) #27

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

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

Conversation

HexoKnight
Copy link

Description of changes

Essentially just replaced the vim.fn.system calls with improved vim.system calls.

The motivating reason was that (for a reason unbeknownst to me) vim.system calls cause the cursor to start blinking when running neovim specifically in the kitty terminal (works fine in xterm).

However, this also simplifies the code as it now bypasses the shell so should be entirely cross-platform and should not have any quoting issues. Although now vim.system errors if git isn't available so some extra error handling is required. I've only ever used lua in neovim snippets up until now so let me know if anything should have been done different.

Also it looks like neocord:get_buttons is unused but I changed the call there too in a different commit just for completeness.

Relevant Issues

None

CC Maintainers

@IogaMaster

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.

1 participant
0