mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
feat(shfmt): added shfmt to null-ls and mason
This commit is contained in:
parent
3c6357815c
commit
c407ddfe8a
1 changed files with 4 additions and 2 deletions
|
@ -65,7 +65,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
---@param opts PluginLspOpts
|
---@param opts PluginLspOpts
|
||||||
config = function(plugin, opts)
|
config = function(_, opts)
|
||||||
-- setup autoformat
|
-- setup autoformat
|
||||||
require("lazyvim.plugins.lsp.format").autoformat = opts.autoformat
|
require("lazyvim.plugins.lsp.format").autoformat = opts.autoformat
|
||||||
-- setup formatting and keymaps
|
-- setup formatting and keymaps
|
||||||
|
@ -141,6 +141,7 @@ return {
|
||||||
sources = {
|
sources = {
|
||||||
-- nls.builtins.formatting.prettierd,
|
-- nls.builtins.formatting.prettierd,
|
||||||
nls.builtins.formatting.stylua,
|
nls.builtins.formatting.stylua,
|
||||||
|
nls.builtins.formatting.shfmt,
|
||||||
nls.builtins.diagnostics.flake8,
|
nls.builtins.diagnostics.flake8,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -156,11 +157,12 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"stylua",
|
"stylua",
|
||||||
|
"shfmt",
|
||||||
"flake8",
|
"flake8",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
---@param opts MasonSettings | {ensure_installed: string[]}
|
---@param opts MasonSettings | {ensure_installed: string[]}
|
||||||
config = function(plugin, opts)
|
config = function(_, opts)
|
||||||
require("mason").setup(opts)
|
require("mason").setup(opts)
|
||||||
local mr = require("mason-registry")
|
local mr = require("mason-registry")
|
||||||
for _, tool in ipairs(opts.ensure_installed) do
|
for _, tool in ipairs(opts.ensure_installed) do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue