From 87764d8fddb7b1b90a3daca6af5aad6dcb3f4566 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Fri, 31 May 2024 20:34:05 +0200 Subject: [PATCH] Cleanup --- .config/nvim/dependencies.dnf.txt | 4 +++ .../plugins/editor/debugging/debugging_go.lua | 28 ++++--------------- .../language_server_generic.lua | 4 ++- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/.config/nvim/dependencies.dnf.txt b/.config/nvim/dependencies.dnf.txt index c10e926..f544f0b 100644 --- a/.config/nvim/dependencies.dnf.txt +++ b/.config/nvim/dependencies.dnf.txt @@ -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 diff --git a/.config/nvim/lua/plugins/editor/debugging/debugging_go.lua b/.config/nvim/lua/plugins/editor/debugging/debugging_go.lua index a24058a..c305804 100644 --- a/.config/nvim/lua/plugins/editor/debugging/debugging_go.lua +++ b/.config/nvim/lua/plugins/editor/debugging/debugging_go.lua @@ -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 - ) - } - }) - end, + "leoluz/nvim-dap-go", + config = function() + local dir = require("utils.finder").find_project_dir("go.mod", 3, { "src", "app", "pkg" }, { "test" }, true) + require("dap-go").setup({ delve = { cwd = dir } }) + end, } - - diff --git a/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua b/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua index ce769d3..81e4931 100644 --- a/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua +++ b/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua @@ -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,