Skip to content

Commit 9f11749

Browse files
committed
Big-Changes: format code style
1 parent 3ec122f commit 9f11749

28 files changed

+1078
-1001
lines changed

extra/snippets/lua.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -94,35 +94,37 @@
9494
"template plugin" : {
9595
"prefix": "template plugin",
9696
"body": [
97-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
98-
"--─────────────────────────────────────────────────--",
99-
"-- Plugin: $1",
100-
"-- Github: github.com/$2/$1",
101-
"--─────────────────────────────────────────────────--",
102-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
97+
"\n",
98+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
99+
"-- ───────────────────────────────────────────────── --",
100+
"-- Plugin: $1",
101+
"-- Github: github.com/$2/$1",
102+
"-- ───────────────────────────────────────────────── --",
103+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
103104

104105
"\n\n\n\n",
105106

106-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
107-
"--━━━━━━━━━━━━━━━━━━━❰ configs ❱━━━━━━━━━━━━━━━━━━━--",
108-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
107+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
108+
"-- ━━━━━━━━━━━━━━━━━━━❰ configs ❱━━━━━━━━━━━━━━━━━━━ --",
109+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
109110
"\n$0\n",
110-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
111-
"--━━━━━━━━━━━━━━━━━❰ end configs ❱━━━━━━━━━━━━━━━━━--",
112-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
111+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
112+
"-- ━━━━━━━━━━━━━━━━━❰ end configs ❱━━━━━━━━━━━━━━━━━ --",
113+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
113114

114115
"\n\n\n",
115116

116-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
117-
"--━━━━━━━━━━━━━━━━━━━❰ Mappings ❱━━━━━━━━━━━━━━━━━━━--",
118-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
117+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
118+
"-- ━━━━━━━━━━━━━━━━━━━❰ Mappings ❱━━━━━━━━━━━━━━━━━━ --",
119+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
120+
"\n",
121+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
122+
"-- ━━━━━━━━━━━━━━━━━❰ end Mappings ❱━━━━━━━━━━━━━━━━ --",
123+
"-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --",
119124
"\n",
120-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
121-
"--━━━━━━━━━━━━━━━━━❰ end Mappings ❱━━━━━━━━━━━━━━━━--",
122-
"--━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━--",
123125
""
124126
]
125127
}
126128

127-
128129
}
130+

lua/configs.lua

Lines changed: 61 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
-- .______ ______ _______. __ __ .__ __. __ ____ ____ __ .___ ___.
23
-- | _ \ / __ \ / || | | | | \ | | | | \ \ / / | | | \/ |
34
-- | |_) | | | | | | (----`| |__| | | \| | | | \ \/ / | | | \ / |
@@ -19,91 +20,88 @@
1920
it's own config file. some settings are already default in neovim so you
2021
don't need to define explicitly but it won't make any difference
2122
:end of NOTE
22-
--]]
23-
24-
25-
local exec = vim.api.nvim_exec -- execute Vimscript
26-
local set = vim.opt -- global options
27-
local cmd = vim.cmd -- execute Vim commands
23+
--]] local exec = vim.api.nvim_exec -- execute Vimscript
24+
local set = vim.opt -- global options
25+
local cmd = vim.cmd -- execute Vim commands
2826
-- local fn = vim.fn -- call Vim functions
2927
-- local g = vim.g -- global variables
3028
-- local b = vim.bo -- buffer-scoped options
3129
-- local w = vim.wo -- windows-scoped options
3230

3331
cmd('colorscheme rvcs')
34-
set.guifont = 'DroidSansMono Nerd Font 11'
35-
set.termguicolors = true -- Enable GUI colors for the terminal to get truecolor
36-
set.list = true -- show whitespace
32+
set.guifont = 'DroidSansMono Nerd Font 11'
33+
set.termguicolors = true -- Enable GUI colors for the terminal to get truecolor
34+
set.list = true -- show whitespace
3735
set.listchars = {
38-
nbsp = '', -- CIRCLED REVERSE SOLIDUS (U+29B8, UTF-8: E2 A6 B8)
39-
extends = '»', -- RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00BB, UTF-8: C2 BB)
40-
precedes = '«', -- LEFT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00AB, UTF-8: C2 AB)
41-
tab = ' ', -- '▷─' WHITE RIGHT-POINTING TRIANGLE (U+25B7, UTF-8: E2 96 B7) + BOX DRAWINGS HEAVY TRIPLE DASH HORIZONTAL (U+2505, UTF-8: E2 94 85)
42-
trail = '', -- BULLET (U+2022, UTF-8: E2 80 A2)
43-
space = ' '
36+
nbsp = '', -- CIRCLED REVERSE SOLIDUS (U+29B8, UTF-8: E2 A6 B8)
37+
extends = '»', -- RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00BB, UTF-8: C2 BB)
38+
precedes = '«', -- LEFT-POINTING DOUBLE ANGLE QUOTATION MARK (U+00AB, UTF-8: C2 AB)
39+
tab = ' ', -- '▷─' WHITE RIGHT-POINTING TRIANGLE (U+25B7, UTF-8: E2 96 B7) + BOX DRAWINGS HEAVY TRIPLE DASH HORIZONTAL (U+2505, UTF-8: E2 94 85)
40+
trail = '', -- BULLET (U+2022, UTF-8: E2 80 A2)
41+
space = ' ',
4442
}
4543
set.fillchars = {
46-
diff = '', -- BULLET OPERATOR (U+2219, UTF-8: E2 88 99)
47-
eob = ' ', -- NO-BREAK SPACE (U+00A0, UTF-8: C2 A0) to suppress ~ at EndOfBuffer
48-
fold = '·', -- MIDDLE DOT (U+00B7, UTF-8: C2 B7)
49-
vert = ' ' -- remove ugly vertical lines on window division
44+
diff = '', -- BULLET OPERATOR (U+2219, UTF-8: E2 88 99)
45+
eob = ' ', -- NO-BREAK SPACE (U+00A0, UTF-8: C2 A0) to suppress ~ at EndOfBuffer
46+
fold = '·', -- MIDDLE DOT (U+00B7, UTF-8: C2 B7)
47+
vert = ' ', -- remove ugly vertical lines on window division
5048
}
5149

5250
if root then
53-
set.shada = '' -- Don't create root-owned files.
54-
set.shadafile = 'NONE'
51+
set.shada = '' -- Don't create root-owned files.
52+
set.shadafile = 'NONE'
5553
else
56-
local backup_dir= vim.fn.expand('~/.cache/nvim')
57-
set.backup = true -- make backups before writing
58-
set.undofile = false -- persistent undos - undo after you re-open the file
59-
set.writebackup = true -- Make backup before overwriting the current buffer
60-
set.backupcopy = 'yes' -- Overwrite the original backup file
61-
set.directory = backup_dir .. '/swap' -- directory to place swap files in
62-
set.backupdir = backup_dir .. '/backedUP' -- where to put backup files
63-
set.undodir = backup_dir .. '/undos' -- where to put undo files
64-
set.viewdir = backup_dir .. '/view' -- where to store files for :mkview
65-
set.shada = "'100,<50,f50,n~/.cache/nvim/shada/shada"
54+
local backup_dir = vim.fn.expand('~/.cache/nvim')
55+
set.backup = true -- make backups before writing
56+
set.undofile = false -- persistent undos - undo after you re-open the file
57+
set.writebackup = true -- Make backup before overwriting the current buffer
58+
set.backupcopy = 'yes' -- Overwrite the original backup file
59+
set.directory = backup_dir .. '/swap' -- directory to place swap files in
60+
set.backupdir = backup_dir .. '/backedUP' -- where to put backup files
61+
set.undodir = backup_dir .. '/undos' -- where to put undo files
62+
set.viewdir = backup_dir .. '/view' -- where to store files for :mkview
63+
set.shada = "'100,<50,f50,n~/.cache/nvim/shada/shada"
6664
end
6765

68-
set.clipboard = set.clipboard + "unnamedplus" -- copy & paste
69-
set.wrap = false -- don't automatically wrap on load
70-
set.showmatch = true -- show the matching part of the pair for [] {} and ()
66+
set.clipboard = set.clipboard + "unnamedplus" -- copy & paste
67+
set.wrap = false -- don't automatically wrap on load
68+
set.showmatch = true -- show the matching part of the pair for [] {} and ()
7169

72-
set.cursorline = true -- highlight current line
73-
set.number = true -- show line numbers
74-
set.relativenumber = false -- show relative line number
70+
set.cursorline = true -- highlight current line
71+
set.number = true -- show line numbers
72+
set.relativenumber = false -- show relative line number
7573

76-
set.incsearch = true -- incremental search
77-
set.hlsearch = true -- highlighted search results
78-
set.ignorecase = true -- ignore case sensetive while searching
79-
set.smartcase = true
74+
set.incsearch = true -- incremental search
75+
set.hlsearch = true -- highlighted search results
76+
set.ignorecase = true -- ignore case sensetive while searching
77+
set.smartcase = true
8078

81-
set.scrolloff = 1 -- when scrolling, keep cursor 1 lines away from screen border
82-
set.sidescrolloff = 2 -- keep 30 columns visible left and right of the cursor at all times
83-
set.backspace = 'indent,start,eol' -- make backspace behave like normal again
79+
set.scrolloff = 1 -- when scrolling, keep cursor 1 lines away from screen border
80+
set.sidescrolloff = 2 -- keep 30 columns visible left and right of the cursor at all times
81+
set.backspace = 'indent,start,eol' -- make backspace behave like normal again
8482
-- set.mouse = "a" -- turn on mouse interaction
85-
set.updatetime = 500 -- CursorHold interval
86-
87-
set.softtabstop = 4
88-
set.shiftwidth = 4 -- spaces per tab (when shifting), when using the >> or << commands, shift lines by 4 spaces
89-
set.tabstop = 4 -- spaces per tab
90-
set.smarttab = true -- <tab>/<BS> indent/dedent in leading whitespace
91-
set.autoindent = true -- maintain indent of current line
92-
set.expandtab = false -- don't expand tabs into spaces
93-
set.shiftround = true
94-
95-
set.splitbelow = true -- open horizontal splits below current window
96-
set.splitright = true -- open vertical splits to the right of the current window
97-
set.laststatus = 2 -- always show status line
83+
set.updatetime = 500 -- CursorHold interval
84+
85+
set.softtabstop = 4
86+
set.shiftwidth = 4 -- spaces per tab (when shifting), when using the >> or << commands, shift lines by 4 spaces
87+
set.tabstop = 4 -- spaces per tab
88+
set.smarttab = true -- <tab>/<BS> indent/dedent in leading whitespace
89+
set.autoindent = true -- maintain indent of current line
90+
set.expandtab = false -- don't expand tabs into spaces
91+
set.shiftround = true
92+
93+
set.splitbelow = true -- open horizontal splits below current window
94+
set.splitright = true -- open vertical splits to the right of the current window
95+
set.laststatus = 2 -- always show status line
9896
-- set.colorcolumn = "79" -- vertical word limit line
9997

100-
set.hidden = true -- allows you to hide buffers with unsaved changes without being prompted
101-
set.inccommand = 'split' -- live preview of :s results
102-
set.shell = 'zsh' -- shell to use for `!`, `:!`, `system()` etc.
103-
set.lazyredraw = true -- faster scrolling
98+
set.hidden = true -- allows you to hide buffers with unsaved changes without being prompted
99+
set.inccommand = 'split' -- live preview of :s results
100+
set.shell = 'zsh' -- shell to use for `!`, `:!`, `system()` etc.
101+
set.lazyredraw = true -- faster scrolling
104102

105-
set.wildignore = set.wildignore + '*.o,*.rej,*.so' -- patterns to ignore during file-navigation
106-
set.completeopt = 'menuone,noselect,noinsert' -- completion options
103+
set.wildignore = set.wildignore + '*.o,*.rej,*.so' -- patterns to ignore during file-navigation
104+
set.completeopt = 'menuone,noselect,noinsert' -- completion options
107105

108106

109107
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --

0 commit comments

Comments
 (0)