]> Sergey Matveev's repositories - vim-lsp.git/log
vim-lsp.git
3 years agoInvoke the User autocmd only when some handlers is present
Yegappan Lakshmanan [Thu, 31 Mar 2022 16:09:48 +0000 (09:09 -0700)]
Invoke the User autocmd only when some handlers is present

3 years agoMerge pull request #58 from gpanders/autocmd-attach
Yegappan Lakshmanan [Thu, 31 Mar 2022 14:24:40 +0000 (07:24 -0700)]
Merge pull request #58 from gpanders/autocmd-attach

Fire event when LSP client is attached to a buffer

3 years agoFire event when LSP client is attached to a buffer
Gregory Anders [Wed, 30 Mar 2022 14:57:15 +0000 (08:57 -0600)]
Fire event when LSP client is attached to a buffer

This provides a hook for users to configure buffers that use LSP. For
example,

    autocmd User LspAttached {
        nnoremap <buffer> <C-]> <Cmd>LspGotoDefinition<CR>
    }

3 years agoRefresh the location list window with the latest diagnostics messages
Yegappan Lakshmanan [Thu, 31 Mar 2022 05:33:45 +0000 (22:33 -0700)]
Refresh the location list window with the latest diagnostics messages

3 years agoMerge pull request #60 from tpope/tabsize-shiftwidth
Yegappan Lakshmanan [Thu, 31 Mar 2022 04:19:38 +0000 (21:19 -0700)]
Merge pull request #60 from tpope/tabsize-shiftwidth

Use shiftwidth() as tabSize

3 years agoUse shiftwidth() as tabSize
Tim Pope [Thu, 31 Mar 2022 03:47:41 +0000 (23:47 -0400)]
Use shiftwidth() as tabSize

The tabSize field in the LSP spec is poorly named, as it's not used for
anything tab related but rather the indent size when formatting.  This
corresponds to shiftwidth() in Vim.

3 years agoMerge pull request #59 from gpanders/auto-populate-diags
Yegappan Lakshmanan [Thu, 31 Mar 2022 03:25:12 +0000 (20:25 -0700)]
Merge pull request #59 from gpanders/auto-populate-diags

Add option to automatically populate location list with diagnostics

3 years agoAdd option to automatically populate location list with diagnostics
Gregory Anders [Wed, 30 Mar 2022 16:04:21 +0000 (10:04 -0600)]
Add option to automatically populate location list with diagnostics

3 years agoMerge pull request #55 from Shane-XB-Qian/pr_req_id_is_num
Yegappan Lakshmanan [Fri, 18 Mar 2022 14:06:25 +0000 (07:06 -0700)]
Merge pull request #55 from Shane-XB-Qian/pr_req_id_is_num

shane/mdf: request.id of response to lsp server perhaps was not a number

3 years agoshane/mdf: request.id of response to lsp server perhaps was not a number
shane.xb.qian [Sun, 13 Mar 2022 02:57:33 +0000 (10:57 +0800)]
shane/mdf: request.id of response to lsp server perhaps was not a number

3 years agoMerge pull request #56 from Shane-XB-Qian/pr_ntf_only_once
Yegappan Lakshmanan [Fri, 18 Mar 2022 05:13:47 +0000 (22:13 -0700)]
Merge pull request #56 from Shane-XB-Qian/pr_ntf_only_once

shane/mdf: adding ntfOnce func and make unsupported telemetry/event ntf only ntf once

3 years agoshane/mdf: adding ntfOnce func and make unsupported telemetry/event ntf only ntf...
shane.xb.qian [Sun, 13 Mar 2022 04:10:38 +0000 (12:10 +0800)]
shane/mdf: adding ntfOnce func and make unsupported telemetry/event ntf only ntf once

3 years agoAdd dummy handlers for workspace folders and client register capability messages
Yegappan Lakshmanan [Fri, 11 Mar 2022 04:48:55 +0000 (20:48 -0800)]
Add dummy handlers for workspace folders and client register capability messages

