1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-10-02 15:10:15 +00:00

nvim: why did none-ls deprecate shellcheck wtf

This commit is contained in:
Phantop 2024-02-29 13:13:42 -05:00
parent 86502fed82
commit 82a2eb3fd5

View file

@ -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