feat: add rust-tools plugin
This commit is contained in:
parent
f42e3c31b5
commit
5abe595986
@ -193,6 +193,9 @@ return require('packer').startup(function(use)
|
||||
-- automatic pairs
|
||||
use({"Raimondi/delimitMate"})
|
||||
|
||||
-- rust tools
|
||||
use({"simrat39/rust-tools.nvim", requires = {{"neovim/nvim-lspconfig"}}})
|
||||
|
||||
-- markdown preview
|
||||
use({'iamcco/markdown-preview.nvim'})
|
||||
|
||||
|
@ -142,5 +142,13 @@ lsp_installer.on_server_ready(function(server)
|
||||
extra_server_opts[server.name](opts)
|
||||
end
|
||||
|
||||
if server.name == "rust_analyzer" then
|
||||
require("rust-tools").setup({
|
||||
server = vim.tbl_deep_extend("force", server:get_default_options(),
|
||||
opts)
|
||||
})
|
||||
server:attach_buffers()
|
||||
else
|
||||
server:setup(opts)
|
||||
end
|
||||
end)
|
||||
|
Reference in New Issue
Block a user