diff options
Diffstat (limited to 'lsp/svlangserver.lua')
| -rw-r--r-- | lsp/svlangserver.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lsp/svlangserver.lua b/lsp/svlangserver.lua index 6121ea9b..9e205e28 100644 --- a/lsp/svlangserver.lua +++ b/lsp/svlangserver.lua @@ -34,11 +34,11 @@ return { includeIndexing = { '*.{v,vh,sv,svh}', '**/*.{v,vh,sv,svh}' }, }, }, - on_attach = function() - vim.api.nvim_buf_create_user_command(0, 'LspSvlangserverBuildIndex', build_index, { + on_attach = function(_, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, 'LspSvlangserverBuildIndex', build_index, { desc = 'Instructs language server to rerun indexing', }) - vim.api.nvim_buf_create_user_command(0, 'LspSvlangserverReportHierarchy', report_hierarchy, { + vim.api.nvim_buf_create_user_command(bufnr, 'LspSvlangserverReportHierarchy', report_hierarchy, { desc = 'Generates hierarchy for the given module', }) end, |
