forked from Snoweuph/Dotfiles
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
|
# Packages
|
||||||
neovim lua gcc curl wget git unzip tar gzip ripgrep php composer go nodejs npm delve stylua
|
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 {
|
return {
|
||||||
"leoluz/nvim-dap-go",
|
"leoluz/nvim-dap-go",
|
||||||
config = function()
|
config = function()
|
||||||
|
local dir = require("utils.finder").find_project_dir("go.mod", 3, { "src", "app", "pkg" }, { "test" }, true)
|
||||||
require("dap-go").setup({
|
require("dap-go").setup({ delve = { cwd = dir } })
|
||||||
delve = {
|
|
||||||
cwd = require("utils.finder").find_project_dir(
|
|
||||||
"go.mod",
|
|
||||||
3,
|
|
||||||
{
|
|
||||||
"src",
|
|
||||||
"app",
|
|
||||||
"pkg"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test"
|
|
||||||
},
|
|
||||||
true
|
|
||||||
)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,9 @@ end
|
||||||
|
|
||||||
function LSP.formatter(null_ls)
|
function LSP.formatter(null_ls)
|
||||||
return {
|
return {
|
||||||
null_ls.builtins.formatting.prettier,
|
null_ls.builtins.formatting.prettier.with({
|
||||||
|
command = "prettierd"
|
||||||
|
}),
|
||||||
null_ls.builtins.diagnostics.spectral,
|
null_ls.builtins.diagnostics.spectral,
|
||||||
null_ls.builtins.code_actions.refactoring,
|
null_ls.builtins.code_actions.refactoring,
|
||||||
null_ls.builtins.code_actions.proselint,
|
null_ls.builtins.code_actions.proselint,
|
||||||
|
|
Loading…
Reference in a new issue