vigoux / ltex-ls.nvim

Enhanced integration of ltex-ls for neovim
BSD 2-Clause "Simplified" License
55 stars 7 forks source link

Broken lspconfig integration #5

Closed thetic closed 3 weeks ago

thetic commented 4 months ago

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',
                },
            },
        },
    },
}
joaocarvalhoopen commented 4 months ago

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

Best regards, Joao Carvalho

vigoux commented 4 months ago

Hi, can you give your neovim version here ?

The latest commits use v0.10 specific features !

joaocarvalhoopen commented 4 months ago

NVIM v0.9.5

Thank you,

thetic commented 4 months ago

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