Skip to content

SamuelLorrain/focus.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Focus.nvim

A small plugin to provide a focus/writer/non clutter/zen mode in vim.

Intent

The intent of this plugin is to provide focus mode that fits my needs.

It doesn't modify the editor config for the window, nor uses floating windows. Basically it just create a new tab with only the current buffer displayed.

It also solves a problem I had with other plugins, I couldn't delete or leave my "focused" buffer without messing with the plugin state. So with this plugin, even if I close, delete or change manually my current buffer, the plugin will still be able to put the buffer I want in focus mode without errors.

Installation

Using lazy you can add this to your plugin spec table:

{
    "SamuelLorrain/focus.nvim",
    config = true
}

Or, to disable default keymap

{
    "SamuelLorrain/focus.nvim",
    config = function()
        require('focus').setup({
            default_key_binding = false
        })
    end
}

Usage

To toggle focus mode, just type

:ToggleFocusMode

or use the default keymap

<leader>z

Inspirations

About

A small focus plugin in nvim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages