-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
97 lines (89 loc) · 4.48 KB
/
init.lua
File metadata and controls
97 lines (89 loc) · 4.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
-------------------------------------------------------------------------------
-- --
-- ████████╗██████╗ ██╗███╗ ███╗ ██████╗██╗ █████╗ ██╗███╗ ██╗ --
-- ╚══██╔══╝██╔══██╗██║████╗ ████║██╔════╝██║ ██╔══██╗██║████╗ ██║ --
-- ██║ ██████╔╝██║██╔████╔██║██║ ██║ ███████║██║██╔██╗ ██║ --
-- ██║ ██╔══██╗██║██║╚██╔╝██║██║ ██║ ██╔══██║██║██║╚██╗██║ --
-- ██║ ██║ ██║██║██║ ╚═╝ ██║╚██████╗███████╗██║ ██║██║██║ ╚████║ --
-- ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═════╝╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ --
-- --
-- Arthur McLain (trimclain) --
-- mclain.it@gmail.com --
-- https://github.com/trimclain --
-- --
-------------------------------------------------------------------------------
-- Dependencies:
-- gcc: nvim-treesitter
-- ripgrep: snacks.picker, grug-far, todo-comments
-- node: mason, nvim-lspconfig
-- imagemagick: snacks.image
--- @usage: "default" | "minimal"
local mode = "default"
_G.ON_INFERIOR_OS = not not jit.os:find("Windows")
---@diagnostic disable-next-line: undefined-field
if ON_INFERIOR_OS and (vim.g.neovide or vim.fn.has("gui_running") == 1) then
-- I want neovide to start fast, until I fix 15 minute startup time on garbage os
mode = "minimal"
end
-- Important settings for easy modification
_G.CONFIG = {
opts = {
tabwidth = 4,
colorcolumn = true,
word_wrap = false,
spaces_over_tabs = true, -- there's only one correct option here
},
ui = {
-- Colorschemes (note/10):
-- astrotheme (9.5), catppuccin (9), tokyonight (9), rose-pine (9), nightfox (9)
-- vague (8.9), duskfox (8.8), carbonfox (8.7) tundra (8.5), darkplus (8.5), primer-dark (8), vscode (8)
-- gruvbox (7.9), github-dark (7), onedark (7), kanagawa (7), zephyr (7), poimandres (7)
-- embark(6), sonokai (6), omni (6),
colorscheme = "astrotheme",
transparent_background = false,
cursorline = true,
-- border = "rounded", -- see `:h winborder`
border = "none",
italic_comments = true,
ghost_text = false,
inlay_hints = false,
},
git = {
enabled = mode == "default",
show_line_blame = true,
show_signcolumn = true,
},
lsp = {
enable_completion = mode == "default", -- LSP, autocomplete, snippets, language servers and tools
format_on_save = false,
virtual_text = false,
show_signature_help = not ON_INFERIOR_OS,
enable_copilot = false,
},
plugins = {
neoscroll = not ON_INFERIOR_OS,
smear_cursor = ON_INFERIOR_OS, -- found out about kitty's cursor trail
autopairs = mode == "default",
bufferline = false, -- to use harpoon more
dashboard = mode == "default",
dressing = mode == "default",
illuminate = mode == "default",
indentline = mode == "default",
lualine = mode == "default",
spinner = mode == "default", -- animation shown when tasks are ongoing
spinner_type = "dots_pulse", -- spinners: dots_pulse, moon, meter, zip, pipe, dots, arc
todo_comments = mode == "default",
treesj = mode == "default",
},
}
-- local Timer = require("core.util.timer")
-- Timer.start("Sourcing Local Config")
local local_config = vim.fs.joinpath(vim.fn.stdpath("config"), "local.lua")
if require("core.util").file_exists(local_config) then
dofile(local_config)
end
-- Timer.stop()
require("core.options")
require("core.autocmd")
require("core.lazy")
require("core.keymaps")