Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yaegassy/coc-pug
Pug Language Features for coc.nvim
https://github.com/yaegassy/coc-pug
coc coc-extensions coc-nvim neovim pug vim
Last synced: 23 days ago
JSON representation
Pug Language Features for coc.nvim
- Host: GitHub
- URL: https://github.com/yaegassy/coc-pug
- Owner: yaegassy
- License: mit
- Created: 2023-05-18T04:25:33.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-01T20:20:52.000Z (5 months ago)
- Last Synced: 2024-10-14T18:40:52.219Z (about 1 month ago)
- Topics: coc, coc-extensions, coc-nvim, neovim, pug, vim
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@yaegassy/coc-pug
- Size: 108 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coc-pug
> fork from a [vscode-pug](https://github.com/volarjs/pug-language-tools/tree/master/packages/vscode-pug)
[Pug Language Features](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-pug) for [coc.nvim](https://github.com/neoclide/coc.nvim)
## Install
**CocInstall**:
```
:CocInstall @yaegassy/coc-pug
```**e.g. vim-plug**:
```vim
Plug 'yaegassy/coc-pug', {'do': 'yarn install --frozen-lockfile'}
```## Note
### Filetype related
1. The "filetype" must be `pug` for this extension to work.
Install "pug" related plugin. (e.g. [vim-pug](https://github.com/digitaltoad/vim-pug) or [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)).
2. You need to map the filetype `pug` to the languageId `jade`, set `g:coc_filetype_map` in `.vimrc/init.vim`.
```vim
let g:coc_filetype_map = {
\ 'pug': 'jade',
\ }
```
## Configuration options- `pug.enable`: Enable coc-pug extension, default: `true`
- `pug.trace.server`: Traces the communication between coc.nvim and the language server, valid option: `["off", "messages", "verbose"]`, default: `"off"`
- `pug.dev.serverPath`: (For develop and check) Custom path to pug server module, `~` and `$HOME`, etc. can also be used. If there is no setting, the built-in module will be used, default: `""`## Thanks
- [volarjs/pug-language-tools](https://github.com/volarjs/pug-language-tools)
## License
MIT
---
> This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)