From 82a2eb3fd5b0311945ec594a161e6fea80d44a91 Mon Sep 17 00:00:00 2001 From: Phantop Date: Thu, 29 Feb 2024 13:13:42 -0500 Subject: [PATCH] nvim: why did none-ls deprecate shellcheck wtf --- nvim/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index afce22d..f3d8910 100755 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -16,6 +16,8 @@ require "paq" { 'vim-airline/vim-airline', { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' }, + 'gbprod/none-ls-shellcheck.nvim', + "L3MON4D3/LuaSnip"; "hrsh7th/cmp-buffer"; "hrsh7th/cmp-cmdline"; @@ -41,11 +43,11 @@ require("nvim-treesitter.configs").setup({highlight = {enable = true}}) local null_ls = require("null-ls") null_ls.setup({sources = { - null_ls.builtins.code_actions.shellcheck, - null_ls.builtins.diagnostics.shellcheck, null_ls.builtins.formatting.phpcbf, null_ls.builtins.diagnostics.phpcs }}) +require("null-ls").register(require("none-ls-shellcheck.diagnostics")) +require("null-ls").register(require("none-ls-shellcheck.code_actions")) local has_words_before = function() unpack = unpack or table.unpack