@@ -24,9 +24,10 @@ return {
2424
2525- Inside the ` lsps ` table, add a new entry for the desired language server.
2626The 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:
3031
3132``` lua better-vim.lua
3233return {
@@ -45,12 +46,21 @@ to find the language server you want to install.
4546You can refer to the documentation of the specific LSP or lspconfig for the
4647available options and their meanings.
4748
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:
4951
5052``` lua better-vim.lua
5153return {
5254 lsps = {
5355 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+ },
5464 settings = {
5565 -- tsserver settings live here. If you don't have settings, you don't need
5666 -- to add this section.
0 commit comments