aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-12-02 20:32:46 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-12-02 20:32:46 +0100
commit162f1689c620c79d822f9604db398f5c9ff0ec91 (patch)
tree16b579fcc676377b0461fe2d35e2742018c4222c
parent21aced73025d56d0a8375053043aa3f977e9c46c (diff)
downloaddotfiles-162f1689c620c79d822f9604db398f5c9ff0ec91.tar.gz
dotfiles-162f1689c620c79d822f9604db398f5c9ff0ec91.tar.bz2
dotfiles-162f1689c620c79d822f9604db398f5c9ff0ec91.zip
Disabling lsp diagnostics sign in gutter neovim
-rw-r--r--config/nvim/lua/plugins.lua26
1 files changed, 12 insertions, 14 deletions
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
}