ltex-ls.nvim icon indicating copy to clipboard operation
ltex-ls.nvim copied to clipboard

Broken lspconfig integration

Open thetic opened this issue 9 months ago • 4 comments

5af545c34f455584e0d4bf0e538547bb42f5dc0e seems to have broken.

Failed to run config for ltex-ls.nvim

...share/nvim/lazy/nvim-lspconfig/lua/lspconfig/configs.lua:85: attempt to index local 'v' (a function value)

# stacktrace:
  - /ltex-ls.nvim/lua/ltex-ls/init.lua:204 in setup
  - /usr/share/nvim/runtime/filetype.lua:36
  - /usr/share/nvim/runtime/filetype.lua:35
  - vim/_editor.lua:0
  - /telescope.nvim/lua/telescope/actions/set.lua:200 in run_replace_or_original
  - /telescope.nvim/lua/telescope/actions/mt.lua:65 in run_replace_or_original
  - /telescope.nvim/lua/telescope/actions/mt.lua:65 in run_replace_or_original
  - /telescope.nvim/lua/telescope/actions/mt.lua:65 in key_func
  - /telescope.nvim/lua/telescope/mappings.lua:290

I'm on 94513a5b246cf32a8f87ca714af50911df63351c lspconfig.

My lazy config:

return {
    'vigoux/ltex-ls.nvim',
    ft = {
        'bib',
        'gitcommit',
        'latex',
        'markdown',
        'rst',
        'tex',
        'text',
    },
    dependencies = 'neovim/nvim-lspconfig',
    opts = {
        filetypes = {
            'bib',
            'gitcommit',
            'latex',
            'markdown',
            'rst',
            'tex',
            'text',
        },
        use_spellfile = true,
        settings = {
            ltex = {
                language = 'auto',
                additionalRules = {
                    enablePickyRules = true,
                    motherTongue = 'en',
                },
            },
        },
    },
}

thetic avatar May 13 '24 03:05 thetic

Hello, it gives me exactly the same problem with NeoVim, while using the quickstart neovim configuration file.

Best regards, Joao Carvalho

joaocarvalhoopen avatar May 15 '24 13:05 joaocarvalhoopen

Hi, can you give your neovim version here ?

The latest commits use v0.10 specific features !

vigoux avatar May 22 '24 11:05 vigoux

NVIM v0.9.5

Thank you,

joaocarvalhoopen avatar May 22 '24 12:05 joaocarvalhoopen

This occurs for me on 0.10.0

Failed to run `config` for ltex-ls.nvim

...share/nvim/lazy/nvim-lspconfig/lua/lspconfig/configs.lua:85: attempt to index local 'v' (a function value)

# stacktrace:
  - /ltex-ls.nvim/lua/ltex-ls/init.lua:204 _in_ **setup**
  - /usr/share/nvim/runtime/filetype.lua:36
  - /usr/share/nvim/runtime/filetype.lua:35

thetic avatar May 23 '24 01:05 thetic