Skip to content

Commit 0f09064

Browse files
committed
Migrate nvim config to LazyVim
1 parent e7309b1 commit 0f09064

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1002
-3841
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ vim/.vim/.netrwhist
77
nvim/.nvim/plugin
88
nvim/.nvim/tmp
99
nvim/.nvim/spell/*.spl
10+
nvim/.nvim/lazy-lock.json
1011
nvim/.nvim/.netrwhist
1112
bash/.bash/tmp
1213
zsh/.zsh/tmp

bash/.bash/exports.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ else
1818
export EDITOR="vim"
1919
fi
2020

21+
# Terminal capabilities
22+
if [ "$TERM" != "linux" ]; then
23+
export TERM_NERD_FONT_ENABLED="true"
24+
export TERM_UNICODE_ENABLED="true"
25+
# could be checked with `tput colors`
26+
export TERM_COLORS=256
27+
else
28+
export TERM_NERD_FONT_ENABLED="false"
29+
export TERM_UNICODE_ENABLED="false"
30+
export TERM_COLORS=8
31+
fi
32+
2133
# ShellCheck ignore some errors by default
2234
export SHELLCHECK_OPTS="-e SC2155 -e SC1090 -e SC1091"
2335

check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ checkBashScripts() {
1818
-not -path "*/plugins/*" \
1919
-not -path "*/tmp/*" \
2020
-not -path "*/.luarocks/*" \
21-
-not -path "./_sysinit/*/templates/*")"
21+
-not -path "./_init/*/templates/*")"
2222
echo -e "\n>>> Running ShellCheck for bash"
2323
shellcheck $files
2424
echo -e "<<< ShellCheck passed\n"

common/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euf -o pipefail
33

44
declare -r DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && echo "$PWD")"
55
source "$DIR/../bash/.bash/util/terminal.sh"
6+
source "$DIR/../bash/.bash/plugins/systype.sh"
67

78
linkFile() {
89
local -r file="$HOME/.dotfiles/common/$1"
@@ -23,5 +24,10 @@ linkFile() {
2324
linkFile "bat.conf" "$HOME/.config/bat/config"
2425
linkFile "ranger.conf" "$HOME/.config/ranger/rc.conf"
2526
linkFile "ghostty.conf" "$HOME/.config/ghostty/config"
27+
linkFile "lazygit.yml" "$HOME/.config/lazygit/config.yml"
28+
29+
if [ "$SYSTYPE" == "macos" ]; then
30+
linkFile "lazygit.yml" "$HOME/Library/Application\ Support/jesseduffield/lazygit/config.yml"
31+
fi
2632

2733
printSuccess "Installed: common"

common/lazygit.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# tokyonight-night
2+
# https://github.com/folke/tokyonight.nvim/blob/main/extras/lazygit/tokyonight_night.conf
3+
gui:
4+
nerdFontsVersion: "3"
5+
theme:
6+
activeBorderColor:
7+
- "#ff9e64"
8+
- "bold"
9+
inactiveBorderColor:
10+
- "#27a1b9"
11+
searchingActiveBorderColor:
12+
- "#ff9e64"
13+
- "bold"
14+
optionsTextColor:
15+
- "#7aa2f7"
16+
selectedLineBgColor:
17+
- "#283457"
18+
cherryPickedCommitFgColor:
19+
- "#7aa2f7"
20+
cherryPickedCommitBgColor:
21+
- "#bb9af7"
22+
markedBaseCommitFgColor:
23+
- "#7aa2f7"
24+
markedBaseCommitBgColor:
25+
- "#e0af68"
26+
unstagedChangesColor:
27+
- "#db4b4b"
28+
defaultFgColor:
29+
- "#c0caf5"

nvim/.nvim/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tt.*
2+
.tests
3+
doc/tags
4+
debug
5+
.repro
6+
foo.*
7+
*.log
8+
data

nvim/.nvim/.neoconf.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"neodev": {
3+
"library": {
4+
"enabled": true,
5+
"plugins": true
6+
}
7+
},
8+
"neoconf": {
9+
"plugins": {
10+
"lua_ls": {
11+
"enabled": true
12+
}
13+
}
14+
}
15+
}

nvim/.nvim/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 💤 LazyVim
2+
3+
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
4+
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.

nvim/.nvim/init.lua

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
-- Store startup time in seconds
2-
vim.g.start_time = vim.fn.reltime()
3-
4-
-- Load configs and plugins
5-
require("settings")
6-
require("automatic")
7-
require("keybindings")
8-
require("filetype")
9-
require("plugins")
10-
11-
-- To see startup times run :messages
12-
print("Loaded in " .. vim.fn.printf("%.3f", vim.fn.reltimefloat(vim.fn.reltime(vim.g.start_time))) .. "s")
1+
-- bootstrap lazy.nvim, LazyVim and your plugins
2+
require("config.lazy")

nvim/.nvim/lazyvim.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extras": [
3+
"lazyvim.plugins.extras.coding.yanky",
4+
"lazyvim.plugins.extras.lang.docker",
5+
"lazyvim.plugins.extras.lang.go",
6+
"lazyvim.plugins.extras.lang.json",
7+
"lazyvim.plugins.extras.lang.markdown",
8+
"lazyvim.plugins.extras.lang.python",
9+
"lazyvim.plugins.extras.lang.rust",
10+
"lazyvim.plugins.extras.lang.sql",
11+
"lazyvim.plugins.extras.lang.tailwind",
12+
"lazyvim.plugins.extras.lang.terraform",
13+
"lazyvim.plugins.extras.lang.toml",
14+
"lazyvim.plugins.extras.lang.typescript",
15+
"lazyvim.plugins.extras.lang.yaml",
16+
"lazyvim.plugins.extras.lang.zig",
17+
"lazyvim.plugins.extras.util.mini-hipatterns"
18+
],
19+
"install_version": 8,
20+
"news": {
21+
"NEWS.md": "11866"
22+
},
23+
"version": 8
24+
}

0 commit comments

Comments
 (0)