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")