From 396d43efde7dc669a91f7d32cc77bd49b2f5583e Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 21 Sep 2024 06:53:39 -0400 Subject: [PATCH] feat: add detailed comments for tab and indent character configurations --- lua/config/options.lua | 45 +++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index 8e063fe..1ddeda6 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -8,11 +8,17 @@ -- stylua: ignore start -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Key Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -vim.g.mapleader = " " ---@type string Options: -vim.g.maplocalleader = " " ---@type string Options: --- vim.g.timeoutlen = 1000 ---@type integer Options: + +-- Set the mapleader variable to the space key +vim.g.mapleader = " " ---@type string Options: + +-- Set the maplocalleader variable to the space key +vim.g.maplocalleader = "\\" ---@type string Options: +-- Set the timeout length for key combinations +vim.g.timeoutlen = 1000 ---@type integer Options: -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ LSP ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + -- We don't need perl vim.g.loaded_perl_provider = 0 ---@type integer Options: <0|1> -- or ruby @@ -23,6 +29,7 @@ vim.g.lazyvim_python_lsp = "pyright" ---@type string Options: [python lsp] vim.opt.foldlevel = 99 ---@type integer Options: <0-99> -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ROOTIEST ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + -- Use WakaTime for code stats vim.g.usewakatime = true ---@type boolean Options: -- Allow music controls and stats @@ -63,7 +70,7 @@ vim.g.aitool = "neocodeium" ---@type string Options: [ai tool] vim.g.usechatgpt = false ---@type boolean Options: -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STATUS COLUMN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -vim.g.statuscolumn = "native" ---@type string Options: [statuscolumn] +vim.g.statuscolumn = "native" ---@type string Options: [statuscolumn] -- ╭───────────────────────────╮  barsNlines -- │ │  native -- │ Status Columns: │ @@ -124,6 +131,7 @@ vim.g.stats_ignored_players = { ---@type string[] Options: [ignored playe } -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ COLOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + -- Background color vim.o.background = "dark" ---@type string Options: -- Disable Transparency @@ -132,14 +140,13 @@ vim.g.disable_transparency = true ---@type boolean Options: vim.opt.colorcolumn = "120" ---@type string|table Options: [column] -- ━━━━━━━━━━━━━━━━━━━━━━━━━ Tabs and Indentation ━━━━━━━━━━━━━━━━━━━━━━━━ --- Define a character to be used in the whitespace to represent tabs/indents. --- Tab character --- vim.g.tab_char = "󰌒" ---@type string Options: [tab char] --- -- Indent character --- vim.g.indent_char = "¶" ---@type string Options: [indent char] --- Scope character --- vim.g.scope_char = "|" ---@type string Options: [scope char] --- Alternatively, specify a character/table from the presets +-- Define characters for tabs, indents, and scopes +-- Option [2] will override [1] if both are defined + +-- ──────────────── [1] Choose a preset character ────────────────── +-- Specify a character/table from the presets +-- See: data.types.ibl.char for a list of available characters +-- This option can provide multi-character cycling configurations -- Tab characters vim.g.tab_char_name = "fancy" ---@type string Options: [tab char] -- Indent characters @@ -147,13 +154,27 @@ vim.g.indent_char_name = "fancy" ---@type string Options: [indent char] -- Scope characters vim.g.scope_char_name = "scope" ---@type string Options: [scope char] +-- ──────────────── [2] Choose a specific character ──────────────── +-- Define a character to be used in the whitespace to represent tabs/indents +-- This option allows use of any single character string +-- Multi-character cycling configurations are not possible with this option +-- Multi-character strings are not possible with any of the options +-- Tab character +-- vim.g.tab_char = "󰌒" ---@type string Options: [tab char] +-- -- Indent character +-- vim.g.indent_char = "¶" ---@type string Options: [indent char] +-- Scope character +-- vim.g.scope_char = "|" ---@type string Options: [scope char] + -- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Completion ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + -- Cmp Window Border vim.g.completion_borders = "rounded" ---@type string Options: [round|sharp|flat] -- stylua: ignore end -- ━━━━━━━━━━━━━━━━━━━━━━━━ Post-Config Functions ━━━━━━━━━━━━━━━━━━━━━━━━ + -- Setup blinky cursor require("utils.blinky").setup(vim.g.blinky)