Giter VIP home page Giter VIP logo

Comments (5)

CharlesChiuGit avatar CharlesChiuGit commented on June 27, 2024

@ClSlaid might have some tips for u

from nvimdots.

Kanna-jiahe avatar Kanna-jiahe commented on June 27, 2024

I try configure rust-tools.nvim with this code

lang["mrcjkb/rustaceanvim"] = {
	lazy = false,
	ft = "rust",
	version = "^4",
	config = require("lang.rust"),
	dependencies = { "nvim-lua/plenary.nvim" },
}
lang["simrat39/rust-tools.nvim"] = {
	lazy = true,
	local rt = require("rust-tools")

        rt.setup({
            server = {
                rust = {
                    imports = {
                        granularity = {
                            group = "module",
                        },
                        prefix = "self",
                    },
                    cargo = {
                        buildScripts = {
                            enable = true,
                        },
                    },
                    procMacro = {
                        enable = true,
                    },
                    inlayHints = {
                        bindingModeHints = {
                            enable = true,
                        },
                        chainingHints = {
                            enable = true,
                        },
                        closingBraceHints = {
                            enable = true,
                        },
                    },
                },
            },
}

will be support inlayHints for Rust Types.

but i don't know how to configure dap-client for rust.

from nvimdots.

RivTian avatar RivTian commented on June 27, 2024

The Rust variable type display might be viewed using K.
move cursor to variable,now,push K. (capital letter)

image

from nvimdots.

ayamir avatar ayamir commented on June 27, 2024

cargo build first and debug with the correct binary path.

image
image

from nvimdots.

Kanna-jiahe avatar Kanna-jiahe commented on June 27, 2024

cargo build first and debug with the correct binary path.

image image

It turns out that I did not perform the debugging steps properly. Thanks, this helps me a lot

from nvimdots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.