Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uki00a/vim-deno
An experimental vim plugin for Deno🦕
https://github.com/uki00a/vim-deno
Last synced: 21 days ago
JSON representation
An experimental vim plugin for Deno🦕
- Host: GitHub
- URL: https://github.com/uki00a/vim-deno
- Owner: uki00a
- License: mit
- Created: 2020-08-29T12:54:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-17T13:21:47.000Z (over 3 years ago)
- Last Synced: 2024-10-04T16:44:15.879Z (about 1 month ago)
- Language: Vim script
- Homepage:
- Size: 38.1 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# vim-deno
An experimental vim plugin for Deno
## Requirements
- Neovim
- Deno
- Node.js (Not required if you don't use [ALE integration](#experimental-ale-integration))## Features
- [Basic interface for deno command](#commands)
- [ALE integration](#experimental-ale-integration)## Installation
#### [dein.vim](https://github.com/Shougo/dein.vim)
```toml
[[plugins]]
repo = 'uki00a/vim-deno'
build = 'npm install' # If you want to use tsserver integration via ALE
```## Commands
Run the current buffer using `deno run`:
```
:DenoRun
```Format the current buffer using `deno fmt`:
```
:DenoFmt
```Run tests for the current file using `deno test`:
```
:DenoTest
```Lint the current buffer using `deno lint`:
```
:DenoLint
```Show documentation for the current file using `deno doc`:
```
:DenoDoc
```## (experimental) ALE integration
This plugin provides [ALE](https://github.com/dense-analysis/ale) integration. The following linters are defined in [ale_linters/typescript](/ale_linters/typescript) directory:
* `deno` - lints the file using `deno lint` command.
* `deno-tsserver` - provides tsserver integration using [typescript-deno-plugin](https://github.com/justjavac/typescript-deno-plugin).When you want to use `deno-tsserver`, run the following command in the root directory of this plugin:
```shell
$ npm install
```By default, ALE run all available linters. If you limit ALE to use linters provided by this plugin, add the following setting to your `init.vim`:
```vim
let g:ale_linters = {}...
let g:ale_linters['typescript'] = ['deno', 'deno-tsserver']
```## TODO
- [ ] Add support for Vim
- [x] Implement DenoRun command
- [x] Implement DenoLint command
- [ ] Improve DenoTest command
- [x] ALE integration
- [x] tsserver integration
- [ ] LSP integration?