Shiddy
Shiddy
DDeno
Created by kirilligum on 1/21/2024 in #help
lvim tsx language server
to be fair I don't write lua or javascript so this is what I have learned just reading through the docs thus far
10 replies
DDeno
Created by kirilligum on 1/21/2024 in #help
lvim tsx language server
import { BLAH } from 'https://esm.sh/@whatever/library?alias=react:preact/compat&alias=external:preact/compat';
10 replies
DDeno
Created by kirilligum on 1/21/2024 in #help
lvim tsx language server
one thing that you can do if you have a library that is returning react elements you might have to alias the outputs for preact
10 replies
DDeno
Created by kirilligum on 1/21/2024 in #help
lvim tsx language server
fwiw I only use the denols LSP and it works as expected
10 replies
DDeno
Created by kirilligum on 1/21/2024 in #help
lvim tsx language server
@Lewis Campbell
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end,
},
{
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = {"denols"},
})
end,
},
{
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require("lspconfig")
lspconfig.denols.setup({
})
end,
},
}
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end,
},
{
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = {"denols"},
})
end,
},
{
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require("lspconfig")
lspconfig.denols.setup({
})
end,
},
}
10 replies
DDeno
Created by kirilligum on 1/21/2024 in #help
lvim tsx language server
@kirilligum Did you ever find a solution to this? I found that if I was using the denols LSP and the tsserver LSP I had to add the following arguments to the setup() calls: https://docs.deno.com/runtime/manual/getting_started/setup_your_environment/#neovim-0.6%2B-using-the-built-in-language-server
10 replies