Skip to content

Bring Weather Forecasts to Your Neovim Editor for Ultimate Productivity

License

Notifications You must be signed in to change notification settings

bitspaceorg/weather-reporto.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Weather-Reporto.nvim

Bring Weather Forecasts to Your Neovim Editor for Ultimate Productivity

weather-reporto.nvim is a sleek and efficient Neovim plugin that brings weather forecasts right to your editor, empowering you to stay informed and productive no matter the weather conditions. With weather.nvim, you can seamlessly integrate weather information into your Neovim workflow, helping you plan your day, stay organized, and optimize your productivity.

Featuring a simple and intuitive interface, weather-reporto.nvim provides up-to-date weather forecasts for your desired location, giving you real-time information on temperature and weather condition. The plugin is highly customizable, allowing you to configure the appearance and behavior to suit your preferences.

With weather-reporto.nvim, you'll never be caught off guard by sudden weather changes again. Stay ahead of the weather and plan your tasks accordingly, all without leaving your editor. Whether you're a developer, writer, or just someone who wants to stay informed, weather-reporto.nvim is your ultimate productivity companion for Neovim.

Install weather-reporto.nvim from GitHub at github.com/bitspaceorg/weather-reporto.nvim and experience the convenience and efficiency of having weather forecasts at your fingertips in Neovim. Stay productive, rain or shine!

Requirements

-> cURL

-> Neovim

-> Nerdfonts

Install

Packer

use ('bitspaceorg/weather-reporto.nvim')

Vim-plug

Plug 'bitspaceorg/weather-reporto.nvim'

How to use

After adding our plugin to your Neovim Config

This plugins works only when setup file is called

-- provide the latitude and longitude of the location as string values 
require("weather").setup({
	latitude = "12.12345",   
	longitude = "34.12345",  
	celsius = true,          -- default farenheit
})

Here is a example were we are about to use our plugin in Dashboard and Status line

so, we have to call our plugin config file before dashboard and statusline config

image_2023-04-19_131816009 (1)

Dashboard

Now lets display weather in our dashboard

local var = require("weather") -- add this at the top of the file

Now

var.strfeed is gonna give as temperature

var.cond is gonna give as weather condition

you can use this variable were ever you want in your dashboard config.

Status line

Similarly you can do in your status line config

Specify in which section of your status line you want to have weather

lualine.nvim

here is example were I use our plugin in status line (lualine)

image

we need to write a small funtion as in above image in lualine config to work .

local var = require("weather")

local line = function()
	return var.strfeed
end

feline

In feline there is no need to create such function as in lualine by just calling our plugin in your feline config and specify in which part you want to disply.

--example
local c = {
    weather_reporto = {
        provider = var.cond, 
        icon = {
            str = var.strfeed,
        },
        hl = {
            fg = "#8f96a0",
            bg = "#0c0e18",
            style = "bold"
        },
    }
}
local left = {}

local middle = {
    c.weather_reporto,
}

local right = {}

local components = {
    active = {
        left,
        middle,
        right,
    },
    inactive = {
        middle
    },
}

feline.setup({
    components = components,
})

Screeshots

lualine

image image

feline

image

Dashboard

Contributors

About

Bring Weather Forecasts to Your Neovim Editor for Ultimate Productivity

Resources

License

Stars

Watchers

Forks

Packages

No packages published