Skip to content

A wrapper for charm's freeze cli tool for usage in neovim

License

Notifications You must be signed in to change notification settings

charm-community/freeze.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freeze.nvim

A wrapper around charm's freeze cli tool for Neovim.

Installation

  1. Ensure that you have installed the freeze cli tool.

  2. Follow the example below. It uses lazy.nvim, so you may have to adjust it to your plugin manager.

{
  'charm-community/freeze.nvim',
  config = function()
    require('freeze').setup({
        command = "freeze",
        output = function()
            return "./" .. os.date("%Y-%m-%d") .. "_freeze.png"
        end,
        theme = "catppuccin-mocha",
    })
  end
}

For a full list of options, see here.

You might also want to add a keybinding to call the Freeze command.

vim.api.nvim_set_keymap('v', '<leader>sc', '<cmd>Freeze<cr>', {})

Thanks

This project is heavily inspired by nvim-silicon.

This would not be possible without charmbracelet/freeze.


Part of the Charm Community.

The Charm logo

Charm热爱开源 • Charm loves open source

About

A wrapper for charm's freeze cli tool for usage in neovim

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published