Skip to content

Commit 0362314

Browse files
committed
feat(lsp): info log when starting client in standalone mode
1 parent 0790912 commit 0362314

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lua/rustaceanvim/lsp/init.lua

+8-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,14 @@ M.start = function(bufnr)
167167
local lsp_start_config = vim.tbl_deep_extend('force', {}, client_config)
168168
local root_dir = cargo.get_config_root_dir(client_config, bufname)
169169
if not root_dir then
170-
--- No project root found. Start in detached/standalone mode.
170+
vim.notify(
171+
[[
172+
rustaceanvim:
173+
No project root found.
174+
Starting rust-analyzer client in detached/standalone mode (with reduced functionality).
175+
]],
176+
vim.log.levels.INFO
177+
)
171178
root_dir = vim.fs.dirname(bufname)
172179
lsp_start_config.init_options = { detachedFiles = { bufname } }
173180
end

0 commit comments

Comments
 (0)