3 years agoMerge pull request #53 from Shane-XB-Qian/pr_defdecl_null
Yegappan Lakshmanan [Fri, 11 Mar 2022 04:40:45 +0000 (20:40 -0800)]
Merge pull request #53 from Shane-XB-Qian/pr_defdecl_null

shane/mdf: to avoid if location (result) of defDecl was null

3 years agoshane/mdf: to avoid if location (result) of defDecl was null
shane.xb.qian [Fri, 11 Mar 2022 02:22:16 +0000 (10:22 +0800)]
shane/mdf: to avoid if location (result) of defDecl was null

3 years agoUpdate the switch source header support
Yegappan Lakshmanan [Tue, 8 Mar 2022 22:22:09 +0000 (14:22 -0800)]
Update the switch source header support

3 years agoMerge pull request #49 from noscript/LspSwitchSourceHeader
Yegappan Lakshmanan [Tue, 8 Mar 2022 21:58:31 +0000 (13:58 -0800)]
Merge pull request #49 from noscript/LspSwitchSourceHeader

Add support for LspSwitchSourceHeader command

3 years agoAdd support for LspSwitchSourceHeader command
Sergey Vlasov [Tue, 8 Mar 2022 21:17:35 +0000 (23:17 +0200)]
Add support for LspSwitchSourceHeader command

3 years agoWhen jumping to a symbol definition, reuse the current window if 'hidden' is set
Yegappan Lakshmanan [Tue, 8 Mar 2022 18:56:05 +0000 (10:56 -0800)]
When jumping to a symbol definition, reuse the current window if 'hidden' is set

3 years agoRename Hover function to avoid name conflicts
Yegappan Lakshmanan [Mon, 21 Feb 2022 15:56:40 +0000 (07:56 -0800)]
Rename Hover function to avoid name conflicts

3 years agoHandle a null reply from the LSP server properly
Yegappan Lakshmanan [Mon, 21 Feb 2022 15:32:27 +0000 (07:32 -0800)]
Handle a null reply from the LSP server properly

3 years agoFix typo in popup menu name
Yegappan Lakshmanan [Sun, 20 Feb 2022 15:55:08 +0000 (07:55 -0800)]
Fix typo in popup menu name

3 years agoDirectly use the function name as funcref instead of using function() call
Yegappan Lakshmanan [Sun, 20 Feb 2022 06:58:55 +0000 (22:58 -0800)]
Directly use the function name as funcref instead of using function() call

3 years agoRemove the s: prefix for script local functions
Yegappan Lakshmanan [Sat, 19 Feb 2022 21:24:50 +0000 (13:24 -0800)]
Remove the s: prefix for script local functions

3 years agoMove the autoload files into the lsp subdirectory
Yegappan Lakshmanan [Fri, 18 Feb 2022 02:06:38 +0000 (18:06 -0800)]
Move the autoload files into the lsp subdirectory

3 years agoAdd support for the LspServerRestart command to restart the LSP server
Yegappan Lakshmanan [Fri, 18 Feb 2022 01:54:35 +0000 (17:54 -0800)]
Add support for the LspServerRestart command to restart the LSP server

3 years agoRemove s: prefix in a few more places
Yegappan Lakshmanan [Wed, 16 Feb 2022 04:22:07 +0000 (20:22 -0800)]
Remove s: prefix in a few more places

3 years agoIn Vim9 scripts, s: prefix is not supported for script-local functions and variables
Yegappan Lakshmanan [Sun, 13 Feb 2022 16:23:18 +0000 (08:23 -0800)]
In Vim9 scripts, s: prefix is not supported for script-local functions and variables

3 years agoRemove s: prefix from script-local functions
Yegappan Lakshmanan [Thu, 10 Feb 2022 04:50:03 +0000 (20:50 -0800)]
Remove s: prefix from script-local functions

