diff --git a/init.lua b/init.lua index 6ac17bb1..6aeb43d5 100644 --- a/init.lua +++ b/init.lua @@ -563,11 +563,9 @@ require('mason-lspconfig').setup() -- If you want to override the default filetypes that your language server will attach to you can -- define the property 'filetypes' to the map in question. local servers = { - --[[ removed because of rust-tools rust_analyzer = { filetypes = { 'rust' }, }, - ]]-- lua_ls = { Lua = { diff --git a/lua/custom/plugins/rust.lua b/lua/custom/plugins/rust.lua index 7827f114..e6bdca31 100644 --- a/lua/custom/plugins/rust.lua +++ b/lua/custom/plugins/rust.lua @@ -4,10 +4,29 @@ -- See the kickstart.nvim README for more information return { { - "rust-lang/rust.vim", - ft = "rust", + 'rust-lang/rust.vim', + ft = 'rust', init = function () vim.g.rustfmt_autosave = 1 end }, + { + 'simrat39/rust-tools.nvim', + ft = 'rust', + dependencies = 'neovim/nvim-lspconfig', + --opts = function () + -- return require 'custom.configs.rust-tools' + --end, + config = function(_, opts) + require('rust-tools').setup(opts) + end + }, + { + "mfussenegger/nvim-dap", + --[[ + init = function() + require("core.utils").load_mappings("dap") + end + ]]-- + }, }