• 11-uiline-config
  • UI Line Plugins

UI Line Plugins

What is UI Line

Nvim には画面の上部と下部に現在開いているファイル名や、Input mode (normal, insert ...) を表示する場所がある。 デフォルトでは質素な見た目だが、ここを飾り、使いやすさをバク上げする工夫されたプラグインがたくさん存在する。 また、ファイルを管理したり、その他見た目をアップグレードするプラグインを紹介する。

uiline

上の画像のように Nvim の上下左右に機能を追加することができ、それぞれ専用のプラグインが存在する。

Recommended Plugins

かっこよく飾るプラグインが数多存在しますが、ここでは私が使用しているものを紹介します。

Fancy Plugins to Enrich the Editor Buffer

編集画面を少し使いやすくするために、色をつけてくれたりするプラグインたちです。 セットアップは非常にかんたんなのでここで紹介します。

nvim-colorizer.lua

  • 文章中の色コードだと判断できる部分をその色で塗ってくれる

nvim-colorizer

11-uiline-config/nvim-colorizer.lua
require("colorizer").setup()

nvim-web-devicons

  • filetypeに基づいたアイコンの辞書を提供するプラグイン。
  • Filetree がとても見やすくなる(画像のファイル名の前にあるアイコンを定義している)

nvim-web-devicons

11-uiline-config/nvim-web-devicons.lua
require("nvim-web-devicons").setup({
  -- your personal icons can go here (to override)
  -- you can specify color or cterm_color instead of specifying both of them
  -- DevIcon will be appended to `name`
  override = {
    snippets = {
      icon = "",
      color = "#DBC63E",
      name = "Snippets",
    },
    ["poetry.lock"] = {
      icon = "",
      color = "#41535b",
      name = "PoetryLockFile",
    },
  },
  -- globally enable default icons (default to false)
  -- will get overriden by `get_icons` option
  default = true,
})

indentLine

  • インデントに合わせて縦線を引いてくれる

indentLine

11-uiline-config/indentLine.lua
vim.g.indentLine_char = "▏" -- Change to any character
vim.g.indentLine_bufTypeExclude = { "help", "terminal", "neo-tree" }

Other Cool but not recommended Plugins

Might be unstable or very old.

Last updated on September 23, 2022