12 lines
448 B
Lua
12 lines
448 B
Lua
-- 1. Configuration
|
|
vim.lsp.config('marksman', {
|
|
cmd = { "marksman", "server" },
|
|
filetypes = { "markdown", "markdown.md" },
|
|
-- Marksman looks for a .marksman.toml or a .git directory to define the project root
|
|
root_markers = { ".marksman.toml", ".git" },
|
|
})
|
|
|
|
-- 2. Enable the server
|
|
-- Note: You don't need to redefine the LspAttach autocmd here
|
|
-- if you already added it to your pyright or ts_ls files.
|
|
vim.lsp.enable('marksman')
|