-
|
Hello! Hope you are doing well.
lspsAndRuntimeDeps = with pkgs; {
runtime = [
universal-ctags
stdenv.cc.cc
nodePackages_latest.typescript
nodePackages_latest.typescript-language-server
];
};
require("custom.plugins")
require("custom.lsp")
require("lze").load({ { import = "custom.plugins.lsp.typescript-tools" } })
return {
{
"typescript-tools.nvim",
dep_of = { "nvim-lspconfig" },
after = function(plugin)
require("typescript-tools").setup({
-- disable formatting because using `prettier`
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
client.server_capabilities.documentRangeFormattingProvider = false
end,
})
end,
},
}I got the error What I have done and tried
Any help is much appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
|
dep_of makes it load before not after. You would want to have lspconfig be dep_of this if you want this to load after. It's a weird error message but maybe it's just erroring while trying to run it due to needing to be ran after? Are you using the most up to date version of lze? I pushed a big change yesterday, and I'm curious if this error is a consequence of them, or conversely if the changes fix the bug. But I would assume they wouldn't have any effect on this scenario. I think lze is just intercepting another error and giving you a bad message instead of the actual one. But yeah if this needs to load AFTER lspconfig, then this is wrong, because this is explicitly telling it to load BEFORE lspconfig. dep_of means, the other thing depends on this thing, so load this thing first. |
Beta Was this translation helpful? Give feedback.
Moving it to
startupPluginsworks!I still can use
lzeto load thetypescript-tools.nvimconfig:lua/custom/plugins/init.lua:lua/custom/plugins/lsp/typescript-tools/init.lua: