GithubHelp home page GithubHelp logo

teto / nvim-terminal.lua Goto Github PK

View Code? Open in Web Editor NEW

This project forked from norcalli/nvim-terminal.lua

0.0 1.0 0.0 26 KB

A high performance filetype mode for Neovim which leverages conceal and highlights your buffer with the correct color codes.

License: MIT License

Shell 0.41% Lua 96.99% Vim Script 2.60%

nvim-terminal.lua's Introduction

terminal.lua

luadoc

A high performance filetype mode for Neovim which leverages conceal and highlights your buffer with the correct color codes.

Demo

Demo

Demo.mp4

Installation and Usage

Use your plugin manager or clone directly into your runtimepath.

Plug 'norcalli/nvim-terminal.lua'

The most basic setup is the following. This will create an autocmd to highlight. Otherwise, only the syntax file with the conceal codes will be included.

lua require'terminal'.setup()

Then you can just setl filetype=terminal to activate the mode.

NOTE: If you want to completely hide the color codes, you can use concealcursor (:h concealcursor) to that effect. Setting it to setl concealcursor=nc would hide the codes until you went into visual mode or insert mode. This may make it seem like the cursor is lagging when you are travelling over text, but the cursor doesn't move if it is over hidden codes, so be aware of that effect.

For more advanced usage, see the Luadoc documentation or use :h terminal.lua once installed.

TODO

  • Add underline, italic, and other code modes.
  • Look into further performance improvements by eliminating work.
  • See if I can get fenced blocks to work in markdown mode.

nvim-terminal.lua's People

Contributors

norcalli 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.