From 7701e1e3ebf73c58d2636a0707c08dca459a15ff Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 20 Sep 2022 17:45:11 +0200 Subject: disable hydra since was not working for the window as I was expecting --- after/plugin/lsp.lua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'after/plugin/lsp.lua') 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", "vf", function() return vim.lsp.buf.format({ async = true }) end, {}) -vim.keymap.set("n", "vn", vim.diagnostic.goto_next, { buffer = 0 }) -vim.keymap.set("n", "vp", vim.diagnostic.goto_prev, { buffer = 0 }) +vim.keymap.set("n", "vn", vim.diagnostic.goto_next, {}) +vim.keymap.set("n", "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, -- cgit v1.2.3