Skip to content

Commit

Permalink
feat(lsp): info log when starting client in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Nov 29, 2024
1 parent 0790912 commit 0362314
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/rustaceanvim/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,14 @@ M.start = function(bufnr)
local lsp_start_config = vim.tbl_deep_extend('force', {}, client_config)
local root_dir = cargo.get_config_root_dir(client_config, bufname)
if not root_dir then
--- No project root found. Start in detached/standalone mode.
vim.notify(
[[
rustaceanvim:
No project root found.
Starting rust-analyzer client in detached/standalone mode (with reduced functionality).
]],
vim.log.levels.INFO
)
root_dir = vim.fs.dirname(bufname)
lsp_start_config.init_options = { detachedFiles = { bufname } }
end
Expand Down

0 comments on commit 0362314

Please sign in to comment.