3 years agoChange the script-local function names to start with an uppercase letter. Remove...
Yegappan Lakshmanan [Tue, 8 Feb 2022 04:42:40 +0000 (20:42 -0800)]
Change the script-local function names to start with an uppercase letter. Remove redundant funcref initialization.

3 years agoWhen running tests, make the LSP calls synchronous
Yegappan Lakshmanan [Sun, 6 Feb 2022 18:25:15 +0000 (10:25 -0800)]
When running tests, make the LSP calls synchronous

3 years agoUpdate the active parameter in the signature popup correctly. Move the functions...
Yegappan Lakshmanan [Sat, 5 Feb 2022 16:56:26 +0000 (08:56 -0800)]
Update the active parameter in the signature popup correctly. Move the functions for getting lspserver for a buffer to a separate file

3 years agoMove the signature help function to a separate file
Yegappan Lakshmanan [Sat, 5 Feb 2022 03:46:48 +0000 (19:46 -0800)]
Move the signature help function to a separate file

3 years agoAdd suppport for expanding and shrinking the visual selection
Yegappan Lakshmanan [Sat, 5 Feb 2022 02:32:16 +0000 (18:32 -0800)]
Add suppport for expanding and shrinking the visual selection

3 years agoUse global functions instead of funcref variables for LspOptionsSet() and LspServerTr...
Yegappan Lakshmanan [Thu, 3 Feb 2022 17:07:39 +0000 (09:07 -0800)]
Use global functions instead of funcref variables for LspOptionsSet() and LspServerTraceEnable(). Rename LspCalledBy() to LspIncomingCalls() and LspCalling() to LspOutgoingCalls()

3 years agoAdd support for the LspCalling and LspCalledBy commands
Yegappan Lakshmanan [Thu, 3 Feb 2022 03:00:16 +0000 (19:00 -0800)]
Add support for the LspCalling and LspCalledBy commands

3 years agoTest fails with the latest Vim
Yegappan Lakshmanan [Wed, 2 Feb 2022 02:20:46 +0000 (18:20 -0800)]
Test fails with the latest Vim

3 years agoVim9 no longer supports # in function names. Use global functions
Yegappan Lakshmanan [Wed, 2 Feb 2022 02:12:31 +0000 (18:12 -0800)]
Vim9 no longer supports # in function names. Use global functions

3 years agoUse the proper type for args (patch from Shane-XB-Qian)
Yegappan Lakshmanan [Thu, 27 Jan 2022 15:49:43 +0000 (07:49 -0800)]
Use the proper type for args (patch from Shane-XB-Qian)

3 years agoRemove the failing omni completion test
Yegappan Lakshmanan [Thu, 27 Jan 2022 04:43:05 +0000 (20:43 -0800)]
Remove the failing omni completion test

3 years agoMerge pull request #34 from kohnish/ignoremissing
Yegappan Lakshmanan [Thu, 27 Jan 2022 04:39:11 +0000 (20:39 -0800)]
Merge pull request #34 from kohnish/ignoremissing

Option to ignore missing server

3 years agoMerge pull request #37 from kohnish/args
Yegappan Lakshmanan [Thu, 27 Jan 2022 04:36:35 +0000 (20:36 -0800)]
Merge pull request #37 from kohnish/args

Allow empty arguments by default

3 years agoUpdate the loop that waits for matches for omni-completion
Yegappan Lakshmanan [Thu, 27 Jan 2022 04:35:36 +0000 (20:35 -0800)]
Update the loop that waits for matches for omni-completion

3 years agoMerge pull request #35 from kohnish/jumpfix
Yegappan Lakshmanan [Thu, 27 Jan 2022 04:33:33 +0000 (20:33 -0800)]
Merge pull request #35 from kohnish/jumpfix

Ctrl + O coming back to wrong location when jump was within the same …

3 years agoAllow empty arguments by default
kohnish [Wed, 26 Jan 2022 21:06:49 +0000 (22:06 +0100)]
Allow empty arguments by default

