I totally stole most of the code for this plugin from here.
{
'zachbuchli/weather.nvim',
config = function()
local weather = require 'weather'
weather.setup({ default_location = 'dayton' })
vim.keymap.set('n', '<leader>w', weather.show)
end,
},
You can then verify installation was successfull with :checkhealth weather
. This plugin also
registers the command :Weather
to display the weather. By default, it shows the weather for
Portland, Oregon. You can pass a location string as the first argument. Such as :Weather dayton
for weather in Dayton, Ohio.