A minimal Neovim plugin to check weather conditions right from your editor using wttr.in.
- Get current weather conditions for any city
- Temperature display in Celsius
- Feels-like temperature
- Weather description in your preferred language
- Asynchronous API calls using plenary.nvim
- Neovim >= 0.5.0
- plenary.nvim
Using lazy.nvim:
{
'macro21KGB/simple-weather.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
},
config = function()
require('simple-weather').setup({
city = "London", -- your city
lang = "en" -- preferred language
})
end
}
Using packer.nvim:
use {
'macro21KGB/simple-weather.nvim',
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require('simple-weather').setup({
city = "London", -- your city
lang = "en" -- preferred language
})
end
}
The plugin can be configured with the following options:
require('simple-weather').setup({
-- Default configuration
city = "London", -- Your city name
lang = "en" -- Language for weather descriptions
-- Supported languages: en, fr, de, it, es, etc.
})
After installation, you can use the :Weather
command to display current weather conditions.
The plugin will show:
- City name
- Weather description in your configured language
- Current temperature
- Feels-like temperature
Example output:
London (Partly cloudy)
18°(16°)
MIT
- Weather data provided by wttr.in
- HTTP requests handled by plenary.nvim