From ba6e9cd6e7757c3e8770f793abbed91b832572f8 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 15 Oct 2023 22:59:30 +0200 Subject: [PATCH] =?UTF-8?q?Suppression=20:=20configuration=20du=20LSP=20en?= =?UTF-8?q?=20vue=20de=20sa=20r=C3=A9=C3=A9criture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/nvim/init.lua | 2 +- config/nvim/lua/lsp/init.lua | 6 ------ config/nvim/lua/lsp/rust_analyzer.lua | 21 --------------------- config/nvim/lua/plugins/init.lua | 6 +++--- 4 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 config/nvim/lua/lsp/rust_analyzer.lua diff --git a/config/nvim/init.lua b/config/nvim/init.lua index abdb550..f390d12 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -2,6 +2,6 @@ vim.cmd [[ source ~/.vimrc ]] -- Modules -require('core') require('plugins') +require('core') require('lsp') diff --git a/config/nvim/lua/lsp/init.lua b/config/nvim/lua/lsp/init.lua index fa209f6..9ddc3e4 100644 --- a/config/nvim/lua/lsp/init.lua +++ b/config/nvim/lua/lsp/init.lua @@ -1,7 +1 @@ nvim_lsp = require'lspconfig' - -on_attach = function(client) - require'completion'.on_attach(client) -end - -require('lsp.rust_analyzer') diff --git a/config/nvim/lua/lsp/rust_analyzer.lua b/config/nvim/lua/lsp/rust_analyzer.lua deleted file mode 100644 index a664667..0000000 --- a/config/nvim/lua/lsp/rust_analyzer.lua +++ /dev/null @@ -1,21 +0,0 @@ -nvim_lsp.rust_analyzer.setup({ - on_attach=on_attach, - settings = { - ["rust-analyzer"] = { - imports = { - granularity = { - group = "module", - }, - prefix = "self", - }, - cargo = { - buildScripts = { - enable = true, - }, - }, - procMacro = { - enable = true - }, - } - } -}) diff --git a/config/nvim/lua/plugins/init.lua b/config/nvim/lua/plugins/init.lua index 60310ac..97ae8ef 100644 --- a/config/nvim/lua/plugins/init.lua +++ b/config/nvim/lua/plugins/init.lua @@ -1,3 +1,3 @@ -require("plugins.nvim_web_devicons") -require("plugins.lualine") -require("plugins.nvim_tree") +--require("plugins.nvim_web_devicons") +--require("plugins.lualine") +--require("plugins.nvim_tree")