20 lines
413 B
Lua
20 lines
413 B
Lua
local util = require("util")
|
|
|
|
---@type vim.lsp.Config
|
|
return {
|
|
filetypes = {
|
|
"sh",
|
|
"bash",
|
|
"zsh",
|
|
},
|
|
on_attach = function(_, bufnr)
|
|
vim.keymap.set("n", "<leader>lf", function()
|
|
util.format({
|
|
buf = bufnr,
|
|
cmd = { "beautysh", "-" },
|
|
output = "stdout",
|
|
})
|
|
end, { buffer = bufnr })
|
|
end,
|
|
}
|