Remove .config/nvim/lua/plugins/none-ls.lua

Remove .config/nvim/lua/plugins/null-ls.lua
Update .zshrc
This commit is contained in:
Kasper Juul Hermansen 2024-03-03 13:17:11 +01:00
parent b57eaa435a
commit a01c84645e
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
3 changed files with 4 additions and 126 deletions

View File

@ -1,63 +0,0 @@
-- local h = require("-ls.helpers")
-- local methods = require("none-ls.methods")
-- local u = require("none-ls.utils")
-- local FORMATTING = methods.internal.FORMATTING
-- local leptosfmt = h.make_builtin({
-- name = "leptosfmt",
-- meta = {
-- url = "https://github.com/bram209/leptosfmt",
-- description = "A formatter for the leptos view! macro"
-- },
-- method = FORMATTING,
-- filetypes = { "rust" },
-- generator_opts = {
-- command = "leptosfmt",
-- args = { "--quiet", "--stdin" },
-- to_stdin = true,
-- },
-- factory = h.formatter_factory,
-- })
return {
"nvimtools/none-ls.nvim",
event = "BufReadPre",
dependencies = { "mason.nvim" },
opts = function()
local nls = require("null-ls")
return {
sources = {
nls.builtins.formatting.terraform_fmt,
--nls.builtins.formatting.yamlfmt,
nls.builtins.formatting.deno_fmt.with({
filetypes = { "markdown" }
}),
nls.builtins.formatting.golines,
nls.builtins.formatting.goimports_reviser,
nls.builtins.formatting.goimports,
nls.builtins.formatting.gofumpt,
nls.builtins.formatting.taplo,
nls.builtins.formatting.prettierd.with({
filetypes = { "graphql" }
}),
nls.builtins.formatting.shfmt,
nls.builtins.code_actions.gitsigns,
nls.builtins.code_actions.refactoring,
nls.builtins.formatting.rustfmt.with({
extra_args = { "--edition=2021" },
filetypes = { "rust" }
}),
-- leptosfmt.with({
-- condition = function(utils)
-- return utils.root_has_file({ "leptosfmt.toml" })
-- end,
-- }),
nls.builtins.diagnostics.revive,
nls.builtins.code_actions.impl,
nls.builtins.code_actions.refactoring,
},
}
end,
}

View File

@ -1,63 +0,0 @@
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local u = require("null-ls.utils")
local FORMATTING = methods.internal.FORMATTING
local leptosfmt = h.make_builtin({
name = "leptosfmt",
meta = {
url = "https://github.com/bram209/leptosfmt",
description = "A formatter for the leptos view! macro"
},
method = FORMATTING,
filetypes = { "rust" },
generator_opts = {
command = "leptosfmt",
args = { "--quiet", "--stdin" },
to_stdin = true,
},
factory = h.formatter_factory,
})
return {
"jose-elias-alvarez/null-ls.nvim",
event = "BufReadPre",
dependencies = { "mason.nvim" },
opts = function()
local nls = require("null-ls")
return {
sources = {
nls.builtins.formatting.terraform_fmt,
--nls.builtins.formatting.yamlfmt,
nls.builtins.formatting.deno_fmt.with({
filetypes = { "markdown" }
}),
nls.builtins.formatting.golines,
nls.builtins.formatting.goimports_reviser,
nls.builtins.formatting.goimports,
nls.builtins.formatting.gofumpt,
nls.builtins.formatting.taplo,
nls.builtins.formatting.prettierd.with({
filetypes = { "graphql" }
}),
nls.builtins.formatting.shfmt,
nls.builtins.code_actions.gitsigns,
nls.builtins.code_actions.refactoring,
nls.builtins.formatting.rustfmt.with({
extra_args = { "--edition=2021" },
filetypes = { "rust" }
}),
leptosfmt.with({
condition = function(utils)
return utils.root_has_file({ "leptosfmt.toml" })
end,
}),
nls.builtins.diagnostics.revive,
nls.builtins.code_actions.impl,
nls.builtins.code_actions.refactoring,
},
}
end,
}

View File

@ -172,4 +172,8 @@ export GITEA_ORG="kjuulh"
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export GITHUB_COMMITTER_EMAIL=contact@kjuulh
export GITHUB_COMMITTER_NAME=kjuulh
export SHUTTLE_EXTENSIONS_REGISTRY="git=git@github.com:kjuulh/shuttle-extensions.git"
#zprof