3 years agoOption to ignore missing server
kohnish [Sat, 22 Jan 2022 17:08:51 +0000 (18:08 +0100)]
Option to ignore missing server

3 years agoCtrl + O coming back to wrong location when jump was within the same file
kohnish [Mon, 24 Jan 2022 21:08:30 +0000 (22:08 +0100)]
Ctrl + O coming back to wrong location when jump was within the same file

3 years agoAdd test for LspShowSignature
Yegappan Lakshmanan [Sat, 22 Jan 2022 19:20:41 +0000 (11:20 -0800)]
Add test for LspShowSignature

3 years agoAdd test for LspHover
Yegappan Lakshmanan [Sat, 22 Jan 2022 17:59:42 +0000 (09:59 -0800)]
Add test for LspHover

3 years agoUse the command name in the test function name
Yegappan Lakshmanan [Sat, 22 Jan 2022 17:23:18 +0000 (09:23 -0800)]
Use the command name in the test function name

3 years agoFix test failure
Yegappan Lakshmanan [Sat, 22 Jan 2022 17:12:59 +0000 (09:12 -0800)]
Fix test failure

3 years agoAdd a test for LspHighlight
Yegappan Lakshmanan [Sat, 22 Jan 2022 17:07:12 +0000 (09:07 -0800)]
Add a test for LspHighlight

3 years agoGithub action covimerage doesn't work for Vim9 scripts
Yegappan Lakshmanan [Sat, 22 Jan 2022 16:46:15 +0000 (08:46 -0800)]
Github action covimerage doesn't work for Vim9 scripts

3 years agoUse the latest Ubuntu version for coverage
Yegappan Lakshmanan [Sat, 22 Jan 2022 16:26:24 +0000 (08:26 -0800)]
Use the latest Ubuntu version for coverage

3 years agoInstall the latest Vim for unit tests
Yegappan Lakshmanan [Sat, 22 Jan 2022 16:24:33 +0000 (08:24 -0800)]
Install the latest Vim for unit tests

3 years agoInstall latest Vim for running the tests
Yegappan Lakshmanan [Sat, 22 Jan 2022 16:17:25 +0000 (08:17 -0800)]
Install latest Vim for running the tests

3 years agoEnable code coverage
Yegappan Lakshmanan [Sat, 22 Jan 2022 16:12:02 +0000 (08:12 -0800)]
Enable code coverage

3 years agoAdd a command to display LSP server capabilities. Add additional test
Yegappan Lakshmanan [Sat, 22 Jan 2022 05:04:29 +0000 (21:04 -0800)]
Add a command to display LSP server capabilities. Add additional test

3 years agoFix import failure
Yegappan Lakshmanan [Sat, 22 Jan 2022 03:19:14 +0000 (19:19 -0800)]
Fix import failure

3 years agoAdd commands to enable/disable highlighting diagnostics. Simplify the call to get...
Yegappan Lakshmanan [Sat, 22 Jan 2022 03:10:50 +0000 (19:10 -0800)]
Add commands to enable/disable highlighting diagnostics. Simplify the call to get the LSP server for a buffer

3 years agoMissing return value in the omnifunc function
Yegappan Lakshmanan [Fri, 21 Jan 2022 15:30:54 +0000 (07:30 -0800)]
Missing return value in the omnifunc function

3 years agoSkip remote files
Yegappan Lakshmanan [Thu, 20 Jan 2022 02:43:56 +0000 (18:43 -0800)]
Skip remote files

3 years agoWhen running the tests, invoke Vim with the --not-a-term argument
Yegappan Lakshmanan [Wed, 19 Jan 2022 15:22:48 +0000 (07:22 -0800)]
When running the tests, invoke Vim with the --not-a-term argument

3 years agoAfter displaying the signature popup, the LSP commands for the current buffer stop...
Yegappan Lakshmanan [Tue, 18 Jan 2022 03:38:17 +0000 (19:38 -0800)]
After displaying the signature popup, the LSP commands for the current buffer stop working

