This commit is contained in:
Snoweuph 2024-05-31 20:34:05 +02:00
parent 4cda1e2780
commit 87764d8fdd
Signed by: Snoweuph
GPG key ID: A494330694B208EF
3 changed files with 12 additions and 24 deletions

View file

@ -11,3 +11,7 @@ gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
# Packages
neovim lua gcc curl wget git unzip tar gzip ripgrep php composer go nodejs npm delve stylua
# NPM
npm install -g @fsouza/prettierd
npm install -g eslint_d

View file

@ -1,25 +1,7 @@
return {
"leoluz/nvim-dap-go",
config = function()
require("dap-go").setup({
delve = {
cwd = require("utils.finder").find_project_dir(
"go.mod",
3,
{
"src",
"app",
"pkg"
},
{
"test"
},
true
)
}
})
local dir = require("utils.finder").find_project_dir("go.mod", 3, { "src", "app", "pkg" }, { "test" }, true)
require("dap-go").setup({ delve = { cwd = dir } })
end,
}

View file

@ -25,7 +25,9 @@ end
function LSP.formatter(null_ls)
return {
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.prettier.with({
command = "prettierd"
}),
null_ls.builtins.diagnostics.spectral,
null_ls.builtins.code_actions.refactoring,
null_ls.builtins.code_actions.proselint,