Lewis Campbell
Lewis Campbell
DDeno
Created by Lewis Campbell on 8/24/2024 in #help
neovim LSP - both denols and tsserver are attaching
Hi, I am following the guide here. https://docs.deno.com/runtime/manual/getting_started/setup_your_environment/#neovim-0.6%2B-using-the-built-in-language-server and have lsp set up like
lspconfig["denols"].setup{
root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonrc")
}

lspconfig["tsserver"].setup{
root_dir = lspconfig.util.root_pattern("package.json"),
single_file_support = false,
}
lspconfig["denols"].setup{
root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonrc")
}

lspconfig["tsserver"].setup{
root_dir = lspconfig.util.root_pattern("package.json"),
single_file_support = false,
}
but if I open main.ts in a directory that looks like this:
$ ls
deno.json deno.lock main.ts README.md
$ ls
deno.json deno.lock main.ts README.md
Both denols and tsserver attach.
2 replies
DDeno
Created by Lewis Campbell on 10/10/2022 in #help
Re-loading a file in the repl
Is there anyway to do this? IE modify a file I'm working on, and reload it in the repl, without exiting and importing again. (I am aware this exact same issue exists in node and is likely a cultural issue, but other repls can do it and I miss it)
4 replies
DDeno
Created by Lewis Campbell on 10/2/2022 in #help
Native extensions for Deno?
Does something like n-api exist for deno? Can't find it in the manual
10 replies