From 162f1689c620c79d822f9604db398f5c9ff0ec91 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 2 Dec 2021 20:32:46 +0100 Subject: Disabling lsp diagnostics sign in gutter neovim --- config/nvim/lua/plugins.lua | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'config') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 6b57eee..7124738 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -11,14 +11,14 @@ return require('packer').startup(function() -- nvim lsp configuration use { 'neovim/nvim-lspconfig', - ft = {'rust', 'python', 'c', 'cpp'}, - config = function() - local lspconfig = require('lspconfig') - lspconfig.clangd.setup {} - -- need python-lsp-server and pyls-flake8 - lspconfig.pylsp.setup {} - end, - run = 'pip3 install python-lsp-server pyls-flake8', + -- ft = {'rust', 'python', 'c', 'cpp'}, + -- config = function() + -- local lspconfig = require('lspconfig') + -- lspconfig.clangd.setup {} + -- -- need python-lsp-server and pyls-flake8 + -- lspconfig.pylsp.setup {} + -- -- lspconfig.rust_analyser.setup {} + -- end, } -- rust lsp (needs rust-analyser) @@ -27,12 +27,10 @@ return require('packer').startup(function() requires = {'neovim/nvim-lspconfig'}, ft = {'rust'}, config = function() - require('rust-tools').setup { - tools = { - inlay_hints = { - -- only_current_line = true, - }, - }, + require('rust-tools').setup {} + vim.diagnostic.config { + signs = false, + update_in_insert = false, } end } -- cgit