diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-09-20 17:45:11 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-09-20 17:45:44 +0200 |
| commit | 7701e1e3ebf73c58d2636a0707c08dca459a15ff (patch) | |
| tree | e2972ebb504088f4cc65cbbae699775c3f75c070 /after/plugin | |
| parent | 0dbf8150681d38907a29a4aa1893faa3bda4b9c6 (diff) | |
| download | nvim-conf-7701e1e3ebf73c58d2636a0707c08dca459a15ff.tar.gz nvim-conf-7701e1e3ebf73c58d2636a0707c08dca459a15ff.zip | |
disable hydra since was not working for the window as I was expecting
Diffstat (limited to 'after/plugin')
| -rw-r--r-- | after/plugin/hydra.lua | 44 | ||||
| -rw-r--r-- | after/plugin/lsp.lua | 13 | ||||
| -rw-r--r-- | after/plugin/null-ls.lua | 1 |
3 files changed, 26 insertions, 32 deletions
diff --git a/after/plugin/hydra.lua b/after/plugin/hydra.lua index 64088ab..2538f68 100644 --- a/after/plugin/hydra.lua +++ b/after/plugin/hydra.lua @@ -4,28 +4,28 @@ if not ok then end -- Windows management, move and resize -hydra({ - name = "windows", - mode = "n", - body = "<C-w>", - heads = { - { "l", "<C-w>l" }, - { "h", "<C-w>h" }, - { "j", "<C-w>j" }, - { "k", "<C-w>k" }, - { "q", "<C-w>q" }, - { "o", "<C-w>o" }, - { "L", "<C-w>2>" }, - { "H", "<C-w>2<" }, - { "J", "<C-w>2-" }, - { "K", "<C-w>2+" }, - -- { "<C-l>", "<C-w>L" }, - -- { "<C-h>", "<C-w>H" }, - -- { "<C-j>", "<C-w>J" }, - -- { "<C-k>", "<C-w>K" }, - { "=", "<C-w>=" }, - }, -}) +-- hydra({ +-- name = "windows", +-- mode = "n", +-- body = "<C-w>", +-- heads = { +-- { "l", "<C-w>l" }, +-- { "h", "<C-w>h" }, +-- { "j", "<C-w>j" }, +-- { "k", "<C-w>k" }, +-- { "q", "<C-w>q" }, +-- { "o", "<C-w>o" }, +-- { "L", "<C-w>2>" }, +-- { "H", "<C-w>2<" }, +-- { "J", "<C-w>2-" }, +-- { "K", "<C-w>2+" }, +-- -- { "<C-l>", "<C-w>L" }, +-- -- { "<C-h>", "<C-w>H" }, +-- -- { "<C-j>", "<C-w>J" }, +-- -- { "<C-k>", "<C-w>K" }, +-- { "=", "<C-w>=" }, +-- }, +-- }) -- want a way to run make commands -- Make commands runs good but the output is not good diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 981346c..479e5c2 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -55,8 +55,8 @@ vim.keymap.set("n", "<leader>vf", function() return vim.lsp.buf.format({ async = true }) end, {}) -vim.keymap.set("n", "<leader>vn", vim.diagnostic.goto_next, { buffer = 0 }) -vim.keymap.set("n", "<leader>vp", vim.diagnostic.goto_prev, { buffer = 0 }) +vim.keymap.set("n", "<leader>vn", vim.diagnostic.goto_next, {}) +vim.keymap.set("n", "<leader>vp", vim.diagnostic.goto_prev, {}) local function on_attach(client, bufnr) local filetype = vim.api.nvim_buf_get_option(0, "filetype") @@ -81,13 +81,6 @@ local function on_attach(client, bufnr) filetype_attach[filetype](client,bufnr) end --- vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { --- underline = true, --- update_in_insert = false, --- virtual_text = { spacing = 2, prefix = "●" }, --- severity_sort = true, --- }) - vim.diagnostic.config({ virtual_text = false, }) @@ -103,6 +96,8 @@ local lsp_flags = { debounce_text_changes = 150, } +-- Server configurations + require("lspconfig")["rust_analyzer"].setup({ on_attach = on_attach, flags = lsp_flags, diff --git a/after/plugin/null-ls.lua b/after/plugin/null-ls.lua index b530724..450f484 100644 --- a/after/plugin/null-ls.lua +++ b/after/plugin/null-ls.lua @@ -11,7 +11,6 @@ local sources = { -- null_ls.builtins.diagnostics.eslint, null_ls.builtins.diagnostics.phpstan.with({ command = "./bin/phpstan", - to_temp_file= false, }), null_ls.builtins.diagnostics.phpcs.with({ command = "./bin/phpcs", |