neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 580b8cfac7eb63607145bd49e4c5bd71e5f421ef
parent 4f141dca8c888d62b332f31fd51fa3e9b2e6cb89
Author: Maria José Solano <majosolano99@gmail.com>
Date:   Sun,  6 Jul 2025 07:07:30 -0700

refactor(lsp): consistent usage of vim.notify #34802


Diffstat:
Mruntime/lua/vim/lsp/buf.lua | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua @@ -73,7 +73,7 @@ function M.hover(config) if vim.tbl_isempty(results1) then if config.silent ~= true then - vim.notify('No information available') + vim.notify('No information available', vim.log.levels.INFO) end return end @@ -368,7 +368,7 @@ function M.signature_help(config) if not next(signatures) then if config.silent ~= true then - print('No signature help available') + vim.notify('No signature help available', vim.log.levels.INFO) end return end @@ -976,7 +976,7 @@ function M.add_workspace_folder(workspace_folder) return end if vim.fn.isdirectory(workspace_folder) == 0 then - print(workspace_folder, ' is not a valid directory') + vim.notify(workspace_folder .. ' is not a valid directory') return end local bufnr = api.nvim_get_current_buf() @@ -1002,7 +1002,7 @@ function M.remove_workspace_folder(workspace_folder) for _, client in pairs(lsp.get_clients({ bufnr = bufnr })) do client:_remove_workspace_folder(workspace_folder) end - print(workspace_folder, 'is not currently part of the workspace') + vim.notify(workspace_folder .. 'is not currently part of the workspace') end --- Lists all symbols in the current workspace in the quickfix window.