Skip to content

doesn't work with hyprls #83

@DaBuddhalint

Description

@DaBuddhalint

Did you check the Readme and existing issues?

  • I have read the Readme of inc-rename.nvim
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of inc-rename.nvim

Neovim version (output of nvim -v)

NVIM v0.11.1

Operating system / version

Arch Linux, Kernel 6.14.9-arch1-1

Output of :LspInfo

==============================================================================
vim.lsp: require("vim.lsp.health").check()

  • LSP log level : WARN
  • Log path: /home/balint/.local/state/nvim/lsp.log
  • Log size: 13489 KB

vim.lsp: Active Clients ~

  • hyprls (id: 1)
    • Version: ? (no serverInfo.version response)
    • Root directory: nil
    • Command: { "hyprls", "--stdio" }
    • Settings: {}
    • Attached buffers: 1

vim.lsp: Enabled Configurations ~

  • astro:

    • before_init: <function @/home/balint/.local/share/nvim/lazy/mason-lspconfig.nvim/lua/mason-lspconfig/lsp/astro.lua:2>
    • cmd: { "astro-ls", "--stdio" }
    • filetypes: astro
    • init_options: {
      typescript = {}
      }
    • root_markers: package.json, tsconfig.json, jsconfig.json, .git
  • bashls:

    • cmd: { "bash-language-server", "start" }
    • filetypes: bash, sh
    • root_markers: .git
    • settings: {
      bashIde = {
      globPattern = "*@(.sh|.inc|.bash|.command)"
      }
      }
  • biome:

    • cmd: { "biome", "lsp-proxy" }
    • filetypes: astro, css, graphql, javascript, javascriptreact, json, jsonc, svelte, typescript, typescript.tsx, typescriptreact, vue
    • root_dir: <function @/home/balint/.local/share/nvim/lazy/nvim-lspconfig/lsp/biome.lua:29>
    • workspace_required: true
  • cssls:

    • cmd: { "vscode-css-language-server", "--stdio" }
    • filetypes: css, scss, less
    • init_options: {
      provideFormatter = true
      }
    • root_markers: package.json, .git
    • settings: {
      css = {
      validate = true
      },
      less = {
      validate = true
      },
      scss = {
      validate = true
      }
      }
  • html:

    • cmd: { "vscode-html-language-server", "--stdio" }
    • filetypes: html, templ
    • init_options: {
      configurationSection = { "html", "css", "javascript" },
      embeddedLanguages = {
      css = true,
      javascript = true
      },
      provideFormatter = true
      }
    • root_markers: package.json, .git
    • settings: {}
  • hyprls:

    • cmd: { "hyprls", "--stdio" }
    • filetypes: hyprlang
    • root_markers: .git
  • jsonls:

    • cmd: { "vscode-json-language-server", "--stdio" }
    • filetypes: json, jsonc
    • init_options: {
      provideFormatter = true
      }
    • root_markers: .git
  • lemminx:

    • cmd: { "lemminx" }
    • filetypes: xml, xsd, xsl, xslt, svg
    • root_markers: .git
  • lua_ls:

    • cmd: { "lua-language-server" }
    • filetypes: lua
    • root_markers: .luarc.json, .luarc.jsonc, .luacheckrc, .stylua.toml, stylua.toml, selene.toml, selene.yml, .git
  • rust_analyzer:

    • before_init: <function @/home/balint/.local/share/nvim/lazy/nvim-lspconfig/lsp/rust_analyzer.lua:108>
    • capabilities: {
      experimental = {
      serverStatusNotification = true
      }
      }
    • cmd: { "rust-analyzer" }
    • filetypes: rust
    • on_attach: <function @/home/balint/.local/share/nvim/lazy/nvim-lspconfig/lsp/rust_analyzer.lua:114>
    • root_dir: <function @/home/balint/.local/share/nvim/lazy/nvim-lspconfig/lsp/rust_analyzer.lua:57>
  • slint_lsp:

    • cmd: { "slint-lsp" }
    • filetypes: slint
    • root_markers: .git
  • taplo:

    • cmd: { "taplo", "lsp", "stdio" }
    • filetypes: toml
    • root_markers: .taplo.toml, taplo.toml, .git
  • yamlls:

    • cmd: { "yaml-language-server", "--stdio" }
    • filetypes: yaml, yaml.docker-compose, yaml.gitlab, yaml.helm-values
    • root_markers: .git
    • settings: {
      redhat = {
      telemetry = {
      enabled = false
      }
      }
      }

vim.lsp: File Watcher ~

  • file watching "(workspace/didChangeWatchedFiles)" disabled on all clients

vim.lsp: Position Encodings ~

  • No buffers contain mixed position encodings

Describe the bug

Trying to rename stuff in any hypr config files with hyprls gives this error:
Image

Steps to reproduce

  1. Setup hyprls via lsp-config
  2. Try renamic with inc-rename

Expected behavior

Renaming works with the LS

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions