]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Removed call for function calls
authorUbaldo Tiberi <ubaldo.tiberi@gmail.com>
Sat, 20 May 2023 18:52:19 +0000 (20:52 +0200)
committerUbaldo Tiberi <ubaldo.tiberi@gmail.com>
Sat, 20 May 2023 18:52:19 +0000 (20:52 +0200)
README.md
doc/lsp.txt

index b67accb7746858ae91301ccf7e3c81abe0fa6a82..e4c16ba080228eef93f1acd5a20e69955ebd6b0c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -55,7 +55,7 @@ To register a LSP server, add the following lines to your .vimrc file (use only
 vim9script
 
 # Clangd language server
-call LspAddServer([{
+LspAddServer([{
            name: 'clangd',
            filetype: ['c', 'cpp'],
            path: '/usr/local/bin/clangd',
@@ -63,7 +63,7 @@ call LspAddServer([{
          }])
 
 # Javascript/Typescript language server
-call LspAddServer([{
+LspAddServer([{
            name: 'typescriptlang',
            filetype: ['javascript', 'typescript'],
            path: '/usr/local/bin/typescript-language-server',
@@ -71,7 +71,7 @@ call LspAddServer([{
          }])
 
 # Go language server
-call LspAddServer([{
+LspAddServer([{
            name: 'golang',
            filetype: ['go', 'gomod'],
            path: '/usr/local/bin/gopls',
@@ -80,7 +80,7 @@ call LspAddServer([{
          }])
 
 # Rust language server
-call LspAddServer([{
+LspAddServer([{
            name: 'rustlang',
            filetype: ['rust'],
            path: '/usr/local/bin/rust-analyzer',
@@ -115,10 +115,10 @@ var lspServers = [
                 args: ['--background-index']
              }
           ]
-autocmd VimEnter * call LspAddServer(lspServers)
+autocmd VimEnter * LspAddServer(lspServers)
 
 var lspOpts = {'autoHighlightDiags': v:true}
-autocmd VimEnter * call LspOptionsSet(lspOpts)
+autocmd VimEnter * LspOptionsSet(lspOpts)
 ```
 
 ## Supported Commands
index ef8223a630c1493aaffd2c6735e5c4d1e6a59096..953a3cf944da1d4875320c0eb58df388ad224acd 100644 (file)
@@ -179,7 +179,7 @@ LSP plugin, the steps are described later in this section: >
                         args: ['--check-parent-process', '-v']
                      }
                   ]
-   call LspAddServer(lspServers)
+   LspAddServer(lspServers)
 <
 Depending on the location of the typescript and python pyls language servers
 installed in your system, update the "path" in the above snippet
@@ -233,7 +233,7 @@ Shell script, Vim script and PHP file types: >
                        }
                      }
                   ]
-   call LspAddServer(lspServers)
+   LspAddServer(lspServers)
 <
 To add a language server, the following information is needed:
 
@@ -363,10 +363,10 @@ server and to set the language server options.  For example: >
                        args: ['--background-index']
                      }
                   ]
-    autocmd VimEnter * call LspAddServer(lspServers)
+    autocmd VimEnter * LspAddServer(lspServers)
 
     var lspOpts = {'autoHighlightDiags': v:true}
-    autocmd VimEnter * call LspOptionsSet(lspOpts)
+    autocmd VimEnter * LspOptionsSet(lspOpts)
 <
                                                *lsp-options* *LspOptionsSet*
                                                *g:LspOptionsSet*
@@ -521,7 +521,7 @@ useBufferCompletion     |Boolean| option. If enabled, the words from the current
 For example, to disable the automatic placement of signs for the LSP
 diagnostic messages, you can add the following line to your .vimrc file: >
 
-       call LspOptionsSet({'autoHighlightDiags': v:false})
+       LspOptionsSet({'autoHighlightDiags': v:false})
 <
 The LspOptionsGet() function returns a |Dict| of all the LSP plugin options,
 To get a particular option value you can use the following: >
@@ -710,7 +710,7 @@ can map these commands to keys and make it easier to invoke them.
                        documentation in the preview window instead of in a
                        popup set >
 
-                           call LspOptionsSet({'hoverInPreview': v:true})
+                           LspOptionsSet({'hoverInPreview': v:true})
 <
                        Default is false.
 
@@ -925,7 +925,7 @@ can map these commands to keys and make it easier to invoke them.
                        references in a quickfix list instead of in a location
                        list set >
 
-                       call LspOptionsSet({'useQuickfixForLocations': v:true})
+                       LspOptionsSet({'useQuickfixForLocations': v:true})
 <
                                                *:LspShowSignature*
 :LspShowSignature      Displays the signature of the symbol (e.g. a function
@@ -937,14 +937,14 @@ can map these commands to keys and make it easier to invoke them.
                        this, you can set the showSignature option to false in
                        your .vimrc file: >
 
-                       call LspOptionsSet({'showSignature': v:false})
+                       LspOptionsSet({'showSignature': v:false})
 <
                        Default is true.
 
                        You can get the function signature echoed in cmdline
                        rather than displayed in popup if you use >
 
-                       call LspOptionsSet({'echoSignature': v:true})
+                       LspOptionsSet({'echoSignature': v:true})
 <
                        Default is false.
 
@@ -1034,7 +1034,7 @@ use the keys described in |popupmenu-keys| with this menu.
 To disable the auto-completion for all the files, you can set the
 'autoComplete' option to v:false in your .vimrc file: >
 
-       call LspOptionsSet({'autoComplete': v:false})
+       LspOptionsSet({'autoComplete': v:false})
 <
 If this variable is set, then the LSP plugin will not automatically start
 completion in insert mode and instead supports omni-completion (|compl-omni|).
@@ -1099,7 +1099,7 @@ using the |:LspDiagHighlightDisable| command and re-enable them using the
 To disable the automatic placement of signs on the lines with a diagnostic
 message, you can set the 'autoHighlightDiags' option to v:false: >
 
-       call LspOptionsSet({'autoHighlightDiags': v:false})
+       LspOptionsSet({'autoHighlightDiags': v:false})
 <
 By default the 'autoHighlightDiags' option is set to v:true.