Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correct millet build command #3479

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions doc/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ Default config:
```
- `filetypes` :
```lua
{ "bash", "sh" }
{ "sh" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/bashls.lua:4](../lua/lspconfig/configs/bashls.lua#L4)
- `settings` :
Expand Down Expand Up @@ -2826,7 +2826,7 @@ Default config:
```
- `filetypes` :
```lua
{ "javascript", "javascriptreact", "typescript", "typescriptreact", "json", "jsonc", "markdown", "python", "toml", "rust", "roslyn", "graphql" }
{ "javascript", "javascriptreact", "typescript", "typescriptreact", "json", "jsonc", "markdown", "python", "toml", "rust", "roslyn" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/dprint.lua:4](../lua/lspconfig/configs/dprint.lua#L4)
- `settings` :
Expand Down Expand Up @@ -4407,11 +4407,11 @@ Default config:

## harper_ls

https://github.com/elijah-potter/harper
https://github.com/chilipepperhott/harper

The language server for Harper, the slim, clean language checker for developers.

See [docs](https://github.com/elijah-potter/harper/blob/master/harper-ls/README.md#configuration) for more information on settings.
See [docs](https://github.com/chilipepperhott/harper/tree/master/harper-ls#configuration) for more information on settings.

In short, however, they should look something like this:
```lua
Expand All @@ -4436,7 +4436,7 @@ Default config:
```
- `filetypes` :
```lua
{ "c", "cpp", "cs", "gitcommit", "go", "html", "java", "javascript", "lua", "markdown", "nix", "python", "ruby", "rust", "swift", "toml", "typescript", "typescriptreact" }
{ "markdown", "rust", "typescript", "typescriptreact", "javascript", "python", "go", "c", "cpp", "ruby", "swift", "cs", "toml", "lua", "gitcommit", "java", "html" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/harper_ls.lua:4](../lua/lspconfig/configs/harper_ls.lua#L4)
- `single_file_support` : `true`
Expand Down Expand Up @@ -8579,7 +8579,7 @@ Default config:
```
- `filetypes` :
```lua
{ "ruby", "eruby" }
{ "ruby" }
```
- `init_options` :
```lua
Expand Down Expand Up @@ -11175,7 +11175,7 @@ Default config:
```
- `filetypes` :
```lua
{ "markdown", "text", "tex", "rst" }
{ "markdown", "text", "tex" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/vale_ls.lua:4](../lua/lspconfig/configs/vale_ls.lua#L4)
- `single_file_support` : `true`
Expand Down Expand Up @@ -11223,7 +11223,7 @@ Default config:
annotation_paths = {},
debugger_port = -1,
high_precision = false,
java = "/usr/lib/jvm/temurin-11-jdk-amd64/bin/java",
java = "java",
java_opts = { "-Xmx3000m", "-Xss1m" },
logfile = "/home/user/.cache/nvim/vdm-lsp.log",
mavenrepo = "/home/user/.m2/repository/com/fujitsu"
Expand Down Expand Up @@ -11544,7 +11544,7 @@ local function get_typescript_server_path(root_dir)
local found_ts = ''
local function check_dir(path)
found_ts = util.path.join(path, 'node_modules', 'typescript', 'lib')
if vim.loop.fs_stat(found_ts) then
if util.path.exists(found_ts) then
return path
end
end
Expand Down
18 changes: 9 additions & 9 deletions doc/configs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ Default config:
```
- `filetypes` :
```lua
{ "bash", "sh" }
{ "sh" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/bashls.lua:4](../lua/lspconfig/configs/bashls.lua#L4)
- `settings` :
Expand Down Expand Up @@ -2826,7 +2826,7 @@ Default config:
```
- `filetypes` :
```lua
{ "javascript", "javascriptreact", "typescript", "typescriptreact", "json", "jsonc", "markdown", "python", "toml", "rust", "roslyn", "graphql" }
{ "javascript", "javascriptreact", "typescript", "typescriptreact", "json", "jsonc", "markdown", "python", "toml", "rust", "roslyn" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/dprint.lua:4](../lua/lspconfig/configs/dprint.lua#L4)
- `settings` :
Expand Down Expand Up @@ -4407,11 +4407,11 @@ Default config:

## harper_ls

https://github.com/elijah-potter/harper
https://github.com/chilipepperhott/harper

The language server for Harper, the slim, clean language checker for developers.

See [docs](https://github.com/elijah-potter/harper/blob/master/harper-ls/README.md#configuration) for more information on settings.
See [docs](https://github.com/chilipepperhott/harper/tree/master/harper-ls#configuration) for more information on settings.

In short, however, they should look something like this:
```lua
Expand All @@ -4436,7 +4436,7 @@ Default config:
```
- `filetypes` :
```lua
{ "c", "cpp", "cs", "gitcommit", "go", "html", "java", "javascript", "lua", "markdown", "nix", "python", "ruby", "rust", "swift", "toml", "typescript", "typescriptreact" }
{ "markdown", "rust", "typescript", "typescriptreact", "javascript", "python", "go", "c", "cpp", "ruby", "swift", "cs", "toml", "lua", "gitcommit", "java", "html" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/harper_ls.lua:4](../lua/lspconfig/configs/harper_ls.lua#L4)
- `single_file_support` : `true`
Expand Down Expand Up @@ -8579,7 +8579,7 @@ Default config:
```
- `filetypes` :
```lua
{ "ruby", "eruby" }
{ "ruby" }
```
- `init_options` :
```lua
Expand Down Expand Up @@ -11175,7 +11175,7 @@ Default config:
```
- `filetypes` :
```lua
{ "markdown", "text", "tex", "rst" }
{ "markdown", "text", "tex" }
```
- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/vale_ls.lua:4](../lua/lspconfig/configs/vale_ls.lua#L4)
- `single_file_support` : `true`
Expand Down Expand Up @@ -11223,7 +11223,7 @@ Default config:
annotation_paths = {},
debugger_port = -1,
high_precision = false,
java = "/usr/lib/jvm/temurin-11-jdk-amd64/bin/java",
java = "java",
java_opts = { "-Xmx3000m", "-Xss1m" },
logfile = "/home/user/.cache/nvim/vdm-lsp.log",
mavenrepo = "/home/user/.m2/repository/com/fujitsu"
Expand Down Expand Up @@ -11544,7 +11544,7 @@ local function get_typescript_server_path(root_dir)
local found_ts = ''
local function check_dir(path)
found_ts = util.path.join(path, 'node_modules', 'typescript', 'lib')
if vim.loop.fs_stat(found_ts) then
if util.path.exists(found_ts) then
return path
end
end
Expand Down
4 changes: 2 additions & 2 deletions lua/lspconfig/configs/millet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ To use with nvim:

1. Install a Rust toolchain: https://rustup.rs
2. Clone the repo
3. Run `cargo build --release --bin lang-srv`
4. Move `target/release/lang-srv` to somewhere on your $PATH as `millet`
3. Run `cargo build --release --bin millet-ls`
4. Move `target/release/millet-ls` to somewhere on your $PATH as `millet`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the only actual change? the changes to doc/configs.txt and doc/configs.md should be reverted

]],
},
}
Loading