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

none-ls support #3

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

none-ls support #3

wants to merge 2 commits into from

Conversation

xorander00
Copy link

Pull Request Template

What Changed

Add support for none-ls.

Motivation and Context

jose-elias-alvarez/null-ls.nvim has been deprecated for over a year, with the new active fork being nvimtools/none-ls.nvim.

Issues and links

None?

Type of change

  • Bug Fix: non-breaking change which fixes an issue
  • New Feature: non-breaking change which adds functionality
  • Other
  • Does it have breaking change? No

Checklist

Copy link
Owner

@adoyle-h adoyle-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is incomplete. Please fix the bugs. And you also need to modify the codes in onSubmit function.
Please check your code with https://github.com/LuaLS/lua-language-server , and test it more comprehensively.

local S = require('null-ls.sources')
local nullLS_present, nullLS = pcall(require, 'null-ls')
if not nullLS_present then
nullLS_present, nullLS = pcall(require, 'none-ls')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package name is still 'null-ls' in https://github.com/nvimtools/none-ls.nvim.
The none-ls is https://github.com/nvimtools/none-ls-extras.nvim , but it is not required for none-ls.

if not nullLS_present then
nullLS_present, nullLS = pcall(require, 'none-ls')
if nullLS_present then
local S = require('none-ls.sources')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The local variable defined in if block is invisible out of the if block.

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