3 years agoDisable the GotoImpl test
Yegappan Lakshmanan [Mon, 17 Jan 2022 20:53:55 +0000 (12:53 -0800)]
Disable the GotoImpl test

3 years agoWait for LspGotoImpl to complete
Yegappan Lakshmanan [Mon, 17 Jan 2022 20:43:20 +0000 (12:43 -0800)]
Wait for LspGotoImpl to complete

3 years agoWhen jumping to the location of a symbol, wait for the response from LSP server
Yegappan Lakshmanan [Mon, 17 Jan 2022 20:19:02 +0000 (12:19 -0800)]
When jumping to the location of a symbol, wait for the response from LSP server

3 years agoDisable the failing test
Yegappan Lakshmanan [Mon, 17 Jan 2022 18:49:54 +0000 (10:49 -0800)]
Disable the failing test

3 years agoIncrease delay
Yegappan Lakshmanan [Mon, 17 Jan 2022 18:43:22 +0000 (10:43 -0800)]
Increase delay

3 years agoDisplay where a exception is thrown
Yegappan Lakshmanan [Mon, 17 Jan 2022 18:37:44 +0000 (10:37 -0800)]
Display where a exception is thrown

3 years agoIncrease the delay for the LSP server to respond
Yegappan Lakshmanan [Mon, 17 Jan 2022 18:26:19 +0000 (10:26 -0800)]
Increase the delay for the LSP server to respond

3 years agoAdd test for jumping to symbol location
Yegappan Lakshmanan [Mon, 17 Jan 2022 18:17:07 +0000 (10:17 -0800)]
Add test for jumping to symbol location

3 years agoAdd the unit test status badge to README
Yegappan Lakshmanan [Mon, 17 Jan 2022 16:58:40 +0000 (08:58 -0800)]
Add the unit test status badge to README

3 years agoAfter LSP server initialization is complete, request symbols only if the outline...
Yegappan Lakshmanan [Mon, 17 Jan 2022 16:49:03 +0000 (08:49 -0800)]
After LSP server initialization is complete, request symbols only if the outline window is present

3 years agoChange clangd to clangd-12
Yegappan Lakshmanan [Mon, 17 Jan 2022 16:36:08 +0000 (08:36 -0800)]
Change clangd to clangd-12

3 years agoWait for the LSP server to become ready before running the tests
Yegappan Lakshmanan [Mon, 17 Jan 2022 16:33:42 +0000 (08:33 -0800)]
Wait for the LSP server to become ready before running the tests

3 years agoWait for the LSP server to start
Yegappan Lakshmanan [Mon, 17 Jan 2022 05:54:52 +0000 (21:54 -0800)]
Wait for the LSP server to start

3 years agoUse clangd-12
Yegappan Lakshmanan [Mon, 17 Jan 2022 05:48:05 +0000 (21:48 -0800)]
Use clangd-12

3 years agoUse setup-clang action
Yegappan Lakshmanan [Mon, 17 Jan 2022 05:08:52 +0000 (21:08 -0800)]
Use setup-clang action

3 years agoclangd is not found
Yegappan Lakshmanan [Mon, 17 Jan 2022 04:55:23 +0000 (20:55 -0800)]
clangd is not found

3 years agoTry using clangd-12
Yegappan Lakshmanan [Mon, 17 Jan 2022 04:47:06 +0000 (20:47 -0800)]
Try using clangd-12

3 years agoUse WaitForAssert() to support slow systems
Yegappan Lakshmanan [Mon, 17 Jan 2022 04:35:48 +0000 (20:35 -0800)]
Use WaitForAssert() to support slow systems

3 years agoIncrease the delay to 1 second in the test
Yegappan Lakshmanan [Mon, 17 Jan 2022 01:36:25 +0000 (17:36 -0800)]
Increase the delay to 1 second in the test

