1.2.2 • Published 3 months ago
dot-language-server v1.2.2
dot-language-server

A language Server for the DOT language/Graphviz.
Prerequisites
- Node.js
>=18
npm
Installation
npm i -g dot-language-server
If you want to request or implement new features, head over to dot-language-support.
Features
Refactorings
Usage
Vim
coc.nvim
{
"languageserver": {
"dot": {
"command": "dot-language-server",
"args": ["--stdio"],
"filetypes": ["dot"]
}
}
}
vim-lsp
if executable('dot-language-server')
augroup lsp
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'dot',
\ 'cmd': {server_info->['dot-language-server', '--stdio']},
\ 'whitelist': ['dot'],
\ })
augroup END
endif
Neovim
vim.api.nvim_create_autocmd({ "BufEnter" }, {
pattern = { "*.dot" },
callback = function()
vim.lsp.start({
name = "dot",
cmd = { "dot-language-server", "--stdio" }
})
end,
})
Visual Studio Code
TODO: There's an Extension for that.
Sublime Text
- Install LSP support via
Install Package
->LSP
- Go to
Preferences: LSP Settings
- Add this to clients:
{
"clients": {
"dot-language-server": {
"command": ["dot-language-server", "--stdio"],
"enabled": true,
"languageId": "dot",
"scopes": ["source.dot"],
"syntaxes": ["Packages/Graphviz/DOT.sublime-syntax"]
}
}
}
Note for Windows Users: You have to append .cmd
to the first entry in the command
array (or, if possible, enable shell execution).
Emacs
For Emacs users, you need to use lsp-mode
which supports the DOT Language Server out of the box.
...and you're done!
1.2.0
2 years ago
1.2.2
3 months ago
1.2.1
2 years ago
1.1.27
2 years ago
1.1.23
3 years ago
1.1.24
3 years ago
1.1.22
3 years ago
1.1.16
4 years ago
1.1.17
4 years ago
1.1.15
5 years ago
1.1.14
5 years ago
1.1.13
5 years ago
1.1.12
5 years ago
1.1.11
5 years ago
1.1.10
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.0
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago