diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-12-02 20:32:46 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-12-02 20:32:46 +0100 |
| commit | 162f1689c620c79d822f9604db398f5c9ff0ec91 (patch) | |
| tree | 16b579fcc676377b0461fe2d35e2742018c4222c /config | |
| parent | 21aced73025d56d0a8375053043aa3f977e9c46c (diff) | |
| download | dotfiles-162f1689c620c79d822f9604db398f5c9ff0ec91.tar.gz dotfiles-162f1689c620c79d822f9604db398f5c9ff0ec91.tar.bz2 dotfiles-162f1689c620c79d822f9604db398f5c9ff0ec91.zip | |
Disabling lsp diagnostics sign in gutter neovim
Diffstat (limited to 'config')
| -rw-r--r-- | config/nvim/lua/plugins.lua | 26 |
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 } |
