autoload/lsp/util.vim | 8 ++++---- doc/lsp.txt | 10 +++++----- diff --git a/autoload/lsp/util.vim b/autoload/lsp/util.vim index 023d8d8a69f7f90551e30c1de51e886815405889..556430f6ba16c9c6bdb5668c2ff0ef8b5579170d 100644 --- a/autoload/lsp/util.vim +++ b/autoload/lsp/util.vim @@ -35,9 +35,9 @@ if !lsp_server_trace return endif if stderr - writefile(msg->split("\n"), $'{lsp_log_dir}lsp_server.err', 'a') + writefile(msg->split("\n"), $'{lsp_log_dir}lsp-server.err', 'a') else - writefile([msg], $'{lsp_log_dir}lsp_server.out', 'a') + writefile([msg], $'{lsp_log_dir}lsp-server.out', 'a') endif enddef @@ -46,8 +46,8 @@ export def ClearTraceLogs() if !lsp_server_trace return endif - writefile([], $'{lsp_log_dir}lsp_server.out') - writefile([], $'{lsp_log_dir}lsp_server.err') + writefile([], $'{lsp_log_dir}lsp-server.out') + writefile([], $'{lsp_log_dir}lsp-server.err') enddef # Convert a LSP file URI (file://) to a Vim file name diff --git a/doc/lsp.txt b/doc/lsp.txt index c3db0ad3aa8fe7302a8b0313ad8e597ec336f7cc..bf8021cba3b100cf3a1e98c9d0dd69b133b34f32 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -542,9 +542,9 @@ :LspServerDebug { on | off } *:LspServerDebug* Enable or disable the logging of the messages emitted by a language server in the standard output and standard error. On a Unix-like system, these messages - are logged to the /tmp/lsp_server.out and - /tmp/lsp_server.err file respectively. On MS-Windows, - the %TEMP%/lsp_server.out and %TEMP%/lsp_server.err% + are logged to the /tmp/lsp-server.out and + /tmp/lsp-server.err file respectively. On MS-Windows, + the %TEMP%/lsp-server.out and %TEMP%/lsp-server.err% files are used. *:LspServerRestart* @@ -852,8 +852,8 @@ < By default, the messages are not logged. The messages printed by the language server in the stdout are logged to the -lsp_server.out file and the messages printed in the stderr are logged to the -lsp_server.err file. On a Unix-like system, these files are created in the +lsp-server.out file and the messages printed in the stderr are logged to the +lsp-server.err file. On a Unix-like system, these files are created in the /tmp directory. On MS-Windows, these files are created in the %TEMP% directory.