repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim/lua/bugabinga/neovim_devel.lua

Raw
local puk = require 'std.puk'

puk.defer 'lazydev' (function(lazydev)
  vim.cmd.packadd 'wezterm-types'
  lazydev.setup {
    library = {
      -- See the configuration section for more details
      -- Load luvit types when the `vim.uv` word is found
      { path = "${3rd}/luv/library", words = { "vim%.uv" } },
      -- Load the wezterm types when the `wezterm` module is required
      -- Needs `justinsgithub/wezterm-types` to be installed
      { path = "wezterm-types",      mods = { "wezterm" } },
    },
    enabled = function(root_dir)
      return not vim.uv.fs_stat(root_dir .. "/.lsp.settings.lua")
    end,
  }
end)