mason.nvim icon indicating copy to clipboard operation
mason.nvim copied to clipboard

`mason-null-ls.nvim`

Open ok-nick opened this issue 3 years ago • 4 comments

Similar to mason-lspconfig, mason-null-ls would be extremely convenient. I know it's probably not the highest priority, but I thought I'd leave it here.

It's also worth checking out all the built-in tooling by null-ls. Should definitely port them over to mason if not already.

ok-nick avatar Aug 21 '22 20:08 ok-nick

Hello! Yes this has been on my mind as well. I think a mason-dap plugin (to bridge with nvim-dap) has an even greater need due to how configuration-heavy it is. Are there any particular features you think are missing, what would you like to see in a mason-null-ls.nvim plugin?

williamboman avatar Aug 22 '22 10:08 williamboman

I'd like to see it auto-install null-ls built-in sources, just like mason-lspconfig.nvim.

ok-nick avatar Aug 22 '22 21:08 ok-nick

@williamboman I think the main thing I would want to see in a mason-null-ls plugin is similar to the lspconfig plugin where it has mappings from packages to their equivalent null-ls built in as well as a hook that gets called when those packages are ready to assist with automatically registering them.

Great work by the way on Mason! As one of the lead developers of AstroNvim it has made our life so much easier!

mehalter avatar Aug 26 '22 01:08 mehalter

This needs more time and testing, but I have a working implementation of mason-null-ls.nvim. I will update README.md and give credit where it is due later, https://github.com/jayp0521/mason-null-ls.nvim. Please don't hesitate to provide feedback. This is my first neovim plugin!

Thinking about working on the dap equivalent later.

Rudimentary Config assuming you use packer.nvim:

use {
	"jayp0521/mason-null-ls.nvim",
	after = {
		"null-ls.nvim",
		"mason.nvim",
	},
	config = function()
		require("mason-null-ls").setup({
			automatic_installation = true,
		})
		require("mason-null-ls").check_install(true)
	end,
}

jay-babu avatar Sep 09 '22 03:09 jay-babu

@ok-nick any initial thoughts on the above? I believe you were the first to request. maybe we can close the issue

jay-babu avatar Sep 17 '22 05:09 jay-babu

@jayp0521 I'm going to hopefully try it out later today and I'll let you know how it goes. Nice work.

ok-nick avatar Sep 17 '22 18:09 ok-nick

Any update on the above? @ok-nick

Can probably resolve this issue

jay-babu avatar Sep 25 '22 21:09 jay-babu

FYI, just released https://github.com/jayp0521/mason-nvim-dap.nvim. Still needs some polishing and some functionality is missing

jay-babu avatar Sep 26 '22 01:09 jay-babu

@jay-babu thanks for mason-null-ls.nvim! Just added it to my config and it's working perfectly 😄 Should probably be advertised on the README for this project.

MagicDuck avatar Dec 02 '22 23:12 MagicDuck

Only @williamboman can approve that :)

jay-babu avatar Dec 03 '22 03:12 jay-babu