Skip to content

Rust_Analyzer doesn't provide LSP completion #86

Closed
@GustavoJCL

Description

@GustavoJCL

Hi, when I try to solve any problem using Rust the lsp completion doesn't work, there a capture of another project of rust:
image
but in leetcode.nvim it didn't work:

image

there the LspInfo of this problem, it seems the standalone mode is running and the formatting also works, but the issue is just with completion
image
this is my config of leetcode.nvim

{
    "kawre/leetcode.nvim",
    lazy = leet_arg ~= vim.fn.argv()[1],
    build = ":TSUpdate html",
    dependencies = {
      "nvim-telescope/telescope.nvim",
      "nvim-lua/plenary.nvim", -- required by telescope
      "MunifTanjim/nui.nvim",

      -- optional
      "nvim-treesitter/nvim-treesitter",
      "rcarriga/nvim-notify",
      "nvim-tree/nvim-web-devicons",
    },
    opts = {
      arg = leet_arg,
      lang = "rust",
      -- directory = "/media/gus/proyectos/leetcode/",
      ---@type boolean
      image_support = true,
      ---@type lc.storage
      storage = {
        home = vim.fn.stdpath "data" .. "/leetcode",
        cache = vim.fn.stdpath "cache" .. "/leetcode",
      },
      ---@type boolean
      logging = true,
      ---@type table<string, boolean>
      plugins = {
        non_standalone = false,
      },

      console = {
        open_on_runcode = true, ---@type boolean

        dir = "row", ---@type lc.direction

        size = { ---@type lc.size
          width = "90%",
          height = "75%",
        },

        result = {
          size = "60%", ---@type lc.size
        },

        testcase = {
          virt_text = true, ---@type boolean

          size = "40%", ---@type lc.size
        },
      },

      description = {
        position = "left", ---@type lc.position
        width = "40%", ---@type lc.size
        show_stats = true, ---@type boolean
      },
      injector = {}, ---@type table<lc.lang, lc.inject>
      cache = {
        update_interval = 60 * 60 * 24 * 7, ---@type integer 7 days
      },
      keys = {
        toggle = { "q" }, ---@type string|string[]
        confirm = { "<CR>" }, ---@type string|string[]

        reset_testcases = "r", ---@type string
        use_testcase = "U", ---@type string
        focus_testcases = "H", ---@type string
        focus_result = "L", ---@type string
      },
    },
  },

I tried with other languages like c/c++ and java, in this languages it works fine:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions