this post was submitted on 07 Nov 2024
8 points (100.0% liked)

WetShaving

717 readers
9 users here now

This is a community of enthusiasts, hobbyists and artisans who enjoy a traditional wet shave: brush, soap, and safety or straight razor. We are a part of the WetShaving community found on Reddit, Discord, and IRC.

New subscribers welcome!

Please visit our wiki, which is always and forever a work in progress.

Check out these alternative front-ends for this server:

https://gem.wetshaving.social/ - a nice modern interface

https://old.wetshaving.social/ - designed to look like old.reddit.com

Our sister Mastodon instance is https://wetshaving.social/.

Community Rules

Rule 1 - Behaviour and Etiquette
Rule 2 - Content Guidelines
Rule 3 - Reviews and Disclosure
Rule 4 - Advertising
Rule 5 - Inappropriate Content
Rule 10 - Moderator Discretion

founded 1 year ago
MODERATORS
 

I had the day off today, so I hacked together a port of the SOTD emacs plugin that @[email protected] uses.

It's still a pretty rough implementation, but I wanted to share the repository here in case others who use Neovim might want to help me kick the tires. I'm fully aware that this is a niche within a niche, but you miss 100% of the shots you don't take!

I know there's some cleanup that needs to happen, and the config file format could use a bit more thought, but it works well enough for now. If anyone feels compelled to use it I'd welcome any feedback either here or on the repo itself.

The code is hosted on GitHub here.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 5 days ago

I pushed up a change that wraps this up in the plugin creation, so it should no longer be necessary.

You'll also want to update your config to prevent lazy loading (since we want this plugin to be loaded immediately when nvim is opened):

{
    "snooting/sotd.nvim",
    dependencies = {
        "nvim-telescope/telescope.nvim",
        "nvim-lua/plenary.nvim",
        "b0o/schemastore.nvim",
    },
    lazy = false,
    config = function()
        require("sotd").setup({
            -- any config options
        })
    end,
}