- Display weather for up to 3 cities for comparison
- Show min/max temperatures at a glance
- emoji show worst weather on top of each day line
Using vim-plug
Plug 'rmrf/weather.nvim'
Using packer.nvim
use({
"rmrf/weather.nvim",
requires = {
'nvim-lua/plenary.nvim',
}
})
Using lazy.nvim
{
"rmrf/weather.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
-- only pick the first 3 cities
opts = { cities = { "Shanghai", "Chengdu", "Jilin", "SanJose" } },
cmd = "Weather", -- Lazy Loading
},
The plugin comes with the default configs, which can be overridden:
require("weather").setup({
-- only pick the first 3 cities
cities = { "Shanghai", "Chengdu", "Jilin", "SanJose"},
})
:Weather