lsp for lua/ts

This commit is contained in:
RingOfStorms (Joshua Bell) 2024-05-02 13:32:38 -05:00
parent 61d3aec608
commit ccb3727d8f
4 changed files with 159 additions and 8 deletions

View file

@ -44,6 +44,9 @@ local function getSpec()
-- Convert plugins to use nix store, this auto sets the `dir` property for us on all plugins.
function convertPluginToNixStore(plugin)
local p = ensure_table(plugin)
if p.enabled == false then
return plugin
end
local nixName = "nvim_plugin-" .. p[1]
if not NIX.pluginPaths[nixName] then
error("Plugin is missing in the nix store, ensure it is in the nix flake inputs: " .. p[1])