nvim/lua/user/lsp_servers/marksman.lua
Prabhat Maurya 5793c3da7f update
2026-01-29 19:59:22 +05:30

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')