tinymist
tinymist copied to clipboard
Root directory not found, Neovim and Lspconfig
Here is my config for the LSP in neovim in init.lua.
{
"neovim/nvim-lspconfig",
dependencies = {
"kevinhwang91/nvim-ufo",
{ "j-hui/fidget.nvim", opts = {} },
{ "folke/neodev.nvim", opts = {} },
},
-- This was an unsuccessful try
-- opts = {
-- servers = {
-- tinymist = {
-- settings = {
-- rootPath = "~/PaulJR/",
-- },
-- },
-- },
--},
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = vim.tbl_deep_extend("force", capabilities, require("cmp_nvim_lsp").default_capabilities())
local lsp_capabilities = require("cmp_nvim_lsp").default_capabilities()
-- TINYMIST
require("lspconfig")["tinymist"].setup {
capabilities = lsp_capabilities,
settings = {
tinymist = {
-- another unsucessfull try
-- rootPath = "~/PaulJR/",
settings = {
rootPath = "~/PaulJR/",
},
},
},
}
}
In the tinymist docs, for the root path it is indicated to put - for getting the parent directory. Is it the string "-"
right ? Just to be sure because I also have tried that but it didn't work.
Here is the result of LspInfo :
Language client log: /home/pauladam/.local/state/nvim/lsp.log
Detected filetype: typst
0 client(s) attached to this buffer:
Other clients that match the filetype: typst
Config: tinymist
filetypes: typst
root directory: Not found. -- here is the issue
cmd: /run/current-system/sw/bin/tinymist
cmd is executable: true
autostart: true
custom handlers:
Configured servers list: tsserver, clangd, coq_lsp, lua_ls, rust_analyzer, tinymist
- I am using lazy for getting package in neovim
- Just to explain why I don't use Mason, I am using NixOS and mason does not work it (as far as know).
- I have installed through the nix package manager which is what i have done for other lsp.
- I have everytime restarted neovim
- I have other lsp setup that way and they work (cland, rust-analyzer).
- tynymist is well installed on my computer
➜ ~ tinymist --version
tinymist
Build Timestamp: 1980-01-01T00:00:00.000000000Z
Build Git Describe: VERGEN_IDEMPOTENT_OUTPUT
Commit SHA: VERGEN_IDEMPOTENT_OUTPUT
Commit Date: None
Commit Branch: None
Cargo Target Triple: x86_64-unknown-linux-gnu
Typst Version: 0.11.1
➜ ~ tinymist -V
tinymist 0.11.9
Maybe I am doing something obviously wrong, that's why I post this issue. Thank in advance.