If you use lazydev.nvim in Neovim, you can automatically load the wezterm-types library. Add DrKJeff16/wezterm-types as a dependency and configure the library option to map the wezterm module to the plugin path.
If you have renamed the repository directory locally, ensure the name in the dependency and the path in the library configuration match your custom directory name.
-- Standard installation
{
'folke/lazydev.nvim',
ft = 'lua',
dependencies = { 'DrKJeff16/wezterm-types' },
opts = {
library = {
-- Other library configs...
{ path = 'wezterm-types', mods = { 'wezterm' } },
},
},
}
-- Installation with a custom directory name
{
'folke/lazydev.nvim',
ft = 'lua',
dependencies = {
{
'DrKJeff16/wezterm-types',
name = '<my_custom_name>', -- CUSTOM DIRECTORY NAME
},
},
opts = {
library = {
-- MAKE SURE TO MATCH THE PLUGIN DIRECTORY'S NAME
{ path = '<my_custom_name>', mods = { 'wezterm' } },
},
},
}