Giter Club home page Giter Club logo

tail.nvim's Introduction

tail.nvim

Neovim plugin to tail the file loaded by the current buffer

Options

The following are the options(default shown) that can be specified:

  -- File polling frequency(for changes) in milliseconds
  poll_frequency = 100,

  -- Notifier used to log mesages
  notifier = vim.notify,

  -- Tail interval in millseconds
  tail_interval = 2000,

  -- Smart tail logic: if the cursor is not at the last line (e.g was moved)
  -- do not go to the end of the buffer after reloading it.
  -- This will allow you to continue reloading a file, but stay focused
  -- on a line you are interested in. To got back to "tailing" just move the cursor
  -- to the last line.
  smart_tail = false,

Example Usage (packer.nvim)

use {
  "sa-mendez/tail.nvim",
  after = "nvim-notify",
  config = function()
    require("tail_nvim").setup {
      smart_tail = true,
      notifier = require "notify",
    }
  end,
  event = "BufRead",
},

Note that the setup method must be called even if you are not overriding any defaults.

Toggle command

The plugin creates the following command ToggleTailBuffer which you use to toggle on/off the tailing on the current buffer.

tail.nvim's People

Contributors

sa-mendez 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.