Code Monkey home page Code Monkey logo

focus.nvim's Introduction

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

focus.nvim's People

Contributors

samuellorrain avatar

Stargazers

Yuta Katayama avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.