♻️ refactor(full-scope)!: major revision refactoring
Code layout has been changed and improoved. Annotations are added for documentation. Automated through utility functions and data tables BREAKING CHANGE: Tested from clean. Now properly uses LuaRocks to install dependencies.
This commit is contained in:
+62
-32
@@ -1,41 +1,78 @@
|
||||
--- @module "config.options"
|
||||
--- This module defines the user options for the Neovim configuration.
|
||||
--- Variables defined here set configuration options for the rest
|
||||
--- of the Neovim configuration.
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
-- │ Options │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
-- stylua: ignore start
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Leader Key ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
vim.g.mapleader = " " --- @type string Options: <leader>
|
||||
vim.g.maplocalleader = " " --- @type string Options: <localleader>
|
||||
vim.g.mapleader = " " ---@type string Options: <leader>
|
||||
vim.g.maplocalleader = " " ---@type string Options: <localleader>
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ LSP ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
-- We don't need perl
|
||||
vim.g.loaded_perl_provider = 0 --- @type integer Options: <0|1>
|
||||
vim.g.loaded_ruby_provider = 0 --- @type integer Options: <0|1>
|
||||
vim.g.loaded_perl_provider = 0 ---@type integer Options: <0|1>
|
||||
vim.g.loaded_ruby_provider = 0 ---@type integer Options: <0|1>
|
||||
-- Prefer basedpyright
|
||||
vim.g.lazyvim_python_lsp = "basedpyright" --- @type string Options: [python lsp]
|
||||
vim.g.lazyvim_python_lsp = "basedpyright" ---@type string Options: [python lsp]
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ OS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
-- Check if we are on windows
|
||||
vim.g.is_windows = vim.fn.has("win32") == 1 or vim.fn.has("win64") == 1
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ROOTIEST ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
-- ╭───────────────────────────╮ Options:
|
||||
-- │ │ codeium
|
||||
-- │ AI Tools: │ copilot
|
||||
-- │ Choose an AI provider │ tabnine
|
||||
-- │ from the list │ minuet
|
||||
-- │ │ ollama
|
||||
-- ╰───────────────────────────╯ none
|
||||
vim.g.aitool = "codeium" --- @type string Options: [ai tool]
|
||||
vim.g.usewakatime = true ---@type boolean Options: <true|false>
|
||||
vim.g.usemusic = true ---@type boolean Options: <true|false>
|
||||
vim.g.usehardtime = false ---@type boolean Options: <true|false>
|
||||
vim.g.useimage = true ---@type boolean Options: <true|false>
|
||||
vim.g.ignore_no_lazy = false ---@type boolean Options: <true|false>
|
||||
vim.g.codesnap = true ---@type boolean Options: <true|false>
|
||||
vim.g.auto_cursorline = true ---@type boolean Options: <true|false>
|
||||
vim.g.auto_save = true ---@type boolean Options: <true|false>
|
||||
|
||||
vim.g.usewakatime = true --- @type boolean Options: <true|false>
|
||||
vim.g.usehardtime = false --- @type boolean Options: <true|false>
|
||||
vim.g.useimage = true --- @type boolean Options: <true|false>
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ AI TOOL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
vim.g.aitool = "codeium" ---@type string Options: [ai tool]
|
||||
-- ╭───────────────────────────╮ codeium
|
||||
-- │ │ copilot
|
||||
-- │ AI Tools: │ tabnine
|
||||
-- │ Choose an AI provider │ minuet
|
||||
-- │ from the list │ ollama
|
||||
-- │ │ none
|
||||
-- ╰───────────────────────────╯
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Lualine Stats ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
vim.g.stats_wakatime = true --- @type boolean Options: <true|false>
|
||||
vim.g.stats_music = true --- @type boolean Options: <true|false>
|
||||
vim.g.stats_ignored_players = { --- @type string[] Options: [ignored players]
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STATUS LINE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
vim.g.statusline = "lualine" ---@type string Options: [statusline]
|
||||
-- ╭───────────────────────────╮ lualine
|
||||
-- │ │ heirline
|
||||
-- │ Status Lines: │ basic
|
||||
-- │ Choose a plugin from │ none
|
||||
-- │ the list │
|
||||
-- │ │
|
||||
-- ╰───────────────────────────╯
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STATUS COLUMN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
vim.g.statuscolumn = "native" ---@type string Options: [statuscolumn]
|
||||
-- ╭───────────────────────────╮ barsNlines
|
||||
-- │ │ native
|
||||
-- │ Status Columns: │
|
||||
-- │ Choose a plugin from │
|
||||
-- │ the list │
|
||||
-- │ │
|
||||
-- ╰───────────────────────────╯
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BUFFER LINE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
vim.g.tabline = "bufferline" ---@type string Options: [tabline]
|
||||
-- ╭───────────────────────────╮ bufferline
|
||||
-- │ │ barsNlines
|
||||
-- │ Tab Lines: │ none
|
||||
-- │ Choose a plugin from │
|
||||
-- │ the list │
|
||||
-- │ │
|
||||
-- ╰───────────────────────────╯
|
||||
vim.g.statusline_clickable_git = false ---@type boolean Options: <true|false>
|
||||
vim.g.stats_wakatime = true ---@type boolean Options: <true|false>
|
||||
vim.g.stats_music = true ---@type boolean Options: <true|false>
|
||||
vim.g.stats_ignored_players = { ---@type string[] Options: [ignored players]
|
||||
"chromium",
|
||||
"firefox",
|
||||
"kdeconnect",
|
||||
@@ -46,20 +83,13 @@ vim.g.stats_ignored_players = { --- @type string[] Options: [ignored players]
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ COLOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
-- Background color
|
||||
vim.o.background = "dark" --- @type string Options: <dark|light>
|
||||
vim.o.background = "dark" ---@type string Options: <dark|light>
|
||||
-- Dashboard header color
|
||||
vim.g.DashboardHeaderColor = "#88fc9a" --- @type string Options: [hex color]
|
||||
vim.g.DashboardHeaderColor = "#88fc9a"---@type string Options: [hex color]
|
||||
-- Disable Transparency
|
||||
vim.g.disable_transparency = true --- @type boolean Options: <true|false>
|
||||
vim.g.disable_transparency = true ---@type boolean Options: <true|false>
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━ BLINKY CURSOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
-- Setup the blinky cursor
|
||||
require("utils.blinky").enable()
|
||||
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ OTHER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
-- Suda smart edit: Automatically edit files in sudo mode when needed
|
||||
vim.g.suda_smart_edit = 1 --- @type integer Options: <0|1>
|
||||
vim.cmd("let g:suda#prompt = ' Enter Sudo Password '")
|
||||
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Completion ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
-- Cmp Window Border
|
||||
vim.g.completion_round_borders_enabled = true
|
||||
vim.g.completion_round_borders_enabled = true ---Options: <true|false>
|
||||
-- stylua: ignore end
|
||||
|
||||
Reference in New Issue
Block a user