From 5809ca07663f0d2dcdd2e035a3c16004594c5996 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Tue, 11 Oct 2022 20:35:44 -0700 Subject: [PATCH] Rename lspoptions.vim to options.vim --- autoload/lsp/diag.vim | 2 +- autoload/lsp/handlers.vim | 2 +- autoload/lsp/lsp.vim | 2 +- autoload/lsp/{lspoptions.vim => options.vim} | 0 autoload/lsp/outline.vim | 2 +- autoload/lsp/signature.vim | 2 +- autoload/lsp/symbol.vim | 2 +- plugin/lsp.vim | 6 +++--- 8 files changed, 9 insertions(+), 9 deletions(-) rename autoload/lsp/{lspoptions.vim => options.vim} (100%) diff --git a/autoload/lsp/diag.vim b/autoload/lsp/diag.vim index e7696e4..9b8c76c 100644 --- a/autoload/lsp/diag.vim +++ b/autoload/lsp/diag.vim @@ -2,7 +2,7 @@ vim9script # Functions related to handling LSP diagnostics. -import './lspoptions.vim' as opt +import './options.vim' as opt import './util.vim' # Remove the diagnostics stored for buffer 'bnr' diff --git a/autoload/lsp/handlers.vim b/autoload/lsp/handlers.vim index b2f0750..5f808a5 100644 --- a/autoload/lsp/handlers.vim +++ b/autoload/lsp/handlers.vim @@ -4,7 +4,7 @@ vim9script # Refer to https://microsoft.github.io/language-server-protocol/specification # for the Language Server Protocol (LSP) specificaiton. -import './lspoptions.vim' as opt +import './options.vim' as opt import './util.vim' import './diag.vim' import './outline.vim' diff --git a/autoload/lsp/lsp.vim b/autoload/lsp/lsp.vim index f6039aa..d1e1c0d 100644 --- a/autoload/lsp/lsp.vim +++ b/autoload/lsp/lsp.vim @@ -7,7 +7,7 @@ if v:version < 900 finish endif -import './lspoptions.vim' as opt +import './options.vim' as opt import './lspserver.vim' as lserver import './util.vim' import './buffer.vim' as buf diff --git a/autoload/lsp/lspoptions.vim b/autoload/lsp/options.vim similarity index 100% rename from autoload/lsp/lspoptions.vim rename to autoload/lsp/options.vim diff --git a/autoload/lsp/outline.vim b/autoload/lsp/outline.vim index 5be07bb..1469c4b 100644 --- a/autoload/lsp/outline.vim +++ b/autoload/lsp/outline.vim @@ -1,7 +1,7 @@ vim9script import './util.vim' -import './lspoptions.vim' as opt +import './options.vim' as opt # jump to a symbol selected in the outline window def OutlineJumpToSymbol() diff --git a/autoload/lsp/signature.vim b/autoload/lsp/signature.vim index 60887ff..cc85b30 100644 --- a/autoload/lsp/signature.vim +++ b/autoload/lsp/signature.vim @@ -2,7 +2,7 @@ vim9script # Functions related to handling LSP symbol signature help. -import './lspoptions.vim' as opt +import './options.vim' as opt import './util.vim' import './buffer.vim' as buf diff --git a/autoload/lsp/symbol.vim b/autoload/lsp/symbol.vim index 7b36488..57e9809 100644 --- a/autoload/lsp/symbol.vim +++ b/autoload/lsp/symbol.vim @@ -6,7 +6,7 @@ vim9script # - jump to a symbol definition, declaration, type definition or # implementation -import './lspoptions.vim' as opt +import './options.vim' as opt import './util.vim' # Handle keys pressed when the workspace symbol popup menu is displayed diff --git a/plugin/lsp.vim b/plugin/lsp.vim index 3aef1c4..0974a12 100644 --- a/plugin/lsp.vim +++ b/plugin/lsp.vim @@ -7,11 +7,11 @@ vim9script # Language Server Protocol (LSP) plugin for vim -import autoload '../autoload/lsp/lspoptions.vim' +import autoload '../autoload/lsp/options.vim' import autoload '../autoload/lsp/lsp.vim' def g:LspOptionsSet(opts: dict) - lspoptions.OptionsSet(opts) + options.OptionsSet(opts) enddef def g:LspServerTraceEnable() @@ -32,7 +32,7 @@ augroup LSPAutoCmds # Note that when BufWipeOut is invoked, the current buffer may be different # from the buffer getting wiped out. autocmd BufWipeOut * lsp.RemoveFile(expand('')->str2nr()) - if lspoptions.lspOptions.showDiagOnStatusLine + if options.lspOptions.showDiagOnStatusLine autocmd CursorMoved * lsp.LspShowCurrentDiagInStatusLine() endif augroup END -- 2.48.1