Skip to content

Commit 8ff409b

Browse files
authored
Merge pull request #4326 from Felixoid/update-ycmd
Update ycmd and documentation
2 parents 159e8de + 583a623 commit 8ff409b

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

README.md

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,26 +1634,10 @@ let g:ycm_language_server =
16341634
\ ]
16351635
```
16361636

1637-
Each dictionary contains the following keys:
1638-
1639-
* `name` (string, mandatory): When [configuring a LSP
1640-
server](#lsp-configuration) the value of the `name` key will be used as the
1641-
`kwargs[ 'language' ]`. Can be anything you like.
1642-
* `filetypes` (list of string, mandatory): List of Vim filetypes this server
1643-
should be used for.
1644-
* `project_root_files` (list of string, optional): List of filenames to search
1645-
for when trying to determine the project's root. Uses python's pathlib for
1646-
glob matching.
1647-
* `cmdline` (list of strings, optional): If supplied, the server is started with
1648-
this command line (each list element is a command line word). Typically, the
1649-
server should be started with STDIO communication. If not supplied, `port`
1650-
must be supplied.
1651-
* `port` (number, optional): If supplied, ycmd will connect to the server at
1652-
`localhost:<port>` using TCP (remote servers are not supported).
1653-
* `capabilities` (dict, optional): If supplied, this is a dictionary that is
1654-
merged with the LSP client capabilities reported to the language server. This
1655-
can be used to enable or disable certain features, such as the support for
1656-
configuration sections (`workspace/configuration`).
1637+
Each dictionary contains the following keys: `name`, `cmdline`, `port`,
1638+
`filetypes`, `capabilities`, `project_root_files`, `additional_workspace_dirs`,
1639+
`triggerCharacters`, and `settings`. The full description of each key can be
1640+
found in the [ycmd][language_server-configuration] repository.
16571641

16581642
See [the LSP Examples](https://github.com/ycm-core/lsp-examples) project for more
16591643
examples of configuring the likes of PHP, Ruby, Kotlin, and D.
@@ -1918,8 +1902,7 @@ nmap <leader>ych <Plug>(YCMCallHierarchy)
19181902

19191903
This opens a "modal" popup showing the current element in the hierarchy tree.
19201904
The current tree root is aligned to the left and child and parent nodes are
1921-
expanded to the right. Expand the tree "down" with `<Tab> and "up" with
1922-
`<S-Tab>`.
1905+
expanded to the right. Expand the tree "down" with `<Tab>` and "up" with `<S-Tab>`.
19231906

19241907
The "root" of the tree can be re-focused to the selected item with
19251908
`<S-Tab>` and further `<S-Tab>` will show the parents of the selected item. This
@@ -3792,7 +3775,7 @@ making sure YCM won't choose that existing completer in the first place.
37923775
A simple working example of this option can be found in the section called
37933776
["Semantic Completion for Other Languages"](#semantic-completion-for-other-languages).
37943777
3795-
Many working examples can be found in the YCM [lsp-examples][] repo.
3778+
Many working examples can be found in the YCM [lsp-examples][] repository.
37963779
37973780
Default: `[]`
37983781
@@ -4014,6 +3997,7 @@ Please note: The YCM maintainers do not specifically endorse nor necessarily hav
40143997
[wiki-full-install]: https://github.com/ycm-core/YouCompleteMe/wiki/Full-Installation-Guide
40153998
[wiki-troubleshooting]: https://github.com/ycm-core/YouCompleteMe/wiki/Troubleshooting-steps-for-ycmd-server-SHUT-DOWN
40163999
[lsp-examples]: https://github.com/ycm-core/lsp-examples
4000+
[language_server-configuration]: https://github.com/ycm-core/ycmd#language_server-configuration
40174001
[diagnostic-echo-virtual-text1]: https://user-images.githubusercontent.com/10584846/185707973-39703699-0263-47d3-82ac-639d52259bea.png
40184002
[diagnostic-echo-virtual-text2]: https://user-images.githubusercontent.com/10584846/185707993-14ff5fd7-c082-4e5a-b825-f1364e619b6a.png
40194003
[jedi-refactor-doc]: https://jedi.readthedocs.io/en/latest/docs/api.html#jedi.Script.extract_variable

0 commit comments

Comments
 (0)