3 years agoDisplay where clangd is installed
Yegappan Lakshmanan [Mon, 17 Jan 2022 01:26:58 +0000 (17:26 -0800)]
Display where clangd is installed

3 years agoUse clangd package instead of clangd-13
Yegappan Lakshmanan [Mon, 17 Jan 2022 01:18:43 +0000 (17:18 -0800)]
Use clangd package instead of clangd-13

3 years agoAdd github action to run unit tests
Yegappan Lakshmanan [Mon, 17 Jan 2022 01:16:15 +0000 (17:16 -0800)]
Add github action to run unit tests

3 years agoAdd scripts to run the unit tests
Yegappan Lakshmanan [Mon, 17 Jan 2022 01:05:53 +0000 (17:05 -0800)]
Add scripts to run the unit tests

3 years agoError when loading the plugin
Yegappan Lakshmanan [Sun, 16 Jan 2022 23:56:57 +0000 (15:56 -0800)]
Error when loading the plugin

3 years agoMerge pull request #30 from kohnish/vim-lsc-like-behaviour
Yegappan Lakshmanan [Sun, 16 Jan 2022 23:52:46 +0000 (15:52 -0800)]
Merge pull request #30 from kohnish/vim-lsc-like-behaviour

Optional vim-lsc like behaviours

3 years agoOptional vim-lsc like behaviours
kohnish [Sun, 16 Jan 2022 18:33:54 +0000 (19:33 +0100)]
Optional vim-lsc like behaviours
 - Option to show diagnostics on status line
 - Option to not suppress the diag hover appearing on mouse hover
 - Make outline configurable
 - Option to suppress adding a new line on completion selection

3 years agoMove the functions to display symbol references and jump to a symbol to a separate...
Yegappan Lakshmanan [Sun, 16 Jan 2022 21:57:35 +0000 (13:57 -0800)]
Move the functions to display symbol references and jump to a symbol to a separate file

3 years agoMerge pull request #29 from kohnish/keep_focus_on_references
Yegappan Lakshmanan [Sun, 16 Jan 2022 18:17:00 +0000 (10:17 -0800)]
Merge pull request #29 from kohnish/keep_focus_on_references

Option to disable switching window on show references

3 years agoOption to disable switching window on show references
kohnish [Sat, 15 Jan 2022 22:01:39 +0000 (23:01 +0100)]
Option to disable switching window on show references

3 years agoReference window is always opened in a vertically split window
Yegappan Lakshmanan [Sun, 16 Jan 2022 17:31:06 +0000 (09:31 -0800)]
Reference window is always opened in a vertically split window

3 years agoAdd support for peeking the list of references to a symbol
Yegappan Lakshmanan [Sun, 16 Jan 2022 07:12:40 +0000 (23:12 -0800)]
Add support for peeking the list of references to a symbol

3 years agoAdd support for peeking symbol definition, declaration, implementation and type defin...
Yegappan Lakshmanan [Sun, 16 Jan 2022 06:54:35 +0000 (22:54 -0800)]
Add support for peeking symbol definition, declaration, implementation and type definition

3 years agoMake LSP selection range always use a characterwise visual mode. Add additional tests...
Yegappan Lakshmanan [Sun, 16 Jan 2022 02:00:38 +0000 (18:00 -0800)]
Make LSP selection range always use a characterwise visual mode. Add additional tests. Make it easy to test codeaction

3 years agoMerge pull request #28 from kohnish/cmd_exec
Yegappan Lakshmanan [Sun, 16 Jan 2022 00:59:41 +0000 (16:59 -0800)]
Merge pull request #28 from kohnish/cmd_exec

Check for executability for a LSP command instead

3 years agoCheck for executability for a LSP command instead
kohnish [Sat, 15 Jan 2022 21:42:47 +0000 (22:42 +0100)]
Check for executability for a LSP command instead

3 years agoUpdate test
Yegappan Lakshmanan [Fri, 14 Jan 2022 15:36:03 +0000 (07:36 -0800)]
Update test