valentjn / ltex-ls

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
717 stars 33 forks source link

Ellipsis in markdown link #265

Open ModProg opened 11 months ago

ModProg commented 11 months ago

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.

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

Myzel394 commented 9 months ago

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

ModProg commented 9 months ago

@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
}