Skip to content

macro21KGB/simple-weather.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

simple-weather.nvim

A minimal Neovim plugin to check weather conditions right from your editor using wttr.in.

Features

  • 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

Requirements

Installation

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
}

Configuration

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.
})

Usage

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°)

License

MIT

Credits

Releases

No releases published

Packages

No packages published

Languages