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

Ellipsis in markdown link

Open ModProg opened this issue 1 year ago • 2 comments

Describe the bug Shows hint to replace ... with inside Markdown links.

Expected behavior More or less, all errors should be disabled inside links.

Sample document

<http://example.com/...>

[link](http://example.com/...)

[link]: http://example.com/...

Version information List here the version information of the relevant software.

  • Operating system: Arch Linux
  • ltex-ls: 15.2.0
  • Java: 17.0.7

Additional context/information This probably applies to all markup languages, i.e., LaTeX currently and something like Typst in the future.

ModProg avatar Jul 20 '23 09:07 ModProg

@ModProg were you able to get ltex running inside markdown files? Because I wasn't :/ Do you mind sharing your config with me? :D

Myzel394 avatar Sep 28 '23 18:09 Myzel394

@ModProg were you able to get ltex running inside markdown files? Because I wasn't :/ Do you mind sharing your config with me? :D

lspconfig.ltex.setup {
    capabilities = capabilities,
    filetypes = { "bib", "gitcommit", "markdown", "org", "plaintex", "rst", "rnoweb", "tex", "pandoc",
        "typst" --[[ , "rust" ]] },
    cmd = { "ltex-ls" },
    settings = {
        ltex = {
            additionalRules = {
                enablePickyRules = true,
                motherTonge = "de-DE"
            },
            ["ltex-ls"] = {
                logLevel = "severe"
            }
        }
    },
    get_language_id = function(ft)
        if ft == "typst" or ft == "rust" then
            return "markdown"
        end
        return ft
    end,
    on_attach = function()
        require("ltex_extra").setup {
            load_langs = { "en-US" },
            init_check = true,
            path = "/home/modprog/.config/nvim/ltex",
        }
    end
}

ModProg avatar Sep 28 '23 20:09 ModProg