Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yaegassy/coc-marksman

Marksman (Markdown LSP server) extension for coc.nvim
https://github.com/yaegassy/coc-marksman

coc coc-extensions coc-nvim language-server markdown neovim vim

Last synced: 7 days ago
JSON representation

Marksman (Markdown LSP server) extension for coc.nvim

Awesome Lists containing this project

README

        

# coc-marksman

> fork from a [marksman-vscode](https://github.com/artempyanykh/marksman-vscode)

Integrates [Marksman](https://github.com/artempyanykh/marksman) language server into [coc.nvim](https://github.com/neoclide/coc.nvim) for delightful Markdown note taking experience.

https://user-images.githubusercontent.com/188642/174696988-98d3f458-7f91-4c06-83e2-9c2a6a6ca5ed.mp4

See the [project page](https://github.com/artempyanykh/marksman) for more detailed information.

## Install

```vim
:CocInstall @yaegassy/coc-marksman
```

> scoped packages

## Configuration options

- `marksman.enable`: Enable coc-marksman extension, default: `true`
- `marksman.customCommand`: allows to specify a custom command to start marksman. Mostly useful for development of marksman itself.
- `marksman.customCommandDir`: allows to specify a CWD for the command above. For development it's convenient to set the command to dotnet run and the command dir to the dir where marksman sources are.
- `marksman.trace.server`: Traces the communication between coc.nvim and the language server, valid option: `["off", "messages", "verbose"]`, default: `"off"`

## Commands

- `marksman.restartServer`: Marksman: Restart Server
- `marksman.showOutputChannel`: Marksman: Show Output

## Code Actions

Marksman has a code action to create and update a table of contents of a document.

- `Create a Table of Contents`
- REF:

This code action is `source` level. Please key mapping `(coc-codeaction-source)` in coc.nvim to call it.

```vim
nmap as (coc-codeaction-source)
```

## Thanks

-
-

## License

MIT

---

> This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)