Cleanup
This commit is contained in:
parent
4cda1e2780
commit
87764d8fdd
3 changed files with 12 additions and 24 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue