forked from oxalica/nil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
3,714 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'], | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/node_modules | ||
/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
src | ||
node_modules | ||
tsconfig.json | ||
*.map | ||
.tags | ||
.DS_Store | ||
webpack.config.js | ||
esbuild.js | ||
.github | ||
.eslintrc.js | ||
.prettierrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# coc-nil | ||
|
||
**WIP** | ||
|
||
[nil] language server glue for Vim/Neovim, works as an extension with [coc.nvim]. | ||
|
||
[nil]: https://github.com/oxalica/nil | ||
[coc.nvim]: https://github.com/neoclide/coc.nvim | ||
|
||
## Install | ||
|
||
`:CocInstall coc-nil` | ||
|
||
## Configurations | ||
|
||
This extension is configured using a jsonc file. You can open this configuration file using the command `:CocConfig`, | ||
and it is typically located at `$HOME/.config/nvim/coc-settings.json`. | ||
|
||
Configurations to the LSP is documentated in | ||
[`docs/configuration.md` of the LSP repository](https://github.com/oxalica/nil/blob/main/docs/configuration.md#reference), | ||
with the exception that configuration keys can **ALSO** be written as flattened dot-separated string key. | ||
That is, `coc-nvim` supports `"nil.nix.binary": "nix"`, `"nil": { "nix": { "binary": "nix" } }"`, | ||
and even `"nil": { "nix.binary": "nix" }`. | ||
|
||
The table below shows all extra configurations for the extension itself. | ||
|
||
| Configuration | Description | Default | | ||
|---|---|---| | ||
| `nil.enable` | Enable `coc-nil` | `true` | | ||
| `nil.server.path` | Path to the `nil` LSP server | `"nil"` | | ||
|
||
## License | ||
|
||
"coc-nil" is primarily distributed under the terms of both the MIT | ||
license and the Apache License (Version 2.0). | ||
|
||
See LICENSE-APACHE and LICENSE-MIT for details. |
Oops, something went wrong.