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

draft: feat(texlab): change all print() to vim.notify() #3256

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

Thibaulltt
Copy link
Contributor

@Thibaulltt Thibaulltt commented Aug 2, 2024

Some texlab-specific functions were using print, some were using vim.notify. Changed all uses of print to vim.notify with levels:

  • vim.log.levels.INFO for build and forwardSeach LSP methods,
  • vim.log.levels.WARN when the texlab client cannot be found.

We could also switch all error() calls to vim.notify, but we'd lose the stacktrace printed by it hence I left those calls unmodified.

This PR should be compatible with #3255 but haven't rebased the changes against it :)

Some texlab-specific functions were using `print`, some were using
`vim.notify`. Changed all uses of `print` to `vim.notify` with levels:
- `vim.log.levels.INFO` for `build` and `forwardSeach` LSP methods,
- `vim.log.levels.ERROR` when the `texlab` client cannot be found.
@glepnir glepnir merged commit e6528f4 into neovim:master Aug 2, 2024
8 checks passed
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