fork from a ruby-syntax-tree/vscode-syntax-tree
coc.nvim support for the syntax_tree gem
coc-ruby-syntax-tree-demo.mp4
I don't use ruby regularly, so if you like ruby, please refer to this repository and create coc-ruby-syntax-tree
by yourself.
You need to have coc.nvim installed for this extension to work.
e.g. vim-plug:
Plug 'yaegassy/coc-ruby-syntax-tree', {'do': 'yarn install --frozen-lockfile'}
syntax_tree
(stree
) must be installed in the project or installed globally. Alternatively, you can also set the stree
executable path in the syntaxTree.advanced.commandPath
settings.
- textDocument/formatting
- textDocument/inlayHint
- syntaxTree/visualizing
syntaxTree.enable
: Enable coc-ruby-syntax-tree extension, default:true
syntaxTree.advanced.commandPath
: Absolute path to stree executable, default:""
syntaxTree.additionalPlugins
: Registers extra behaviors with the language server, default:[]
syntaxTree.ignoreFiles
: A glob pattern of files to ignore for formatting, default:""
syntaxTree.printWidth
: The width to be used when formatting code, default:null
syntaxTree.singleQuotes
: Uses single-quoted strings when possible, default:false
syntaxTree.trailingComma
: Adds a trailing comma to multi-line array literals, hash literals, and method parameters, default:false
syntaxTree.start
: Syntax Tree: StartsyntaxTree.stop
: Syntax Tree: StopsyntaxTree.restart
: Syntax Tree: RestartsyntaxTree.showOutputChannel
: Syntax Tree: Show Output ChannelsyntaxTree.visualize
: Syntax Tree: Visualize
MIT
This extension is built with create-coc-extension