diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-07-26 13:09:47 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-07-26 13:09:47 +0200 |
| commit | 5104ec63c52beb3c7dafe54c1a0f45d38686e4c3 (patch) | |
| tree | 99a2ea6e5649e4e451e313d6b3bb966137ed2859 | |
| parent | 75927ccaf318b8d2eb4eeadd8f9e2189ba17db94 (diff) | |
| download | nvim-conf-5104ec63c52beb3c7dafe54c1a0f45d38686e4c3.tar.gz nvim-conf-5104ec63c52beb3c7dafe54c1a0f45d38686e4c3.zip | |
more small improvements
| -rw-r--r-- | after/plugin/hydra.lua | 2 | ||||
| -rw-r--r-- | after/plugin/lsp.lua | 2 | ||||
| -rw-r--r-- | after/plugin/null-ls.lua | 8 | ||||
| -rw-r--r-- | lua/alpha/dap.lua | 9 | ||||
| -rw-r--r-- | lua/alpha/plugins.lua | 6 |
5 files changed, 17 insertions, 10 deletions
diff --git a/after/plugin/hydra.lua b/after/plugin/hydra.lua index a43c72c..031469f 100644 --- a/after/plugin/hydra.lua +++ b/after/plugin/hydra.lua @@ -7,7 +7,7 @@ end hydra({ name = "windows", mode = "n", - body = "<C-w>", + body = "<leader>w", heads = { { 'l', '<C-w>l' }, { 'h', '<C-w>h' }, diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index d58cd46..01a9da0 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -11,7 +11,7 @@ end local filetype_attach = setmetatable({ go = format_on_save, - php = format_on_save, + -- php = format_on_save, -- lua = format_on_save, gdscript = function(_) end, diff --git a/after/plugin/null-ls.lua b/after/plugin/null-ls.lua index 47c5710..c7f78a4 100644 --- a/after/plugin/null-ls.lua +++ b/after/plugin/null-ls.lua @@ -8,10 +8,10 @@ local php_actions = require("php-code-actions") local sources = { null_ls.builtins.code_actions.gitsigns, null_ls.builtins.formatting.stylua, - null_ls.builtins.diagnostics.eslint, - null_ls.builtins.diagnostics.phpstan, - null_ls.builtins.formatting.phpcsfixer, - null_ls.builtins.formatting.pint, + -- null_ls.builtins.diagnostics.eslint, + -- null_ls.builtins.diagnostics.phpstan, + -- null_ls.builtins.formatting.phpcsfixer, + -- null_ls.builtins.formatting.pint, null_ls.builtins.diagnostics.golangci_lint, -- null_ls.builtins.formatting.goimports, null_ls.builtins.formatting.jq, diff --git a/lua/alpha/dap.lua b/lua/alpha/dap.lua index 1ee598a..1a4fc6f 100644 --- a/lua/alpha/dap.lua +++ b/lua/alpha/dap.lua @@ -64,7 +64,7 @@ local hydra = require("hydra") local hint = [[ Nvim DAP _d_: Start/Continue _j_: StepOver _k_: StepOut _l_: StepInto ^ - _bp_: Toogle Breakpoint _cb_: Conditional Breakpoint ^ + _bp_: Toogle Breakpoint _bc_: Conditional Breakpoint ^ _c_: Run To Cursor _tt_: Go Debug Test _s_: Start _x_: Stop Debbuging ^^ _<Esc>_ @@ -84,7 +84,10 @@ hydra({ body = "<leader>d", heads = { { "d", dap.continue }, - { "s", dapui.open }, + { "s", function () + dap.continue() + dapui.open({}) + end }, { "bp", dap.toggle_breakpoint }, { "l", dap.step_into }, { "j", dap.step_over }, @@ -92,7 +95,7 @@ hydra({ { "c", dap.run_to_cursor }, { "tt", dap_go.debug_test }, { - "cb", + "bc", function() vim.ui.input({ prompt = "Condition: " }, function(condition) dap.toggle_breakpoint(condition) diff --git a/lua/alpha/plugins.lua b/lua/alpha/plugins.lua index cf44fd3..2488042 100644 --- a/lua/alpha/plugins.lua +++ b/lua/alpha/plugins.lua @@ -94,7 +94,11 @@ return require("packer").startup(function(use) "jose-elias-alvarez/null-ls.nvim", }) - use({ "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim" }) + -- Instalation of LSP/Debuggers/Other + use({ + "williamboman/mason.nvim", + "williamboman/mason-lspconfig.nvim", + }) use({ "nvim-telescope/telescope.nvim", |