Smor
Smor
DDeno
Created by Smor on 9/26/2023 in #help
Nvim tsserver clash with denols
I have read the docs and added a root_dir in my lua lsp file but for some reason tsserver still lanches on my deno fresh project
3 replies
DDeno
Created by Smor on 3/11/2023 in #help
Deno ts
Whenever i run my deno file using a ts config like this documentation describes: https://deno.land/manual@v1.31.2/advanced/typescript/configuration i get the unsupported compiler options
The following options were ignored:
experimentalDecorators, isolatedModules, module, moduleDetection
The following options were ignored:
experimentalDecorators, isolatedModules, module, moduleDetection
Even tho on the same link the documentation on the same link has this example:
{
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["deno.window"],
"module": "esnext",
"moduleDetection": "force",
"strict": true,
"target": "esnext",
"useDefineForClassFields": true
}
}
{
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["deno.window"],
"module": "esnext",
"moduleDetection": "force",
"strict": true,
"target": "esnext",
"useDefineForClassFields": true
}
}
4 replies
DDeno
Created by Smor on 3/11/2023 in #help
Nvim deno tsserver conflict
my language servers are conflicting when i open a deno project, if i use LspInfo i can see both deno and tsserver are setup on the buffer. here is what i have on my lsp config:
nvim_lsp.denols.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("deno.json"),
init_options = {
lint = true,
},
capabilities = capabilities,
})

nvim_lsp.tsserver.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("package.json"),
single_file_support = false,
init_options = {
lint = true,
},
capabilities = capabilities,
})
nvim_lsp.denols.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("deno.json"),
init_options = {
lint = true,
},
capabilities = capabilities,
})

nvim_lsp.tsserver.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("package.json"),
single_file_support = false,
init_options = {
lint = true,
},
capabilities = capabilities,
})
I do have a deno.json on my deno project and it still happens
2 replies
DDeno
Created by Smor on 3/10/2023 in #help
Deno Docker - deno run --watch file.ts
I am on a macbook m1, and i tried to dockerize deno from the official image and whenever i try doing --watch on the cmd i get Function not implemented (os error 38)
3 replies