Home

Awesome

<h1 align="center"> smartcolumn.nvim </h1> <p align="center"> <a href="https://github.com/m4xshen/smartcolumn.nvim/stargazers"> <img alt="Stargazers" src="https://img.shields.io/github/stars/m4xshen/smartcolumn.nvim?style=for-the-badge&logo=starship&color=fae3b0&logoColor=d9e0ee&labelColor=282a36" /> </a> <a href="https://github.com/m4xshen/smartcolumn.nvim/issues"> <img alt="Issues" src="https://img.shields.io/github/issues/m4xshen/smartcolumn.nvim?style=for-the-badge&logo=gitbook&color=ddb6f2&logoColor=d9e0ee&labelColor=282a36" /> </a> <a href="https://github.com/m4xshen/smartcolumn.nvim/contributors"> <img alt="Contributors" src="https://img.shields.io/github/contributors/m4xshen/smartcolumn.nvim?style=for-the-badge&logo=opensourceinitiative&color=abe9b3&logoColor=d9e0ee&labelColor=282a36" /> </a> </p>

demo

📃 Introduction

A Neovim plugin hiding your colorcolumn when unneeded.

⚙️ Features

The colorcolumn is hidden as default, but it appears after one of lines in the scope exceeds the colorcolumn value you set.

You can:

📦 Installation

  1. Install via your favorite package manager.
{
  "m4xshen/smartcolumn.nvim",
  opts = {}
},
use "m4xshen/smartcolumn.nvim"
Plug "m4xshen/smartcolumn.nvim"
  1. Setup the plugin in your init.lua. This step is not needed with lazy.nvim if opts is set as above.
require("smartcolumn").setup()

🔧 Configuration

You can pass your config table into the setup() function or opts if you use lazy.nvim.

The available options:

[!NOTE] You can use :set filetype? to check the filetype of current buffer.

Default config

local config = {
   colorcolumn = "80",
   disabled_filetypes = { "help", "text", "markdown" },
   custom_colorcolumn = {},
   scope = "file",
}