We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0790912 commit 0362314Copy full SHA for 0362314
lua/rustaceanvim/lsp/init.lua
@@ -167,7 +167,14 @@ M.start = function(bufnr)
167
local lsp_start_config = vim.tbl_deep_extend('force', {}, client_config)
168
local root_dir = cargo.get_config_root_dir(client_config, bufname)
169
if not root_dir then
170
- --- No project root found. Start in detached/standalone mode.
+ 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
+ )
178
root_dir = vim.fs.dirname(bufname)
179
lsp_start_config.init_options = { detachedFiles = { bufname } }
180
end
0 commit comments