mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-02-22 22:28:00 +00:00
[neovim] Use md-lsp instead of marksman
This commit is contained in:
parent
5fa2563ae1
commit
af5cecec2d
@ -17,3 +17,4 @@ Neovim conf heavily adapted to suit my needs, formerly based on LunarVim's [basi
|
|||||||
* revive
|
* revive
|
||||||
* tree-sitter-cli
|
* tree-sitter-cli
|
||||||
* Optional for copilotchat: `sudo luarocks install --lua-version 5.1 tiktoken_core`
|
* Optional for copilotchat: `sudo luarocks install --lua-version 5.1 tiktoken_core`
|
||||||
|
* [md-lsp](https://github.com/matkrin/md-lsp.git)
|
||||||
|
@ -8,7 +8,7 @@ local servers = {
|
|||||||
"jdtls",
|
"jdtls",
|
||||||
"jsonls",
|
"jsonls",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"marksman",
|
-- "marksman",
|
||||||
"basedpyright",
|
"basedpyright",
|
||||||
"ruff",
|
"ruff",
|
||||||
"terraformls",
|
"terraformls",
|
||||||
@ -52,3 +52,15 @@ for _, server in pairs(servers) do
|
|||||||
lspconfig[server].setup(opts)
|
lspconfig[server].setup(opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local configs = require("lspconfig.configs")
|
||||||
|
configs.md_lsp = {
|
||||||
|
default_config = {
|
||||||
|
name = "md-lsp",
|
||||||
|
cmd = { "md-lsp" },
|
||||||
|
filetypes = { "markdown" },
|
||||||
|
root_dir = lspconfig.util.root_pattern(".git"),
|
||||||
|
single_file_support = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
lspconfig.md_lsp.setup({})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user