Files
nvim/data/lsp_servers/prosemd.lua

17 lines
433 B
Lua
Raw Permalink Normal View History

2022-07-07 16:45:13 -04:00
local lsp_configs = require('plugins/nvim-lspconfig')
lsp_configs.prosemd = {
default_config = {
-- Update the path to prosemd-lsp
cmd = { "/usr/local/bin/prosemd-lsp", "--stdio" },
filetypes = { "markdown" },
root_dir = function(fname)
return lsp_util.find_git_ancestor(fname) or vim.fn.getcwd()
end,
settings = {},
}
}
-- Use your attach function here
lsp.prosemd.setup{ on_attach = on_attach }