Wezterm (config) types for Lua Language Server
For Neovim users, if you are using Lazy
as a package manager, install this together with
lazydev
:
{
'folke/lazydev.nvim',
ft = 'lua',
dependencies = {
{'gonstoll/wezterm-types', lazy = true},
},
opts = {
library = {
{path = 'wezterm-types', mods = {'wezterm'}},
},
},
}
Then on your Wezterm configuration file, cast a type to the required module:
local wezterm = require('wezterm') --[[@as Wezterm]]