@@ -24,9 +24,10 @@ return {
24
24
25
25
- Inside the ` lsps ` table, add a new entry for the desired language server.
26
26
The key should be a unique identifier for the LSP, and the value should be an
27
- empty table. This table is used to configure the specific settings and ` on_attach `
28
- function for the LSP through lspconfig. For example, to install the ` prismals `
29
- language server, your configuration would look like this:
27
+ empty table. This table is used to configure the specific ` settings ` , ` init_options ` ,
28
+ ` cmd ` and ` on_attach ` function for the LSP through lspconfig.
29
+ For example, to install the ` prismals ` language server, your configuration
30
+ would look like this:
30
31
31
32
``` lua better-vim.lua
32
33
return {
@@ -45,12 +46,21 @@ to find the language server you want to install.
45
46
You can refer to the documentation of the specific LSP or lspconfig for the
46
47
available options and their meanings.
47
48
48
- To add settings or customize the ` on_attach ` function, see the example below:
49
+ To add ` settings ` , ` init_options ` , ` cmd ` or customize the ` on_attach ` function,
50
+ see the example below:
49
51
50
52
``` lua better-vim.lua
51
53
return {
52
54
lsps = {
53
55
tsserver = {
56
+ cmd = {
57
+ -- tsserver cmd options live here. If you don't have custom cmd, you don't need
58
+ -- to add this section.
59
+ },
60
+ init_options = {
61
+ -- tsserver init_options live here. If you don't have custom init_options, you don't need
62
+ -- to add this section.
63
+ },
54
64
settings = {
55
65
-- tsserver settings live here. If you don't have settings, you don't need
56
66
-- to add this section.
0 commit comments