added stow
This commit is contained in:
78
.config/alacritty/alacritty.toml
Normal file
78
.config/alacritty/alacritty.toml
Normal file
@@ -0,0 +1,78 @@
|
||||
import = ["~/.config/alacritty/themes/rose-pine.toml"]
|
||||
|
||||
[env]
|
||||
TERM = "xterm-256color"
|
||||
|
||||
[font]
|
||||
size = 16.0
|
||||
|
||||
[font.bold]
|
||||
style = "Bold"
|
||||
|
||||
[font.glyph_offset]
|
||||
x = 0
|
||||
y = 1
|
||||
|
||||
[font.normal]
|
||||
family = "MesloLGS Nerd Font Mono"
|
||||
|
||||
[font.italic]
|
||||
style = "Italic"
|
||||
|
||||
[mouse]
|
||||
hide_when_typing = true
|
||||
|
||||
[cursor]
|
||||
style = "Beam"
|
||||
|
||||
[scrolling]
|
||||
history = 1000
|
||||
|
||||
[window]
|
||||
decorations = "none"
|
||||
opacity = 0.95
|
||||
|
||||
[window.dimensions]
|
||||
columns = 98
|
||||
lines = 28
|
||||
|
||||
[window.padding]
|
||||
x = 0
|
||||
y = 0
|
||||
|
||||
# macOS copy/paste
|
||||
[[keyboard.bindings]]
|
||||
action = "Paste"
|
||||
key = "v"
|
||||
mods = "Command"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
action = "Copy"
|
||||
key = "c"
|
||||
mods = "Command"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
action = "ToggleFullscreen"
|
||||
key = "Return"
|
||||
mods = "Control"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
chars = "\u001B[1;5C"
|
||||
key = "Right"
|
||||
mods = "Option"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
chars = "\u001B[1;5D"
|
||||
key = "Left"
|
||||
mods = "Option"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
chars = "\u0015"
|
||||
key = "Backspace"
|
||||
mods = "Command"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
key = "K"
|
||||
mods = "Command"
|
||||
mode = "~Vi|~Search"
|
||||
action = "ClearHistory"
|
||||
75
.config/alacritty/themes/catppuccin-mocha.toml
Normal file
75
.config/alacritty/themes/catppuccin-mocha.toml
Normal file
@@ -0,0 +1,75 @@
|
||||
[colors.primary]
|
||||
background = "#1E1E2E"
|
||||
foreground = "#CDD6F4"
|
||||
dim_foreground = "#CDD6F4"
|
||||
bright_foreground = "#CDD6F4"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#1E1E2E"
|
||||
cursor = "#F5E0DC"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#1E1E2E"
|
||||
cursor = "#B4BEFE"
|
||||
|
||||
[colors.search.matches]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6ADC8"
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6E3A1"
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6ADC8"
|
||||
|
||||
[colors.hints.start]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#F9E2AF"
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = "#1E1E2E"
|
||||
background = "#A6ADC8"
|
||||
|
||||
[colors.selection]
|
||||
text = "#1E1E2E"
|
||||
background = "#F5E0DC"
|
||||
|
||||
[colors.normal]
|
||||
black = "#45475A"
|
||||
red = "#F38BA8"
|
||||
green = "#A6E3A1"
|
||||
yellow = "#F9E2AF"
|
||||
blue = "#89B4FA"
|
||||
magenta = "#F5C2E7"
|
||||
cyan = "#94E2D5"
|
||||
white = "#BAC2DE"
|
||||
|
||||
[colors.bright]
|
||||
black = "#585B70"
|
||||
red = "#F38BA8"
|
||||
green = "#A6E3A1"
|
||||
yellow = "#F9E2AF"
|
||||
blue = "#89B4FA"
|
||||
magenta = "#F5C2E7"
|
||||
cyan = "#94E2D5"
|
||||
white = "#A6ADC8"
|
||||
|
||||
[colors.dim]
|
||||
black = "#45475A"
|
||||
red = "#F38BA8"
|
||||
green = "#A6E3A1"
|
||||
yellow = "#F9E2AF"
|
||||
blue = "#89B4FA"
|
||||
magenta = "#F5C2E7"
|
||||
cyan = "#94E2D5"
|
||||
white = "#BAC2DE"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = "#FAB387"
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = "#F5E0DC"
|
||||
75
.config/alacritty/themes/rose-pine.toml
Normal file
75
.config/alacritty/themes/rose-pine.toml
Normal file
@@ -0,0 +1,75 @@
|
||||
# Colors section of "Alacritty - TOML configuration file format"
|
||||
# https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd#colors
|
||||
|
||||
[colors.primary]
|
||||
foreground = "#e0def4"
|
||||
background = "#191724"
|
||||
dim_foreground = "#908caa"
|
||||
bright_foreground = "#e0def4"
|
||||
|
||||
[colors.cursor]
|
||||
text = "#e0def4"
|
||||
cursor = "#524f67"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = "#e0def4"
|
||||
cursor = "#524f67"
|
||||
|
||||
[colors.search.matches]
|
||||
foreground = "#908caa"
|
||||
background = "#26233a"
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = "#191724"
|
||||
background = "#ebbcba"
|
||||
|
||||
[colors.hints.start]
|
||||
foreground = "#908caa"
|
||||
background = "#1f1d2e"
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = "#6e6a86"
|
||||
background = "#1f1d2e"
|
||||
|
||||
[colors.line_indicator]
|
||||
foreground = "None"
|
||||
background = "None"
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = "#e0def4"
|
||||
background = "#1f1d2e"
|
||||
|
||||
[colors.selection]
|
||||
text = "#e0def4"
|
||||
background = "#403d52"
|
||||
|
||||
[colors.normal]
|
||||
black = "#26233a"
|
||||
red = "#eb6f92"
|
||||
green = "#31748f"
|
||||
yellow = "#f6c177"
|
||||
blue = "#9ccfd8"
|
||||
magenta = "#c4a7e7"
|
||||
cyan = "#ebbcba"
|
||||
white = "#e0def4"
|
||||
|
||||
[colors.bright]
|
||||
black = "#6e6a86"
|
||||
red = "#eb6f92"
|
||||
green = "#31748f"
|
||||
yellow = "#f6c177"
|
||||
blue = "#9ccfd8"
|
||||
magenta = "#c4a7e7"
|
||||
cyan = "#ebbcba"
|
||||
white = "#e0def4"
|
||||
|
||||
[colors.dim]
|
||||
black = "#6e6a86"
|
||||
red = "#eb6f92"
|
||||
green = "#31748f"
|
||||
yellow = "#f6c177"
|
||||
blue = "#9ccfd8"
|
||||
magenta = "#c4a7e7"
|
||||
cyan = "#ebbcba"
|
||||
white = "#e0def4"
|
||||
|
||||
218
.config/btop/btop.conf
Normal file
218
.config/btop/btop.conf
Normal file
@@ -0,0 +1,218 @@
|
||||
#? Config file for btop v. 1.4.0
|
||||
|
||||
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
|
||||
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
|
||||
color_theme = "Default"
|
||||
|
||||
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||
theme_background = False
|
||||
|
||||
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
|
||||
truecolor = False
|
||||
|
||||
#* Set to true to force tty mode regardless if a real tty has been detected or not.
|
||||
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
|
||||
force_tty = False
|
||||
|
||||
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
|
||||
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
|
||||
#* Use whitespace " " as separator between different presets.
|
||||
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
|
||||
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
|
||||
|
||||
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
|
||||
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
|
||||
vim_keys = True
|
||||
|
||||
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
||||
rounded_corners = True
|
||||
|
||||
#* Default symbols to use for graph creation, "braille", "block" or "tty".
|
||||
#* "braille" offers the highest resolution but might not be included in all fonts.
|
||||
#* "block" has half the resolution of braille but uses more common characters.
|
||||
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
|
||||
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
|
||||
graph_symbol = "braille"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_cpu = "default"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_mem = "default"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_net = "default"
|
||||
|
||||
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||
graph_symbol_proc = "default"
|
||||
|
||||
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
|
||||
shown_boxes = "cpu mem net proc"
|
||||
|
||||
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
|
||||
update_ms = 2000
|
||||
|
||||
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
||||
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
||||
proc_sorting = "memory"
|
||||
|
||||
#* Reverse sorting order, True or False.
|
||||
proc_reversed = False
|
||||
|
||||
#* Show processes as a tree.
|
||||
proc_tree = True
|
||||
|
||||
#* Use the cpu graph colors in the process list.
|
||||
proc_colors = True
|
||||
|
||||
#* Use a darkening gradient in the process list.
|
||||
proc_gradient = True
|
||||
|
||||
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
|
||||
proc_per_core = False
|
||||
|
||||
#* Show process memory as bytes instead of percent.
|
||||
proc_mem_bytes = True
|
||||
|
||||
#* Show cpu graph for each process.
|
||||
proc_cpu_graphs = True
|
||||
|
||||
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
|
||||
proc_info_smaps = False
|
||||
|
||||
#* Show proc box on left side of screen instead of right.
|
||||
proc_left = False
|
||||
|
||||
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
||||
proc_filter_kernel = False
|
||||
|
||||
#* In tree-view, always accumulate child process resources in the parent process.
|
||||
proc_aggregate = False
|
||||
|
||||
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
||||
#* Select from a list of detected attributes from the options menu.
|
||||
cpu_graph_upper = "Auto"
|
||||
|
||||
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
|
||||
#* Select from a list of detected attributes from the options menu.
|
||||
cpu_graph_lower = "Auto"
|
||||
|
||||
#* Toggles if the lower CPU graph should be inverted.
|
||||
cpu_invert_lower = True
|
||||
|
||||
#* Set to True to completely disable the lower CPU graph.
|
||||
cpu_single_graph = False
|
||||
|
||||
#* Show cpu box at bottom of screen instead of top.
|
||||
cpu_bottom = False
|
||||
|
||||
#* Shows the system uptime in the CPU box.
|
||||
show_uptime = True
|
||||
|
||||
#* Show cpu temperature.
|
||||
check_temp = True
|
||||
|
||||
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
|
||||
cpu_sensor = "Auto"
|
||||
|
||||
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
|
||||
show_coretemp = True
|
||||
|
||||
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
|
||||
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
|
||||
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
|
||||
#* Example: "4:0 5:1 6:3"
|
||||
cpu_core_map = ""
|
||||
|
||||
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
|
||||
temp_scale = "celsius"
|
||||
|
||||
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
|
||||
base_10_sizes = False
|
||||
|
||||
#* Show CPU frequency.
|
||||
show_cpu_freq = True
|
||||
|
||||
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
|
||||
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
||||
clock_format = "%X"
|
||||
|
||||
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
|
||||
background_update = True
|
||||
|
||||
#* Custom cpu model name, empty string to disable.
|
||||
custom_cpu_name = ""
|
||||
|
||||
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
|
||||
#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user".
|
||||
disks_filter = ""
|
||||
|
||||
#* Show graphs instead of meters for memory values.
|
||||
mem_graphs = True
|
||||
|
||||
#* Show mem box below net box instead of above.
|
||||
mem_below_net = False
|
||||
|
||||
#* Count ZFS ARC in cached and available memory.
|
||||
zfs_arc_cached = True
|
||||
|
||||
#* If swap memory should be shown in memory box.
|
||||
show_swap = True
|
||||
|
||||
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
|
||||
swap_disk = True
|
||||
|
||||
#* If mem box should be split to also show disks info.
|
||||
show_disks = True
|
||||
|
||||
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
||||
only_physical = True
|
||||
|
||||
#* Read disks list from /etc/fstab. This also disables only_physical.
|
||||
use_fstab = True
|
||||
|
||||
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
|
||||
zfs_hide_datasets = False
|
||||
|
||||
#* Set to true to show available disk space for privileged users.
|
||||
disk_free_priv = False
|
||||
|
||||
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
|
||||
show_io_stat = True
|
||||
|
||||
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
||||
io_mode = False
|
||||
|
||||
#* Set to True to show combined read/write io graphs in io mode.
|
||||
io_graph_combined = False
|
||||
|
||||
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
|
||||
#* Example: "/mnt/media:100 /:20 /boot:1".
|
||||
io_graph_speeds = ""
|
||||
|
||||
#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False.
|
||||
net_download = 100
|
||||
|
||||
net_upload = 100
|
||||
|
||||
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
|
||||
net_auto = True
|
||||
|
||||
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
|
||||
net_sync = True
|
||||
|
||||
#* Starts with the Network Interface specified here.
|
||||
net_iface = ""
|
||||
|
||||
#* Show battery stats in top right if battery is present.
|
||||
show_battery = True
|
||||
|
||||
#* Which battery to use if multiple are present. "Auto" for auto detection.
|
||||
selected_battery = "Auto"
|
||||
|
||||
#* Show power stats of battery next to charge indicator.
|
||||
show_battery_watts = True
|
||||
|
||||
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||
log_level = "WARNING"
|
||||
109
.config/fastfetch/config.jsonc
Normal file
109
.config/fastfetch/config.jsonc
Normal file
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||
"logo": {
|
||||
"padding": {
|
||||
"top": 2
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"separator": " ➜ "
|
||||
},
|
||||
"modules": [
|
||||
"break",
|
||||
"break",
|
||||
"break",
|
||||
{
|
||||
"type": "os",
|
||||
"key": "OS ",
|
||||
"keyColor": "31"
|
||||
},
|
||||
{
|
||||
"type": "kernel",
|
||||
"key": " ├ ",
|
||||
"keyColor": "31",
|
||||
},
|
||||
{
|
||||
"type": "packages",
|
||||
"format": "{} (brew)",
|
||||
"key": " ├ ",
|
||||
"keyColor": "31",
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"key": " └ ",
|
||||
"keyColor": "31",
|
||||
},
|
||||
"break",
|
||||
{
|
||||
"type": "wm",
|
||||
"key": "WM ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "wmtheme",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "icons",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "cursor",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "terminal",
|
||||
"key": " ├ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
{
|
||||
"type": "terminalfont",
|
||||
"key": " └ ",
|
||||
"keyColor": "32",
|
||||
},
|
||||
"break",
|
||||
{
|
||||
"type": "host",
|
||||
"format": "{5} {1} Type {2}",
|
||||
"key": "PC ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "cpu",
|
||||
"format": "{1} ({3}) @ {7} GHz",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "gpu",
|
||||
"format": "{1} {2} @ {12} GHz",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "memory",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "swap",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "disk",
|
||||
"key": " ├ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
{
|
||||
"type": "monitor",
|
||||
"key": " └ ",
|
||||
"keyColor": "33",
|
||||
},
|
||||
"break",
|
||||
"break",
|
||||
]
|
||||
}
|
||||
7
.config/git/config
Normal file
7
.config/git/config
Normal file
@@ -0,0 +1,7 @@
|
||||
[credential]
|
||||
helper = cache
|
||||
[user]
|
||||
name = Kulvir Singh
|
||||
email = kulvirs734@gmail.com
|
||||
[init]
|
||||
defaultBranch = trunk
|
||||
BIN
.config/kitty/kitty-dark.icns
Normal file
BIN
.config/kitty/kitty-dark.icns
Normal file
Binary file not shown.
51
.config/kitty/kitty.conf
Normal file
51
.config/kitty/kitty.conf
Normal file
@@ -0,0 +1,51 @@
|
||||
include themes/carbonfox.conf
|
||||
|
||||
font_family MesloLGS Nerd Font Mono
|
||||
|
||||
font_size 14.0
|
||||
|
||||
cursor_shape beam
|
||||
|
||||
background_opacity 0.9
|
||||
background_blur 10
|
||||
|
||||
|
||||
enable_audio_bell no
|
||||
# draw_minimal_borders no
|
||||
hide_window_decorations yes
|
||||
|
||||
# tab bar at bottom
|
||||
tab_bar_style powerline
|
||||
tab_bar_min_tabs 2
|
||||
tab_title_template "{index}:{tab.active_exe}"
|
||||
active_tab_title_template "{index}:{tab.active_exe}*"
|
||||
tab_bar_background none
|
||||
|
||||
macos_quit_when_last_window_closed yes
|
||||
macos_titlebar_color background
|
||||
macos_show_window_title_in none
|
||||
|
||||
shell_integration enabled
|
||||
|
||||
map kitty_mod+enter no_op
|
||||
map cmd+enter no_op
|
||||
|
||||
|
||||
# Jump to tabs
|
||||
map cmd+1 goto_tab 1
|
||||
map cmd+2 goto_tab 2
|
||||
map cmd+3 goto_tab 3
|
||||
map cmd+4 goto_tab 4
|
||||
map cmd+5 goto_tab 5
|
||||
map cmd+6 goto_tab 6
|
||||
map cmd+7 goto_tab 7
|
||||
map cmd+8 goto_tab 8
|
||||
map cmd+9 goto_tab 9
|
||||
|
||||
map cmd+t new_tab_with_cwd
|
||||
|
||||
# macOS nightmares - CMD/Option navs
|
||||
map cmd+backspace send_text all \x15
|
||||
map alt+backspace send_text all \x17
|
||||
map cmd+left send_text all \x01
|
||||
map cmd+right send_text all \x05
|
||||
80
.config/kitty/themes/Catppuccin_Mocha.conf
Normal file
80
.config/kitty/themes/Catppuccin_Mocha.conf
Normal file
@@ -0,0 +1,80 @@
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Catppuccin-Mocha
|
||||
## author: Pocco81 (https://github.com/Pocco81)
|
||||
## license: MIT
|
||||
## upstream: https://github.com/catppuccin/kitty/blob/main/mocha.conf
|
||||
## blurb: Soothing pastel theme for the high-spirited!
|
||||
|
||||
|
||||
|
||||
# The basic colors
|
||||
foreground #CDD6F4
|
||||
background #1E1E2E
|
||||
selection_foreground #1E1E2E
|
||||
selection_background #F5E0DC
|
||||
|
||||
# Cursor colors
|
||||
cursor #F5E0DC
|
||||
cursor_text_color #1E1E2E
|
||||
|
||||
# URL underline color when hovering with mouse
|
||||
url_color #F5E0DC
|
||||
|
||||
# Kitty window border colors
|
||||
active_border_color #B4BEFE
|
||||
inactive_border_color #6C7086
|
||||
bell_border_color #F9E2AF
|
||||
|
||||
# OS Window titlebar colors
|
||||
wayland_titlebar_color system
|
||||
macos_titlebar_color system
|
||||
|
||||
# Tab bar colors
|
||||
active_tab_foreground #11111B
|
||||
active_tab_background #CBA6F7
|
||||
inactive_tab_foreground #CDD6F4
|
||||
inactive_tab_background #181825
|
||||
tab_bar_background #11111B
|
||||
|
||||
# Colors for marks (marked text in the terminal)
|
||||
mark1_foreground #1E1E2E
|
||||
mark1_background #B4BEFE
|
||||
mark2_foreground #1E1E2E
|
||||
mark2_background #CBA6F7
|
||||
mark3_foreground #1E1E2E
|
||||
mark3_background #74C7EC
|
||||
|
||||
# The 16 terminal colors
|
||||
|
||||
# black
|
||||
color0 #45475A
|
||||
color8 #585B70
|
||||
|
||||
# red
|
||||
color1 #F38BA8
|
||||
color9 #F38BA8
|
||||
|
||||
# green
|
||||
color2 #A6E3A1
|
||||
color10 #A6E3A1
|
||||
|
||||
# yellow
|
||||
color3 #F9E2AF
|
||||
color11 #F9E2AF
|
||||
|
||||
# blue
|
||||
color4 #89B4FA
|
||||
color12 #89B4FA
|
||||
|
||||
# magenta
|
||||
color5 #F5C2E7
|
||||
color13 #F5C2E7
|
||||
|
||||
# cyan
|
||||
color6 #94E2D5
|
||||
color14 #94E2D5
|
||||
|
||||
# white
|
||||
color7 #BAC2DE
|
||||
color15 #A6ADC8
|
||||
33
.config/kitty/themes/Gruvbox_Dark_Hard.conf
Normal file
33
.config/kitty/themes/Gruvbox_Dark_Hard.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
## name: Gruvbox Dark Hard
|
||||
## author: Pavel Pertsev
|
||||
## license: MIT/X11
|
||||
## upstream: https://raw.githubusercontent.com/gruvbox-community/gruvbox-contrib/master/kitty/gruvbox-dark-hard.conf
|
||||
|
||||
|
||||
selection_foreground #ebdbb2
|
||||
selection_background #d65d0e
|
||||
|
||||
background #1d2021
|
||||
foreground #ebdbb2
|
||||
|
||||
color0 #3c3836
|
||||
color1 #cc241d
|
||||
color2 #98971a
|
||||
color3 #d79921
|
||||
color4 #458588
|
||||
color5 #b16286
|
||||
color6 #689d6a
|
||||
color7 #a89984
|
||||
color8 #928374
|
||||
color9 #fb4934
|
||||
color10 #b8bb26
|
||||
color11 #fabd2f
|
||||
color12 #83a598
|
||||
color13 #d3869b
|
||||
color14 #8ec07c
|
||||
color15 #fbf1c7
|
||||
|
||||
cursor #bdae93
|
||||
cursor_text_color #665c54
|
||||
|
||||
url_color #458588
|
||||
53
.config/kitty/themes/Rose_Pine.conf
Normal file
53
.config/kitty/themes/Rose_Pine.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
## name: Rosé Pine
|
||||
## author: mvllow
|
||||
## license: MIT
|
||||
## upstream: https://github.com/rose-pine/kitty/blob/main/dist/rose-pine.conf
|
||||
## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist
|
||||
|
||||
foreground #e0def4
|
||||
background #191724
|
||||
selection_foreground #e0def4
|
||||
selection_background #403d52
|
||||
|
||||
cursor #524f67
|
||||
cursor_text_color #e0def4
|
||||
|
||||
url_color #c4a7e7
|
||||
|
||||
active_tab_foreground #e0def4
|
||||
active_tab_background #26233a
|
||||
inactive_tab_foreground #6e6a86
|
||||
inactive_tab_background #191724
|
||||
|
||||
# black
|
||||
color0 #26233a
|
||||
color8 #6e6a86
|
||||
|
||||
# red
|
||||
color1 #eb6f92
|
||||
color9 #eb6f92
|
||||
|
||||
# green
|
||||
color2 #31748f
|
||||
color10 #31748f
|
||||
|
||||
# yellow
|
||||
color3 #f6c177
|
||||
color11 #f6c177
|
||||
|
||||
# blue
|
||||
color4 #9ccfd8
|
||||
color12 #9ccfd8
|
||||
|
||||
# magenta
|
||||
color5 #c4a7e7
|
||||
color13 #c4a7e7
|
||||
|
||||
# cyan
|
||||
color6 #ebbcba
|
||||
color14 #ebbcba
|
||||
|
||||
# white
|
||||
color7 #e0def4
|
||||
color15 #e0def4
|
||||
|
||||
50
.config/kitty/themes/carbonfox.conf
Normal file
50
.config/kitty/themes/carbonfox.conf
Normal file
@@ -0,0 +1,50 @@
|
||||
# Nightfox colors for Kitty
|
||||
## name: carbonfox
|
||||
## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/carbonfox/kitty.conf
|
||||
|
||||
background #161616
|
||||
foreground #f2f4f8
|
||||
selection_background #2a2a2a
|
||||
selection_foreground #f2f4f8
|
||||
cursor_text_color #161616
|
||||
url_color #25be6a
|
||||
|
||||
# Cursor
|
||||
# uncomment for reverse background
|
||||
# cursor none
|
||||
cursor #f2f4f8
|
||||
|
||||
# Border
|
||||
active_border_color #78a9ff
|
||||
inactive_border_color #535353
|
||||
bell_border_color #3ddbd9
|
||||
|
||||
# Tabs
|
||||
active_tab_background #78a9ff
|
||||
active_tab_foreground #0c0c0c
|
||||
inactive_tab_background #2a2a2a
|
||||
inactive_tab_foreground #6e6f70
|
||||
|
||||
# normal
|
||||
color0 #282828
|
||||
color1 #ee5396
|
||||
color2 #25be6a
|
||||
color3 #08bdba
|
||||
color4 #78a9ff
|
||||
color5 #be95ff
|
||||
color6 #33b1ff
|
||||
color7 #dfdfe0
|
||||
|
||||
# bright
|
||||
color8 #484848
|
||||
color9 #f16da6
|
||||
color10 #46c880
|
||||
color11 #2dc7c4
|
||||
color12 #8cb6ff
|
||||
color13 #c8a5ff
|
||||
color14 #52bdff
|
||||
color15 #e4e4e5
|
||||
|
||||
# extended colors
|
||||
color16 #3ddbd9
|
||||
color17 #ff7eb6
|
||||
56
.config/nvim/init.lua
Normal file
56
.config/nvim/init.lua
Normal file
@@ -0,0 +1,56 @@
|
||||
--[[
|
||||
|
||||
=====================================================================
|
||||
==================== READ THIS BEFORE CONTINUING ====================
|
||||
=====================================================================
|
||||
======== .-----. ========
|
||||
======== .----------------------. | === | ========
|
||||
======== |.-""""""""""""""""""-.| |-----| ========
|
||||
======== || || | === | ========
|
||||
======== || KICKSTART.NVIM || |-----| ========
|
||||
======== || || | === | ========
|
||||
======== || || |-----| ========
|
||||
======== ||:Tutor || |:::::| ========
|
||||
======== |'-..................-'| |____o| ========
|
||||
======== `"")----------------(""` ___________ ========
|
||||
======== /::::::::::| |::::::::::\ \ no mouse \ ========
|
||||
======== /:::========| |==hjkl==:::\ \ required \ ========
|
||||
======== '""""""""""""' '""""""""""""' '""""""""""' ========
|
||||
======== ========
|
||||
=====================================================================
|
||||
=====================================================================
|
||||
|
||||
I hope you enjoy your Neovim journey,
|
||||
- TJ
|
||||
--]]
|
||||
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- netrw settings
|
||||
vim.g.netrw_banner = 0
|
||||
vim.g.netrw_browse_split = 0
|
||||
vim.g.netrw_winsize = 25
|
||||
vim.g.have_nerd_font = true
|
||||
|
||||
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
vim.fn.system {
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
}
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup({ import = "lilJ/plugins" }, {
|
||||
change_detection = {
|
||||
notify = false,
|
||||
},
|
||||
})
|
||||
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
44
.config/nvim/lazy-lock.json
Normal file
44
.config/nvim/lazy-lock.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
||||
"LuaSnip": { "branch": "master", "commit": "de1a287c9cb525ae52bc846e8f6207e5ef1da5ac" },
|
||||
"SchemaStore.nvim": { "branch": "main", "commit": "de73a884679a2461c53f96035894ef073a5a7f4f" },
|
||||
"catpuccin": { "branch": "main", "commit": "d97387aea8264f484bb5d5e74f2182a06c83e0d8" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"conform.nvim": { "branch": "master", "commit": "00f9d91391b04b1935e2f15948bd96cc111e7d3a" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "ef99df04a1c53a453602421bc0f756997edc8289" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "dd2fd1281d4b22e7b4a5bfafa3e142d958e251f2" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "805610a9393fa231f2c2b49cb521bfa413fadb3d" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "ece00d5fb44d196680a81fd2761062d2fa44663b" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "c501b429cf995c645454539b924aaefae45bb9eb" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "a4caa0d083aab56f6cd5acf2d42331b74614a585" },
|
||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "67210c0e775adec55de9826b038e8b62de554afc" },
|
||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "c1fbdcb0d8d1295314f1612c4a247253e70299d9" },
|
||||
"mason.nvim": { "branch": "main", "commit": "49ff59aded1047a773670651cfa40e76e63c6377" },
|
||||
"mini.nvim": { "branch": "main", "commit": "eb2dd6d187e1ab5fefec66f0d37b1a3dc8633d17" },
|
||||
"neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" },
|
||||
"nvim-dap": { "branch": "master", "commit": "5a2f7121869394502521c52b2bc581ab22c69447" },
|
||||
"nvim-dap-go": { "branch": "main", "commit": "5faf165f5062187320eaf9d177c3c1f647adc22e" },
|
||||
"nvim-dap-python": { "branch": "master", "commit": "7c427e2bbc72d46ea3c9602bede6465ef61b8c19" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "71bfe9bd6b3465e169b53bea4f83775034d822dd" },
|
||||
"nvim-dap-virtual-text": { "branch": "master", "commit": "3e8e207513e6ef520894950acd76b79902714103" },
|
||||
"nvim-lint": { "branch": "master", "commit": "1f98d6c863f91706369d74aeb2eb3f02b2e96861" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "9bda20fb967075355f253911bc066a8b5a03c77e" },
|
||||
"nvim-nio": { "branch": "master", "commit": "8765cbc4d0c629c8158a5341e1b4305fd93c3a90" },
|
||||
"nvim-tmux-navigation": { "branch": "main", "commit": "4898c98702954439233fdaf764c39636681e2861" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "7c9c5bed8340031f8a6dad47a58a26eaf15b9a56" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5f9bf4b1ead7707e4e74e5319ee56bdc81fb73db" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b5c8de02a44ffeabff678090edd6a132ff8ab77d" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "0.1.x", "commit": "d829aa64059001ee7b2c8c8aa9c4e6df0b17d893" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" },
|
||||
"vim-dadbod": { "branch": "master", "commit": "37523ffe0849b51db07fa7f48430c2aca5420a0e" },
|
||||
"vim-dadbod-completion": { "branch": "master", "commit": "5d5ad196fcde223509d7dabbade0148f7884c5e3" },
|
||||
"vim-dadbod-ui": { "branch": "master", "commit": "49dabb8717a43d757faaa0ceaadc8ee060709422" }
|
||||
}
|
||||
82
.config/nvim/lua/lilJ/completions.lua
Normal file
82
.config/nvim/lua/lilJ/completions.lua
Normal file
@@ -0,0 +1,82 @@
|
||||
local luasnip = require "luasnip"
|
||||
luasnip.config.setup {
|
||||
history = false,
|
||||
updateevents = "TextChanged,TextChangedI",
|
||||
}
|
||||
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
|
||||
local lspkind = require "lspkind"
|
||||
lspkind.init {}
|
||||
|
||||
local cmp = require "cmp"
|
||||
cmp.setup {
|
||||
window = {
|
||||
documentation = {
|
||||
border = "rounded",
|
||||
},
|
||||
completion = {
|
||||
border = "rounded",
|
||||
},
|
||||
},
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "path" },
|
||||
{ name = "buffer" },
|
||||
},
|
||||
completion = {
|
||||
completeopt = "menu, menuone, noinsert, noselect",
|
||||
},
|
||||
formatting = {
|
||||
fields = { "kind", "abbr", "menu" },
|
||||
expandable_indicator = true,
|
||||
format = lspkind.cmp_format {
|
||||
mode = "symbol",
|
||||
},
|
||||
},
|
||||
|
||||
-- No, but seriously. Please read `:help ins-completion`, it is really good!
|
||||
mapping = cmp.mapping.preset.insert {
|
||||
["<C-n>"] = cmp.mapping.select_next_item(),
|
||||
["<C-p>"] = cmp.mapping.select_prev_item(),
|
||||
|
||||
["<C-b>"] = cmp.mapping.scroll_docs(-4),
|
||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||
|
||||
["<C-y>"] = cmp.mapping.confirm { select = true },
|
||||
|
||||
["<C-Space>"] = cmp.mapping.complete {},
|
||||
|
||||
-- Think of <c-l> as moving to the right of your snippet expansion.
|
||||
-- So if you have a snippet that's like:
|
||||
-- function $name($args)
|
||||
-- $body
|
||||
-- end
|
||||
--
|
||||
-- <c-l> will move you to the right of each of the expansion locations.
|
||||
-- <c-h> is similar, except moving you backwards.
|
||||
["<C-l>"] = cmp.mapping(function()
|
||||
if luasnip.expand_or_locally_jumpable() then
|
||||
luasnip.expand_or_jump()
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
["<C-h>"] = cmp.mapping(function()
|
||||
if luasnip.locally_jumpable(-1) then
|
||||
luasnip.jump(-1)
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
},
|
||||
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require("luasnip").lsp_expand(args.body)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
cmp.setup.filetype({ "sql" }, {
|
||||
sources = {
|
||||
{ name = "vim-dadbod-completion" },
|
||||
{ name = "buffer" },
|
||||
},
|
||||
})
|
||||
52
.config/nvim/lua/lilJ/health.lua
Normal file
52
.config/nvim/lua/lilJ/health.lua
Normal file
@@ -0,0 +1,52 @@
|
||||
--[[
|
||||
--
|
||||
-- This file is not required for your own configuration,
|
||||
-- but helps people determine if their system is setup correctly.
|
||||
--
|
||||
--]]
|
||||
|
||||
local check_version = function()
|
||||
local verstr = string.format("%s.%s.%s", vim.version().major, vim.version().minor, vim.version().patch)
|
||||
if not vim.version.cmp then
|
||||
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
|
||||
return
|
||||
end
|
||||
|
||||
if vim.version.cmp(vim.version(), { 0, 9, 4 }) >= 0 then
|
||||
vim.health.ok(string.format("Neovim version is: '%s'", verstr))
|
||||
else
|
||||
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
|
||||
end
|
||||
end
|
||||
|
||||
local check_external_reqs = function()
|
||||
-- Basic utils: `git`, `make`, `unzip`
|
||||
for _, exe in ipairs({ "git", "make", "unzip", "rg" }) do
|
||||
local is_executable = vim.fn.executable(exe) == 1
|
||||
if is_executable then
|
||||
vim.health.ok(string.format("Found executable: '%s'", exe))
|
||||
else
|
||||
vim.health.warn(string.format("Could not find executable: '%s'", exe))
|
||||
end
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
return {
|
||||
check = function()
|
||||
vim.health.start("kickstart.nvim")
|
||||
|
||||
vim.health.info([[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
|
||||
|
||||
Fix only warnings for plugins and languages you intend to use.
|
||||
Mason will give warnings for languages that are not installed.
|
||||
You do not need to install, unless you want to use those languages!]])
|
||||
|
||||
local uv = vim.uv or vim.loop
|
||||
vim.health.info("System Information: " .. vim.inspect(uv.os_uname()))
|
||||
|
||||
check_version()
|
||||
check_external_reqs()
|
||||
end,
|
||||
}
|
||||
28
.config/nvim/lua/lilJ/plugins/carbonfox.lua
Normal file
28
.config/nvim/lua/lilJ/plugins/carbonfox.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
return {
|
||||
"EdenEast/nightfox.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
init = function()
|
||||
require("nightfox").setup {
|
||||
transparent_background = true,
|
||||
}
|
||||
vim.cmd.colorscheme "carbonfox"
|
||||
|
||||
vim.cmd.hi "Comment gui=none"
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
|
||||
|
||||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
border = "rounded",
|
||||
})
|
||||
|
||||
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
||||
border = "rounded",
|
||||
})
|
||||
|
||||
vim.diagnostic.config {
|
||||
float = { border = "rounded" },
|
||||
}
|
||||
end,
|
||||
}
|
||||
28
.config/nvim/lua/lilJ/plugins/catppuccin.lua
Normal file
28
.config/nvim/lua/lilJ/plugins/catppuccin.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
return {
|
||||
-- "catppuccin/nvim",
|
||||
-- name = "catpuccin",
|
||||
-- priority = 1000,
|
||||
-- lazy = false,
|
||||
-- init = function()
|
||||
-- require("catppuccin").setup {
|
||||
-- transparent_background = true,
|
||||
-- }
|
||||
-- vim.cmd.colorscheme "catppuccin"
|
||||
--
|
||||
-- vim.cmd.hi "Comment gui=none"
|
||||
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
--
|
||||
-- vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
-- border = "rounded",
|
||||
-- })
|
||||
--
|
||||
-- vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
||||
-- border = "rounded",
|
||||
-- })
|
||||
--
|
||||
-- vim.diagnostic.config {
|
||||
-- float = { border = "rounded" },
|
||||
-- }
|
||||
-- end,
|
||||
}
|
||||
4
.config/nvim/lua/lilJ/plugins/comment.lua
Normal file
4
.config/nvim/lua/lilJ/plugins/comment.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
"numToStr/Comment.nvim",
|
||||
opts = {},
|
||||
}
|
||||
27
.config/nvim/lua/lilJ/plugins/completions.lua
Normal file
27
.config/nvim/lua/lilJ/plugins/completions.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
"onsails/lspkind.nvim",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-path",
|
||||
"hrsh7th/cmp-buffer",
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
build = "make install_jsregexp",
|
||||
dependencies = {
|
||||
-- https://github.com/rafamadriz/friendly-snippets
|
||||
{
|
||||
"rafamadriz/friendly-snippets",
|
||||
config = function()
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
},
|
||||
config = function()
|
||||
require "lilJ.completions"
|
||||
end,
|
||||
}
|
||||
22
.config/nvim/lua/lilJ/plugins/conform.lua
Normal file
22
.config/nvim/lua/lilJ/plugins/conform.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
notify_on_error = false,
|
||||
format_on_save = function(bufnr)
|
||||
local disable_filetypes = {}
|
||||
return {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
||||
}
|
||||
end,
|
||||
formatters_by_ft = {
|
||||
c = { "clang-format" },
|
||||
css = { "prettier" },
|
||||
go = { "gofumpt", "goimports_reviser" },
|
||||
html = { "prettier" },
|
||||
lua = { "stylua" },
|
||||
typescript = { "prettier" },
|
||||
typescriptreact = { "prettier" },
|
||||
},
|
||||
},
|
||||
}
|
||||
5
.config/nvim/lua/lilJ/plugins/dadbod.lua
Normal file
5
.config/nvim/lua/lilJ/plugins/dadbod.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"tpope/vim-dadbod",
|
||||
"kristijanhusak/vim-dadbod-completion",
|
||||
"kristijanhusak/vim-dadbod-ui",
|
||||
}
|
||||
89
.config/nvim/lua/lilJ/plugins/debug.lua
Normal file
89
.config/nvim/lua/lilJ/plugins/debug.lua
Normal file
@@ -0,0 +1,89 @@
|
||||
-- debug.lua
|
||||
-- Shows how to use the DAP plugin to debug your code.
|
||||
--
|
||||
-- Primarily focused on configuring the debugger for Go, but can
|
||||
-- be extended to other languages as well. That's why it's called
|
||||
-- kickstart.nvim and not kitchen-sink.nvim ;)
|
||||
|
||||
return {
|
||||
"mfussenegger/nvim-dap",
|
||||
dependencies = {
|
||||
"rcarriga/nvim-dap-ui",
|
||||
"nvim-neotest/nvim-nio",
|
||||
"theHamsta/nvim-dap-virtual-text",
|
||||
"williamboman/mason.nvim",
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
|
||||
-- GO DEBUG
|
||||
"leoluz/nvim-dap-go",
|
||||
"mfussenegger/nvim-dap-python",
|
||||
},
|
||||
config = function()
|
||||
local dap = require "dap"
|
||||
local ui = require "dapui"
|
||||
|
||||
require("dapui").setup()
|
||||
require("dap-go").setup()
|
||||
|
||||
require("nvim-dap-virtual-text").setup {
|
||||
-- This just tries to mitigate the chance that I leak tokens here. Probably won't stop it from happening...
|
||||
-- But I am not a streamer, so I may not want this, or prolly change it in future, but rn its commented
|
||||
--
|
||||
-- display_callback = function(variable)
|
||||
-- local name = string.lower(variable.name)
|
||||
-- local value = string.lower(variable.value)
|
||||
-- if name:match "secret" or name:match "api" or value:match "secret" or value:match "api" then
|
||||
-- return "*****"
|
||||
-- end
|
||||
--
|
||||
-- if #variable.value > 15 then
|
||||
-- return " " .. string.sub(variable.value, 1, 15) .. "... "
|
||||
-- end
|
||||
--
|
||||
-- return " " .. variable.value
|
||||
-- end,
|
||||
}
|
||||
|
||||
require("mason-nvim-dap").setup {
|
||||
automatic_setup = true,
|
||||
|
||||
automatic_installation = true,
|
||||
|
||||
handlers = {},
|
||||
ensure_installed = {
|
||||
"debugpy",
|
||||
"delve",
|
||||
},
|
||||
}
|
||||
|
||||
vim.keymap.set("n", "<leader>dt", dap.toggle_breakpoint, { desc = "Debug: Toggle Breakpoint" })
|
||||
|
||||
vim.keymap.set("n", "<Space>?", function()
|
||||
require("dapui").eval(nil, { enter = true })
|
||||
end)
|
||||
|
||||
-- Basic debugging keymaps, feel free to change to your liking!
|
||||
vim.keymap.set("n", "<F5>", dap.continue, { desc = "Start/Continue" })
|
||||
vim.keymap.set("n", "<F4>", dap.step_into, { desc = "Step Into" })
|
||||
vim.keymap.set("n", "<F3>", dap.step_over, { desc = "Step Over" })
|
||||
vim.keymap.set("n", "<F2>", dap.step_out, { desc = "Step Out" })
|
||||
vim.keymap.set("n", "<F1>", dap.step_back, { desc = "Step Back" })
|
||||
vim.keymap.set("n", "<F10>", dap.restart, { desc = "Restart" })
|
||||
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
ui.open()
|
||||
end
|
||||
dap.listeners.before.launch.dapui_config = function()
|
||||
ui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated.dapui_config = function()
|
||||
ui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited.dapui_config = function()
|
||||
ui.close()
|
||||
end
|
||||
|
||||
require("dap-go").setup()
|
||||
require("dap-python").setup "~/.local/share/nvim/mason/packages/debugpy/venv/bin/python"
|
||||
end,
|
||||
}
|
||||
14
.config/nvim/lua/lilJ/plugins/gitsigns.lua
Normal file
14
.config/nvim/lua/lilJ/plugins/gitsigns.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
opts = {
|
||||
signs = {
|
||||
add = { text = "+" },
|
||||
change = { text = "~" },
|
||||
delete = { text = "_" },
|
||||
topdelete = { text = "‾" },
|
||||
changedelete = { text = "~" },
|
||||
untracked = { text = "┆" },
|
||||
},
|
||||
},
|
||||
}
|
||||
10
.config/nvim/lua/lilJ/plugins/indent_line.lua
Normal file
10
.config/nvim/lua/lilJ/plugins/indent_line.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
main = "ibl",
|
||||
opts = {
|
||||
indent = { char = "┊" },
|
||||
whitespace = { highlight = { "Whitespace", "NonText" } },
|
||||
},
|
||||
},
|
||||
}
|
||||
46
.config/nvim/lua/lilJ/plugins/lint.lua
Normal file
46
.config/nvim/lua/lilJ/plugins/lint.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
return {
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local lint = require "lint"
|
||||
|
||||
lint.linters_by_ft = {
|
||||
python = { "ruff", "mypy" },
|
||||
dockerfile = { "hadolint" },
|
||||
json = { "jsonlint" },
|
||||
markdown = { "vale" },
|
||||
text = { "vale" },
|
||||
}
|
||||
|
||||
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||
-- instead set linters_by_ft like this:
|
||||
-- lint.linters_by_ft = lint.linters_by_ft or {}
|
||||
-- lint.linters_by_ft['markdown'] = { 'markdownlint' }
|
||||
--
|
||||
-- However, note that this will enable a set of default linters,
|
||||
-- which will cause errors unless these tools are available:
|
||||
-- {
|
||||
-- dockerfile = { "hadolint" },
|
||||
-- json = { "jsonlint" },
|
||||
-- markdown = { "vale" },
|
||||
-- text = { "vale" }
|
||||
-- }
|
||||
--
|
||||
-- You can disable the default linters by setting their filetypes to nil:
|
||||
-- lint.linters_by_ft['dockerfile'] = nil
|
||||
-- lint.linters_by_ft['json'] = nil
|
||||
-- lint.linters_by_ft['text'] = nil
|
||||
|
||||
-- Create autocommand which carries out the actual linting
|
||||
-- on the specified events.
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
group = lint_augroup,
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
158
.config/nvim/lua/lilJ/plugins/lsp.lua
Normal file
158
.config/nvim/lua/lilJ/plugins/lsp.lua
Normal file
@@ -0,0 +1,158 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
|
||||
{ "j-hui/fidget.nvim", opts = {} },
|
||||
|
||||
{ "folke/neodev.nvim", opts = {} },
|
||||
|
||||
"b0o/SchemaStore.nvim",
|
||||
},
|
||||
|
||||
config = function()
|
||||
local capabilities = nil
|
||||
if pcall(require, "cmp_nvim_lsp") then
|
||||
capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
end
|
||||
|
||||
-- Enable the following language servers
|
||||
local servers = {
|
||||
clangd = {},
|
||||
gopls = {
|
||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
||||
},
|
||||
html = {
|
||||
filetypes = { "html", "tmpl" },
|
||||
},
|
||||
jsonls = {
|
||||
settings = {
|
||||
json = {
|
||||
schemas = require("schemastore").json.schemas(),
|
||||
validate = { enable = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
lua_ls = {
|
||||
-- cmd = {...},
|
||||
-- filetypes = { ...},
|
||||
-- capabilities = {},
|
||||
settings = {
|
||||
Lua = {
|
||||
completion = {
|
||||
callSnippet = "Replace",
|
||||
},
|
||||
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
|
||||
-- diagnostics = { disable = { 'missing-fields' } },
|
||||
},
|
||||
},
|
||||
},
|
||||
pyright = {},
|
||||
ts_ls = {},
|
||||
tailwindcss = {
|
||||
filetypes = { "html", "css", "typescript", "typescriptreact" },
|
||||
},
|
||||
}
|
||||
|
||||
require("mason").setup()
|
||||
|
||||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, {
|
||||
"clang-format",
|
||||
"gofumpt",
|
||||
"goimports-reviser",
|
||||
"hadolint",
|
||||
"jsonlint",
|
||||
"mypy",
|
||||
"prettier",
|
||||
"ruff",
|
||||
"stylua",
|
||||
"vale",
|
||||
})
|
||||
require("mason-tool-installer").setup { ensure_installed = ensure_installed }
|
||||
|
||||
require("mason-lspconfig").setup {
|
||||
handlers = {
|
||||
function(server_name)
|
||||
local server = servers[server_name] or {}
|
||||
server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {})
|
||||
require("lspconfig")[server_name].setup(server)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = vim.api.nvim_create_augroup("kickstart-lsp-attach", { clear = true }),
|
||||
callback = function(event)
|
||||
local map = function(keys, func, desc)
|
||||
vim.keymap.set("n", keys, func, { buffer = event.buf, desc = "LSP: " .. desc })
|
||||
end
|
||||
|
||||
-- Jump to the definition of the word under your cursor.
|
||||
-- This is where a variable was first declared, or where a function is defined, etc.
|
||||
-- To jump back, press <C-t>.
|
||||
map("gd", require("telescope.builtin").lsp_definitions, "[G]oto [D]efinition")
|
||||
|
||||
-- Find references for the word under your cursor.
|
||||
map("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
||||
|
||||
-- Jump to the implementation of the word under your cursor.
|
||||
-- Useful when your language has ways of declaring types without an actual implementation.
|
||||
map("gI", require("telescope.builtin").lsp_implementations, "[G]oto [I]mplementation")
|
||||
|
||||
-- Jump to the type of the word under your cursor.
|
||||
-- Useful when you're not sure what type a variable is and you want to see
|
||||
-- the definition of its *type*, not where it was *defined*.
|
||||
map("<leader>D", require("telescope.builtin").lsp_type_definitions, "Type [D]efinition")
|
||||
|
||||
-- Fuzzy find all the symbols in your current document.
|
||||
-- Symbols are things like variables, functions, types, etc.
|
||||
map("<leader>ds", require("telescope.builtin").lsp_document_symbols, "[D]ocument [S]ymbols")
|
||||
|
||||
-- Fuzzy find all the symbols in your current workspace.
|
||||
-- Similar to document symbols, except searches over your entire project.
|
||||
map("<leader>ws", require("telescope.builtin").lsp_dynamic_workspace_symbols, "[W]orkspace [S]ymbols")
|
||||
|
||||
-- Rename the variable under your cursor.
|
||||
-- Most Language Servers support renaming across files, etc.
|
||||
map("<leader>rn", vim.lsp.buf.rename, "[R]e[n]ame")
|
||||
|
||||
-- Execute a code action, usually your cursor needs to be on top of an error
|
||||
-- or a suggestion from your LSP for this to activate.
|
||||
map("<leader>ca", vim.lsp.buf.code_action, "[C]ode [A]ction")
|
||||
|
||||
-- Opens a popup that displays documentation about the word under your cursor
|
||||
-- See `:help K` for why this keymap.
|
||||
map("K", vim.lsp.buf.hover, "Hover Documentation")
|
||||
|
||||
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
||||
-- For example, in C this would take you to the header.
|
||||
map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
|
||||
|
||||
-- The following two autocommands are used to highlight references of the
|
||||
-- word under your cursor when your cursor rests there for a little while.
|
||||
local client = vim.lsp.get_client_by_id(event.data.client_id)
|
||||
if client and client.server_capabilities.documentHighlightProvider then
|
||||
vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, {
|
||||
buffer = event.buf,
|
||||
callback = vim.lsp.buf.document_highlight,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "CursorMoved", "CursorMovedI" }, {
|
||||
buffer = event.buf,
|
||||
callback = vim.lsp.buf.clear_references,
|
||||
})
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
29
.config/nvim/lua/lilJ/plugins/mini.lua
Normal file
29
.config/nvim/lua/lilJ/plugins/mini.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
return {
|
||||
"echasnovski/mini.nvim",
|
||||
config = function()
|
||||
-- Better Around/Inside textobjects
|
||||
--
|
||||
-- Examples:
|
||||
-- - va) - [V]isually select [A]round [)]paren
|
||||
-- - yinq - [Y]ank [I]nside [N]ext [']quote
|
||||
-- - ci' - [C]hange [I]nside [']quote
|
||||
require("mini.ai").setup { n_lines = 500 }
|
||||
|
||||
-- Add/delete/replace surroundings (brackets, quotes, etc.)
|
||||
--
|
||||
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
|
||||
-- - sd' - [S]urround [D]elete [']quotes
|
||||
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||
require("mini.surround").setup()
|
||||
|
||||
local statusline = require "mini.statusline"
|
||||
statusline.setup { use_icons = vim.g.have_nerd_font }
|
||||
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
statusline.section_location = function()
|
||||
return "%2l:%-2v"
|
||||
end
|
||||
|
||||
-- Check out: https://github.com/echasnovski/mini.nvim
|
||||
end,
|
||||
}
|
||||
24
.config/nvim/lua/lilJ/plugins/telescope.lua
Normal file
24
.config/nvim/lua/lilJ/plugins/telescope.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
event = "VimEnter",
|
||||
branch = "0.1.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
{
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
|
||||
build = "make",
|
||||
|
||||
cond = function()
|
||||
return vim.fn.executable "make" == 1
|
||||
end,
|
||||
},
|
||||
{ "nvim-telescope/telescope-ui-select.nvim" },
|
||||
|
||||
{ "nvim-tree/nvim-web-devicons", enabled = vim.g.have_nerd_font },
|
||||
},
|
||||
|
||||
config = function()
|
||||
require "lilJ.telescope"
|
||||
end,
|
||||
}
|
||||
20
.config/nvim/lua/lilJ/plugins/tmux-navigator.lua
Normal file
20
.config/nvim/lua/lilJ/plugins/tmux-navigator.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
"alexghergh/nvim-tmux-navigation",
|
||||
|
||||
lazy = false,
|
||||
|
||||
config = function()
|
||||
local nvim_tmux_nav = require "nvim-tmux-navigation"
|
||||
|
||||
nvim_tmux_nav.setup {
|
||||
disable_when_zoomed = true,
|
||||
}
|
||||
|
||||
vim.keymap.set("n", "<C-h>", nvim_tmux_nav.NvimTmuxNavigateLeft)
|
||||
vim.keymap.set("n", "<C-j>", nvim_tmux_nav.NvimTmuxNavigateDown)
|
||||
vim.keymap.set("n", "<C-k>", nvim_tmux_nav.NvimTmuxNavigateUp)
|
||||
vim.keymap.set("n", "<C-l>", nvim_tmux_nav.NvimTmuxNavigateRight)
|
||||
vim.keymap.set("n", "<C-space>", nvim_tmux_nav.NvimTmuxNavigateLastActive)
|
||||
vim.keymap.set("n", "<C-//>", nvim_tmux_nav.NvimTmuxNavigateNext)
|
||||
end,
|
||||
}
|
||||
6
.config/nvim/lua/lilJ/plugins/todo-comments.lua
Normal file
6
.config/nvim/lua/lilJ/plugins/todo-comments.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
"folke/todo-comments.nvim",
|
||||
event = "VimEnter",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = { signs = false },
|
||||
}
|
||||
20
.config/nvim/lua/lilJ/plugins/treesitter.lua
Normal file
20
.config/nvim/lua/lilJ/plugins/treesitter.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
},
|
||||
opts = {
|
||||
ensure_installed = { "c", "go", "html", "lua", "python", "typescript", "tsx" },
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = { "ruby" },
|
||||
},
|
||||
indent = { enable = true, disable = { "ruby" } },
|
||||
},
|
||||
config = function(_, opts)
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end,
|
||||
}
|
||||
68
.config/nvim/lua/lilJ/telescope.lua
Normal file
68
.config/nvim/lua/lilJ/telescope.lua
Normal file
@@ -0,0 +1,68 @@
|
||||
-- Telescope is a fuzzy finder that comes with a lot of different things that
|
||||
-- it can fuzzy find! It's more than just a "file finder", it can search
|
||||
-- many different aspects of Neovim, your workspace, LSP, and more!
|
||||
--
|
||||
-- Two important keymaps to use while in Telescope are:
|
||||
-- - Insert mode: <c-/>
|
||||
-- - Normal mode: ?
|
||||
--
|
||||
-- This opens a window that shows you all of the keymaps for the current
|
||||
-- Telescope picker. This is really useful to discover what Telescope can
|
||||
-- do as well as how to actually do it!
|
||||
|
||||
require("telescope").setup {
|
||||
defaults = {
|
||||
file_ignore_patterns = { ".git/", "node%_modules/.*" },
|
||||
prompt_prefix = "🔭 ",
|
||||
selection_caret = " ",
|
||||
-- initial_mode = "normal",
|
||||
},
|
||||
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown(),
|
||||
},
|
||||
fzf = {},
|
||||
wrap_results = true,
|
||||
},
|
||||
}
|
||||
|
||||
-- Enable Telescope extensions if they are installed
|
||||
pcall(require("telescope").load_extension, "fzf")
|
||||
pcall(require("telescope").load_extension, "ui-select")
|
||||
|
||||
local builtin = require "telescope.builtin"
|
||||
|
||||
vim.keymap.set("n", "<leader>sf", builtin.find_files, { desc = "[S]earch [F]iles" })
|
||||
vim.keymap.set("n", "<leader>sh", builtin.help_tags, { desc = "[S]earch [H]elp" })
|
||||
vim.keymap.set("n", "<leader>sk", builtin.keymaps, { desc = "[S]earch [K]eymaps" })
|
||||
vim.keymap.set("n", "<leader>ss", builtin.builtin, { desc = "[S]earch [S]elect Telescope" })
|
||||
|
||||
-- IDK how to make grep work on my machine... (skill issues tbh)
|
||||
vim.keymap.set("n", "<leader>sw", builtin.grep_string, { desc = "[S]earch current [W]ord" })
|
||||
vim.keymap.set("n", "<leader>sg", builtin.live_grep, { desc = "[S]earch by [G]rep" })
|
||||
|
||||
vim.keymap.set("n", "<leader>sd", builtin.diagnostics, { desc = "[S]earch [D]iagnostics" })
|
||||
vim.keymap.set("n", "<leader>sr", builtin.resume, { desc = "[S]earch [R]esume" })
|
||||
vim.keymap.set("n", "<leader>s.", builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
|
||||
vim.keymap.set("n", "<leader><leader>", builtin.buffers, { desc = "[ ] Find existing buffers" })
|
||||
|
||||
-- Slightly advanced example of overriding default behavior and theme
|
||||
vim.keymap.set("n", "<leader>/", function()
|
||||
builtin.current_buffer_fuzzy_find(require("telescope.themes").get_dropdown {
|
||||
winblend = 50,
|
||||
previewer = false,
|
||||
})
|
||||
end, { desc = "[/] Fuzzily search in current buffer" })
|
||||
|
||||
vim.keymap.set("n", "<leader>s/", function()
|
||||
builtin.live_grep {
|
||||
grep_open_files = true,
|
||||
prompt_title = "Live Grep in Open Files",
|
||||
}
|
||||
end, { desc = "[S]earch [/] in Open Files" })
|
||||
|
||||
-- Shortcut for searching your Neovim configuration files
|
||||
vim.keymap.set("n", "<leader>sn", function()
|
||||
builtin.find_files { cwd = vim.fn.stdpath "config" }
|
||||
end, { desc = "[S]earch [N]eovim files" })
|
||||
54
.config/nvim/plugin/keymaps.lua
Normal file
54
.config/nvim/plugin/keymaps.lua
Normal file
@@ -0,0 +1,54 @@
|
||||
local set = vim.keymap.set
|
||||
|
||||
-- Prevent continue comment on new line
|
||||
vim.api.nvim_create_autocmd(
|
||||
"FileType",
|
||||
{ pattern = "*", command = [[setlocal formatoptions-=c formatoptions-=r formatoptions-=o]] }
|
||||
)
|
||||
vim.opt.wildignore = "*/.git/*,*/.DS_Store/*,*/target/*,*/node_modules/*"
|
||||
vim.opt.expandtab = true
|
||||
|
||||
-- stay in indent mode only
|
||||
set("v", "<", "<gv")
|
||||
set("v", ">", ">gv")
|
||||
|
||||
-- Move lines by selecting
|
||||
set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
set("v", "K", ":m '<-2<CR>gv=gv")
|
||||
|
||||
-- Keep yaa head straight
|
||||
set("n", "<C-d>", "<C-d>zz")
|
||||
set("n", "<C-u>", "<C-u>zz")
|
||||
|
||||
-- Navigate with Netrw
|
||||
set("n", "<leader>n", vim.cmd.Ex, { desc = "Open [N]etrw" })
|
||||
-- Prime said this is greatest remap ever
|
||||
set("x", "<leader>p", [["_dP]])
|
||||
|
||||
-- Next greatest reamap
|
||||
set({ "n", "v" }, "<leader>d", [["_d]])
|
||||
|
||||
-- Set highlight on search, but clear on pressing <Esc> in normal mode
|
||||
vim.opt.hlsearch = true
|
||||
set("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
||||
|
||||
-- Diagnostic keymaps
|
||||
set("n", "[d", vim.diagnostic.goto_prev, { desc = "Go to previous [D]iagnostic message" })
|
||||
set("n", "]d", vim.diagnostic.goto_next, { desc = "Go to next [D]iagnostic message" })
|
||||
set("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" })
|
||||
set("n", "<leader>e", vim.diagnostic.open_float, { desc = "Show diagnostic [E]rror messages" })
|
||||
|
||||
-- Disable arrow keys in normal mode
|
||||
set("n", "<left>", '<cmd>echo "Use h to move!!"<CR>')
|
||||
set("n", "<right>", '<cmd>echo "Use l to move!!"<CR>')
|
||||
set("n", "<up>", '<cmd>echo "Use k to move!!"<CR>')
|
||||
set("n", "<down>", '<cmd>echo "Use j to move!!"<CR>')
|
||||
|
||||
-- Highlight when yanking (copying) text
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
desc = "Highlight when yanking (copying) text",
|
||||
group = vim.api.nvim_create_augroup("highlight-yank", { clear = true }),
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
end,
|
||||
})
|
||||
47
.config/nvim/plugin/options.lua
Normal file
47
.config/nvim/plugin/options.lua
Normal file
@@ -0,0 +1,47 @@
|
||||
local opt = vim.opt
|
||||
|
||||
-- Use 4 space tabs
|
||||
opt.tabstop = 4
|
||||
opt.softtabstop = 4
|
||||
opt.shiftwidth = 4
|
||||
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
|
||||
-- Don't show the mode, since it's already in the status line
|
||||
opt.showmode = false
|
||||
|
||||
-- Sync clipboard between OS and Neovim.
|
||||
opt.clipboard = "unnamedplus"
|
||||
|
||||
opt.breakindent = true
|
||||
|
||||
-- Sets how neovim will display certain whitespace characters in the editor.
|
||||
-- opt.list = true
|
||||
-- opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
|
||||
|
||||
-- Save undo history
|
||||
opt.undofile = true
|
||||
|
||||
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
|
||||
opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
|
||||
opt.signcolumn = "yes"
|
||||
|
||||
opt.updatetime = 250
|
||||
|
||||
-- Preview substitutions live, as you type!
|
||||
opt.inccommand = "split"
|
||||
|
||||
-- Show which line your cursor is on
|
||||
opt.cursorline = true
|
||||
|
||||
-- Minimal number of screen lines to keep above and below the cursor.
|
||||
opt.scrolloff = 10
|
||||
|
||||
-- line wrap settings
|
||||
vim.o.linebreak = true
|
||||
vim.o.wrap = true
|
||||
vim.o.breakindent = true
|
||||
vim.o.showbreak = "↳ "
|
||||
23
.config/nvim/plugin/terminal.lua
Normal file
23
.config/nvim/plugin/terminal.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
local set = vim.opt_local
|
||||
|
||||
-- Set local settings for terminal buffers
|
||||
vim.api.nvim_create_autocmd("TermOpen", {
|
||||
group = vim.api.nvim_create_augroup("custom-term-open", {}),
|
||||
callback = function()
|
||||
set.number = false
|
||||
set.relativenumber = false
|
||||
set.scrolloff = 0
|
||||
end,
|
||||
})
|
||||
|
||||
-- Easily hit escape in terminal mode.
|
||||
vim.keymap.set("t", "<esc><esc>", "<c-\\><c-n>")
|
||||
|
||||
-- Open a terminal at the bottom of the screen with a fixed height.
|
||||
vim.keymap.set("n", "<leader>st", function()
|
||||
vim.cmd.new()
|
||||
vim.cmd.wincmd "J"
|
||||
vim.api.nvim_win_set_height(0, 12)
|
||||
vim.wo.winfixheight = true
|
||||
vim.cmd.term()
|
||||
end)
|
||||
3
.config/nvim/stylua.toml
Normal file
3
.config/nvim/stylua.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
indent_type = "Spaces"
|
||||
indent_width = 4
|
||||
no_call_parentheses = true
|
||||
20
.config/sketchybar/items/battery.sh
Normal file
20
.config/sketchybar/items/battery.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
COLOR="$BLUE"
|
||||
|
||||
sketchybar --add item battery right \
|
||||
--set battery \
|
||||
update_freq=60 \
|
||||
icon.color="$COLOR" \
|
||||
icon.padding_left=10 \
|
||||
label.padding_right=10 \
|
||||
label.color="$COLOR" \
|
||||
background.height=21 \
|
||||
background.corner_radius="$CORNER_RADIUS" \
|
||||
background.padding_right=5 \
|
||||
background.border_width="$BORDER_WIDTH" \
|
||||
background.border_color="$COLOR" \
|
||||
background.color="$BAR_COLOR" \
|
||||
background.drawing=on \
|
||||
script="$PLUGIN_DIR/power.sh" \
|
||||
--subscribe battery power_source_change
|
||||
18
.config/sketchybar/items/calendar.sh
Normal file
18
.config/sketchybar/items/calendar.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
COLOR="$BLUE"
|
||||
|
||||
sketchybar --add item calendar center\
|
||||
--set calendar update_freq=15 \
|
||||
icon.color="$COLOR" \
|
||||
icon.padding_left=10 \
|
||||
label.color="$COLOR" \
|
||||
label.padding_right=10 \
|
||||
background.height=21 \
|
||||
background.corner_radius="$CORNER_RADIUS" \
|
||||
background.padding_right=5 \
|
||||
background.border_width="$BORDER_WIDTH" \
|
||||
background.border_color="$COLOR" \
|
||||
background.color="$BAR_COLOR" \
|
||||
background.drawing=on \
|
||||
script="$PLUGIN_DIR/calendar.sh"
|
||||
21
.config/sketchybar/items/clock.sh
Normal file
21
.config/sketchybar/items/clock.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
COLOR="$BLUE"
|
||||
|
||||
sketchybar --add item clock right \
|
||||
--set clock update_freq=1 \
|
||||
icon.padding_left=10 \
|
||||
icon.color="$COLOR" \
|
||||
icon="" \
|
||||
label.color="$COLOR" \
|
||||
label.width=54 \
|
||||
label.padding_right=5 \
|
||||
align=center \
|
||||
background.height=21 \
|
||||
background.corner_radius="$CORNER_RADIUS" \
|
||||
background.padding_right=2 \
|
||||
background.border_width="$BORDER_WIDTH" \
|
||||
background.border_color="$COLOR" \
|
||||
background.color="$BAR_COLOR" \
|
||||
background.drawing=on \
|
||||
script="$PLUGIN_DIR/clock.sh"
|
||||
20
.config/sketchybar/items/front_app.sh
Normal file
20
.config/sketchybar/items/front_app.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
COLOR="$WHITE"
|
||||
|
||||
sketchybar \
|
||||
--add item front_app left \
|
||||
--set front_app script="$PLUGIN_DIR/front_app.sh" \
|
||||
icon.drawing=off \
|
||||
background.height=21 \
|
||||
background.padding_left=0 \
|
||||
background.padding_right=10 \
|
||||
background.border_width="$BORDER_WIDTH" \
|
||||
background.border_color="$COLOR" \
|
||||
background.corner_radius="$CORNER_RADIUS" \
|
||||
background.color="$BAR_COLOR" \
|
||||
label.color="$COLOR" \
|
||||
label.padding_left=10 \
|
||||
label.padding_right=10 \
|
||||
associated_display=active \
|
||||
--subscribe front_app front_app_switched
|
||||
43
.config/sketchybar/items/spaces.sh
Normal file
43
.config/sketchybar/items/spaces.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "$HOME/.config/sketchybar/variables.sh"
|
||||
|
||||
sketchybar --add item spacer.1 left \
|
||||
--set spacer.1 background.drawing=off \
|
||||
label.drawing=off \
|
||||
icon.drawing=off \
|
||||
width=10
|
||||
|
||||
for i in "${!SPACE_ICONS[@]}"; do
|
||||
sid=$((i + 1))
|
||||
sketchybar --add space space.$sid left \
|
||||
--set space.$sid associated_space=$sid \
|
||||
label.drawing=off \
|
||||
icon.padding_left=10 \
|
||||
icon.padding_right=10 \
|
||||
background.padding_left=-5 \
|
||||
background.padding_right=-5 \
|
||||
script="$PLUGIN_DIR/space.sh"
|
||||
done
|
||||
|
||||
sketchybar --add item spacer.2 left \
|
||||
--set spacer.2 background.drawing=off \
|
||||
label.drawing=off \
|
||||
icon.drawing=off \
|
||||
width=5
|
||||
|
||||
sketchybar --add bracket spaces '/space.*/' \
|
||||
--set spaces background.border_width="$BORDER_WIDTH" \
|
||||
background.border_color="$BLUE" \
|
||||
background.corner_radius="$CORNER_RADIUS" \
|
||||
background.color="$BAR_COLOR" \
|
||||
background.height=21 \
|
||||
background.drawing=on
|
||||
|
||||
sketchybar --add item separator left \
|
||||
icon.font="$FONT:Regular:16.0" \
|
||||
background.padding_left=26 \
|
||||
background.padding_right=15 \
|
||||
label.drawing=off \
|
||||
associated_display=active \
|
||||
icon.color="$YELLOW"
|
||||
3
.config/sketchybar/plugins/calendar.sh
Executable file
3
.config/sketchybar/plugins/calendar.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sketchybar --set "$NAME" icon="" label="$(date '+%a, %d %b')"
|
||||
4
.config/sketchybar/plugins/clock.sh
Executable file
4
.config/sketchybar/plugins/clock.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
LABEL=$(date '+%H:%M')
|
||||
sketchybar --set "$NAME" label="$LABEL"
|
||||
7
.config/sketchybar/plugins/front_app.sh
Executable file
7
.config/sketchybar/plugins/front_app.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
case "$SENDER" in
|
||||
"front_app_switched")
|
||||
sketchybar --set "$NAME" label="$INFO"
|
||||
;;
|
||||
esac
|
||||
30
.config/sketchybar/plugins/power.sh
Executable file
30
.config/sketchybar/plugins/power.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PERCENTAGE=$(pmset -g batt | grep -Eo "\d+%" | cut -d% -f1)
|
||||
CHARGING=$(pmset -g batt | grep 'AC Power')
|
||||
|
||||
if [ "$PERCENTAGE" = "" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case ${PERCENTAGE} in
|
||||
9[0-9] | 100)
|
||||
ICON=""
|
||||
;;
|
||||
[6-8][0-9])
|
||||
ICON=""
|
||||
;;
|
||||
[3-5][0-9])
|
||||
ICON=""
|
||||
;;
|
||||
[1-2][0-9])
|
||||
ICON=""
|
||||
;;
|
||||
*) ICON="" ;;
|
||||
esac
|
||||
|
||||
if [ "$CHARGING" != "" ]; then
|
||||
ICON=""
|
||||
fi
|
||||
|
||||
sketchybar --set "$NAME" icon="$ICON" label="${PERCENTAGE}% "
|
||||
17
.config/sketchybar/plugins/space.sh
Executable file
17
.config/sketchybar/plugins/space.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "$HOME/.config/sketchybar/variables.sh" # Loads all defined colors
|
||||
|
||||
SPACE_CLICK_SCRIPT="yabai -m space --focus $SID 2>/dev/null"
|
||||
|
||||
if [ "$SELECTED" = "true" ]; then
|
||||
sketchybar --animate tanh 5 --set "$NAME" \
|
||||
icon.color="$BLUE" \
|
||||
icon="${SPACE_ICONS[$SID - 1]}" \
|
||||
click_script="$SPACE_CLICK_SCRIPT"
|
||||
else
|
||||
sketchybar --animate tanh 5 --set "$NAME" \
|
||||
icon.color="$COMMENT" \
|
||||
icon="${SPACE_ICONS[$SID - 1]}" \
|
||||
click_script="$SPACE_CLICK_SCRIPT"
|
||||
fi
|
||||
40
.config/sketchybar/sketchybarrc
Executable file
40
.config/sketchybar/sketchybarrc
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "$HOME/.config/sketchybar/variables.sh"
|
||||
|
||||
sketchybar --bar height=27 \
|
||||
color="$TRANSPARENT" \
|
||||
shadow="$SHADOW" \
|
||||
position=top \
|
||||
y_offset=0 \
|
||||
padding_right=11 \
|
||||
padding_left=10 \
|
||||
blur_radius=0 \
|
||||
--default updates=when_shown \
|
||||
icon.font="$FONT:Bold:13.5" \
|
||||
icon.color="$ICON_COLOR" \
|
||||
icon.padding_left="$PADDINGS" \
|
||||
icon.padding_right="$PADDINGS" \
|
||||
label.font="$FONT:Bold:13.0" \
|
||||
label.color="$LABEL_COLOR" \
|
||||
label.padding_left="$PADDINGS" \
|
||||
label.padding_right="$PADDINGS" \
|
||||
background.padding_right="$PADDINGS" \
|
||||
background.padding_left="$PADDINGS" \
|
||||
# corner_radius="$CORNER_RADIUS" \
|
||||
# sticky=on \
|
||||
# margin=5 \
|
||||
|
||||
source "$ITEM_DIR/spaces.sh"
|
||||
source "$ITEM_DIR/front_app.sh"
|
||||
|
||||
source "$ITEM_DIR/calendar.sh"
|
||||
|
||||
source "$ITEM_DIR/clock.sh"
|
||||
source "$ITEM_DIR/battery.sh"
|
||||
|
||||
sketchybar --hotload true
|
||||
|
||||
sketchybar --update
|
||||
|
||||
echo "sketchybar configuration loaded.."
|
||||
53
.config/sketchybar/variables.sh
Normal file
53
.config/sketchybar/variables.sh
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Color Palette
|
||||
# Tokyonight Night
|
||||
# BLACK=0xff24283b
|
||||
# WHITE=0xffa9b1d6
|
||||
# MAGENTA=0xffbb9af7
|
||||
# BLUE=0xff7aa2f7
|
||||
# CYAN=0xff7dcfff
|
||||
# GREEN=0xff9ece6a
|
||||
# YELLOW=0xffe0af68
|
||||
# ORANGE=0xffff9e64
|
||||
# RED=0xfff7768e
|
||||
# BAR_COLOR=0xff1a1b26
|
||||
# COMMENT=0xff565f89
|
||||
|
||||
# Oxocarbon Theme
|
||||
BLACK=0xff161616
|
||||
WHITE=0xfff2f4f8
|
||||
MAGENTA=0xffbe95ff
|
||||
BLUE=0xff82cfff
|
||||
CYAN=0xff3ddbd9
|
||||
GREEN=0xff42be65
|
||||
YELLOW=0xffffe97b
|
||||
ORANGE=0xffff7eb6
|
||||
RED=0xff3ddbd9
|
||||
BAR_COLOR=0xff161616
|
||||
COMMENT=0xff525252
|
||||
|
||||
# TRANSPARENT=0x110000cc
|
||||
TRANSPARENT=0x00ffffff
|
||||
|
||||
ICON_COLOR=$WHITE
|
||||
LABEL_COLOR=$WHITE
|
||||
|
||||
ITEM_DIR="$HOME/.config/sketchybar/items"
|
||||
PLUGIN_DIR="$HOME/.config/sketchybar/plugins"
|
||||
|
||||
FONT="MesloLGS Nerd Font Mono"
|
||||
|
||||
PADDINGS=3
|
||||
|
||||
POPUP_BORDER_WIDTH=2
|
||||
POPUP_CORNER_RADIUS=11
|
||||
POPUP_BACKGROUND_COLOR=$BLACK
|
||||
POPUP_BORDER_COLOR=$COMMENT
|
||||
|
||||
CORNER_RADIUS=15
|
||||
BORDER_WIDTH=1
|
||||
|
||||
SHADOW=on
|
||||
|
||||
SPACE_ICONS=("一" "二" "三" "四" "五" "六" "七" "八" "九" "十")
|
||||
75
.config/skhd/skhdrc
Executable file
75
.config/skhd/skhdrc
Executable file
@@ -0,0 +1,75 @@
|
||||
# OPEN IT, This too conflicts with some macos keybinds, fuck me
|
||||
# cmd - return : /Applications/kitty.app/Contents/MacOS/kitty --single-instance -d ~
|
||||
# cmd - return : /Applications/WezTerm.app/Contents/MacOS/wezterm start --cwd ~
|
||||
|
||||
# focus window
|
||||
alt - h : yabai -m window --focus west
|
||||
alt - j : yabai -m window --focus south
|
||||
alt - k : yabai -m window --focus north
|
||||
alt - l : yabai -m window --focus east
|
||||
|
||||
# swap managed window
|
||||
shift + alt - h : yabai -m window --swap west
|
||||
shift + alt - j : yabai -m window --swap south
|
||||
shift + alt - k : yabai -m window --swap north
|
||||
shift + alt - l : yabai -m window --swap east
|
||||
|
||||
# move managed window
|
||||
# shift + cmd - h : yabai -m window --warp east
|
||||
|
||||
# balance size of windows
|
||||
shift + alt - 0 : yabai -m space --balance
|
||||
|
||||
# make floating window fill screen
|
||||
# shift + alt - up : yabai -m window --grid 1:1:0:0:1:1
|
||||
|
||||
# make floating window fill left-half of screen
|
||||
# shift + alt - left : yabai -m window --grid 1:2:0:0:1:1
|
||||
|
||||
# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
|
||||
# shift + cmd - n : yabai -m space --create && \
|
||||
# index="$(yabai -m query --spaces --display | jq 'map(select(."is-native-fullscreen" == false))[-1].index')" && \
|
||||
# yabai -m window --space "${index}" && \
|
||||
# yabai -m space --focus "${index}"
|
||||
|
||||
# fast focus desktop
|
||||
# cmd + alt - x : yabai -m space --focus recent
|
||||
cmd + alt - 1 : yabai -m space --focus 1
|
||||
cmd + alt - 2 : yabai -m space --focus 2
|
||||
cmd + alt - 3 : yabai -m space --focus 3
|
||||
|
||||
# shift + cmd overlaps with mac shortcut for screenshots... find a alternate for this
|
||||
# send window to desktop and follow focus
|
||||
# shift + cmd - z : yabai -m window --space next; yabai -m space --focus next
|
||||
# shift + cmd - 1 : yabai -m window --space 1; yabai -m space --focus 1
|
||||
# shift + cmd - 2 : yabai -m window --space 2; yabai -m space --focus 2
|
||||
# shift + cmd - 3 : yabai -m window --space 3; yabai -m space --focus 3
|
||||
|
||||
# move floating window
|
||||
# shift + ctrl - a : yabai -m window --move rel:-20:0
|
||||
# shift + ctrl - s : yabai -m window --move rel:0:20
|
||||
|
||||
# increase window size
|
||||
# shift + alt - a : yabai -m window --resize left:-20:0
|
||||
# cmd + alt - a : yabai -m window --resize left:-20:0
|
||||
# shift + alt - w : yabai -m window --resize top:0:-20
|
||||
|
||||
# decrease window size
|
||||
# shift + cmd - s : yabai -m window --resize bottom:0:-20
|
||||
# shift + cmd - w : yabai -m window --resize top:0:20
|
||||
|
||||
# set insertion point in focused container
|
||||
# ctrl + alt - h : yabai -m window --insert west
|
||||
|
||||
# toggle window zoom
|
||||
# alt - d : yabai -m window --toggle zoom-parent
|
||||
# alt - f : yabai -m window --toggle zoom-fullscreen
|
||||
|
||||
# toggle window split type
|
||||
alt - e : yabai -m window --toggle split
|
||||
|
||||
# float / unfloat window and center on screen
|
||||
alt - t : yabai -m window --toggle float --grid 4:4:1:1:2:2
|
||||
|
||||
# toggle sticky(+float), picture-in-picture
|
||||
# alt - p : yabai -m window --toggle sticky --toggle pip
|
||||
130
.config/starship.toml
Normal file
130
.config/starship.toml
Normal file
@@ -0,0 +1,130 @@
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
add_newline = true
|
||||
continuation_prompt = '▶▶ '
|
||||
format = """$directory$all$character"""
|
||||
palette = "carbonfox"
|
||||
|
||||
[aws]
|
||||
symbol = ""
|
||||
|
||||
[aws.region_aliases]
|
||||
ap-southeast-1 = 'in'
|
||||
|
||||
# [aws.profile_aliases]
|
||||
# Enterprise_Naming_Scheme-voidstars = 'void**'
|
||||
|
||||
[bun]
|
||||
format = '[🍞 bun $version ](bold green)'
|
||||
version_format = '${major}.${minor}'
|
||||
|
||||
[c]
|
||||
detect_extensions = ['c', 'cpp']
|
||||
format = '[$symbol $name-$version ]($style)'
|
||||
symbol = ""
|
||||
version_format = '${major}.${minor}'
|
||||
|
||||
[character]
|
||||
success_symbol = "[➜](bold green)"
|
||||
error_symbol = "[✗](bold red)"
|
||||
|
||||
[cmd_duration]
|
||||
disabled = true
|
||||
|
||||
[directory]
|
||||
home_symbol= ""
|
||||
truncation_length = 3
|
||||
truncate_to_repo = true
|
||||
truncation_symbol = " "
|
||||
style = "bold blue"
|
||||
|
||||
[docker_context]
|
||||
format = 'in [$symbol$context]($style) '
|
||||
|
||||
[git_branch]
|
||||
format='[ $symbol$branch :\($remote_branch\) ]($style)'
|
||||
style='bold purple'
|
||||
symbol=" "
|
||||
always_show_remote = true
|
||||
|
||||
[git_state]
|
||||
cherry_pick = '[🍒 PICKING](bold red)'
|
||||
|
||||
[git_metrics]
|
||||
# format = '[+$added]($added_style) [-$deleted]($deleted_style) '
|
||||
disabled = false
|
||||
|
||||
[git_status]
|
||||
format = '([\[$all_status$ahead_behind\]]($style) )'
|
||||
up_to_date = '✓'
|
||||
ahead = '⇡${count}'
|
||||
diverged = '⇕⇡${ahead_count}⇣${behind_count}'
|
||||
behind = '⇣${count}'
|
||||
stashed = '📦'
|
||||
staged = '[++\($count\)](green)'
|
||||
|
||||
|
||||
[golang]
|
||||
format = '[ $version ](bold cyan)'
|
||||
version_format = '${major}.${minor}'
|
||||
|
||||
[nodejs]
|
||||
detect_files = ['!bun.lockb']
|
||||
format = '[$symbol$version ]($style)'
|
||||
version_format = '${major}.${minor}'
|
||||
|
||||
[package]
|
||||
format = '[pkg $symbol$version]($style) '
|
||||
disabled = false
|
||||
|
||||
[palettes.carbonfox]
|
||||
red = "#ee5396"
|
||||
green = "#25be6a"
|
||||
purple = "#be95ff"
|
||||
yellow = "#08bdba"
|
||||
os_bg = "#7b7c7e"
|
||||
os_fg = "#0c0c0c"
|
||||
dir_bg = "#25be6a"
|
||||
dir_fg = "#161616"
|
||||
git_bg = "#08bdba"
|
||||
git_fg = "#252525"
|
||||
lang_bg = "#78a9ff"
|
||||
lang_fg = "#353535"
|
||||
|
||||
# [palettes.catppuccin_mocha]
|
||||
# rosewater = "#f5e0dc"
|
||||
# flamingo = "#f2cdcd"
|
||||
# pink = "#f5c2e7"
|
||||
# mauve = "#cba6f7"
|
||||
# red = "#f38ba8"
|
||||
# maroon = "#eba0ac"
|
||||
# peach = "#fab387"
|
||||
# yellow = "#f9e2af"
|
||||
# green = "#a6e3a1"
|
||||
# teal = "#94e2d5"
|
||||
# sky = "#89dceb"
|
||||
# sapphire = "#74c7ec"
|
||||
# blue = "#89b4fa"
|
||||
# lavender = "#b4befe"
|
||||
# text = "#cdd6f4"
|
||||
# subtext1 = "#bac2de"
|
||||
# subtext0 = "#a6adc8"
|
||||
# overlay2 = "#9399b2"
|
||||
# overlay1 = "#7f849c"
|
||||
# overlay0 = "#6c7086"
|
||||
# surface2 = "#585b70"
|
||||
# surface1 = "#45475a"
|
||||
# surface0 = "#313244"
|
||||
# base = "#1e1e2e"
|
||||
# mantle = "#181825"
|
||||
# crust = "#11111b"
|
||||
|
||||
[python]
|
||||
symbol = " "
|
||||
format = '[(\($virtualenv\) )${symbol}(${version} )]($style)'
|
||||
version_format = '${major}.${minor}'
|
||||
|
||||
[sudo]
|
||||
format = '[ as sudo]($style)'
|
||||
style = 'bold blue'
|
||||
disabled = false
|
||||
1
.config/tmux/plugins/tmux
Submodule
1
.config/tmux/plugins/tmux
Submodule
Submodule .config/tmux/plugins/tmux added at c43c10fe94
1
.config/tmux/plugins/tpm
Submodule
1
.config/tmux/plugins/tpm
Submodule
Submodule .config/tmux/plugins/tpm added at 99469c4a9b
1
.config/tmux/plugins/vim-tmux-navigator
Submodule
1
.config/tmux/plugins/vim-tmux-navigator
Submodule
Submodule .config/tmux/plugins/vim-tmux-navigator added at a9b52e7d36
57
.config/tmux/tmux.conf
Normal file
57
.config/tmux/tmux.conf
Normal file
@@ -0,0 +1,57 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set-option -sa terminal-overrides ",xterm*:Tc"
|
||||
set -g mouse on
|
||||
|
||||
unbind C-b
|
||||
set -g prefix C-x
|
||||
bind C-x send-prefix
|
||||
|
||||
# Start windows and panes at 1, not 0
|
||||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
set-window-option -g pane-base-index 1
|
||||
set-option -g renumber-windows on
|
||||
|
||||
# set -g @plugin 'catppuccin/tmux'
|
||||
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||
|
||||
# Better split window keybind and same directory for new panes
|
||||
unbind '"'
|
||||
unbind %
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
bind _ split-window -h -c "#{pane_current_path}"
|
||||
|
||||
bind -r k select-pane -U
|
||||
bind -r j select-pane -D
|
||||
bind -r h select-pane -L
|
||||
bind -r l select-pane -R
|
||||
|
||||
# Nightfox colors for Tmux
|
||||
# Style: carbonfox
|
||||
# Upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/carbonfox/carbonfox.tmux
|
||||
set -g mode-style "fg=#0c0c0c,bg=#b6b8bb"
|
||||
set -g message-style "fg=#0c0c0c,bg=#b6b8bb"
|
||||
set -g message-command-style "fg=#0c0c0c,bg=#b6b8bb"
|
||||
set -g pane-border-style "fg=#b6b8bb"
|
||||
set -g pane-active-border-style "fg=#78a9ff"
|
||||
set -g status "on"
|
||||
set -g status-justify "left"
|
||||
set -g status-style "fg=#b5b8bb,bg=#0c0c0c"
|
||||
set -g status-left-length "100"
|
||||
set -g status-right-length "100"
|
||||
set -g status-left-style NONE
|
||||
set -g status-right-style NONE
|
||||
set -g status-left ""
|
||||
set -g status-right "#[fg=#0c0c0c,bg=#b6b8bb,,nobold,nounderscore,noitalics] #W #[fg=#0c0c0c,bg=#78a9ff,bold] #S "
|
||||
setw -g window-status-activity-style "underscore,fg=#7b7c7e,bg=#0c0c0c"
|
||||
setw -g window-status-separator ""
|
||||
setw -g window-status-style "NONE,fg=#7b7c7e,bg=#0c0c0c"
|
||||
setw -g window-status-format "#[fg=#0c0c0c,bg=#0c0c0c,nobold,nounderscore,noitalics]#[default] #I #{b:pane_current_path} "
|
||||
setw -g window-status-current-format "#[fg=#0c0c0c,bg=#b6b8bb,bold] #I #{b:pane_current_path} "
|
||||
|
||||
|
||||
run '~/.config/tmux/plugins/tpm/tpm'
|
||||
29
.config/wezterm/wezterm.lua
Normal file
29
.config/wezterm/wezterm.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
local wezterm = require("wezterm")
|
||||
|
||||
local config = {
|
||||
enable_tab_bar = false,
|
||||
window_decorations = "RESIZE",
|
||||
window_close_confirmation = "NeverPrompt",
|
||||
font = wezterm.font("MesloLGS Nerd Font Mono"),
|
||||
font_size = 14.0,
|
||||
-- color_scheme = "Catppuccin Mocha",
|
||||
color_scheme = "Carbon Fox",
|
||||
window_background_opacity = 0.85,
|
||||
window_padding = {
|
||||
left = 2,
|
||||
right = 2,
|
||||
top = 2,
|
||||
bottom = 2,
|
||||
},
|
||||
macos_window_background_blur = 10,
|
||||
}
|
||||
|
||||
-- uncomment this if not using with some wm
|
||||
-- local mux = wezterm.mux
|
||||
--
|
||||
-- wezterm.on("gui-startup", function()
|
||||
-- local _, _, window = mux.spawn_window({})
|
||||
-- window:gui_window():maximize()
|
||||
-- end)
|
||||
|
||||
return config
|
||||
49
.config/yabai/yabairc
Executable file
49
.config/yabai/yabairc
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
|
||||
sudo yabai --load-sa
|
||||
|
||||
# global settings
|
||||
yabai -m config \
|
||||
external_bar all:27:0 \
|
||||
menubar_opacity 1.0 \
|
||||
mouse_follows_focus off \
|
||||
focus_follows_mouse off \
|
||||
display_arrangement_order default \
|
||||
window_origin_display default \
|
||||
window_placement second_child \
|
||||
window_zoom_persist on \
|
||||
window_shadow on \
|
||||
window_animation_duration 0.0 \
|
||||
window_animation_easing ease_out_circ \
|
||||
window_opacity off \
|
||||
insert_feedback_color 0xffd75f5f \
|
||||
split_ratio 0.50 \
|
||||
split_type auto \
|
||||
auto_balance off \
|
||||
top_padding 08 \
|
||||
bottom_padding 08 \
|
||||
left_padding 08 \
|
||||
right_padding 08 \
|
||||
window_gap 08 \
|
||||
layout bsp \
|
||||
mouse_modifier alt \
|
||||
mouse_action1 move \
|
||||
mouse_action2 resize \
|
||||
mouse_drop_action swap
|
||||
|
||||
|
||||
yabai -m rule --add app="^System Settings$" manage=off
|
||||
yabai -m rule --add app="^Calculator$" manage=off
|
||||
yabai -m rule --add app="^Finder$" manage=off
|
||||
yabai -m rule --add app="^Preview$" manage=off
|
||||
yabai -m rule --add app="^Spotify$" manage=off
|
||||
yabai -m rule --add app="^Safari$" manage=off
|
||||
yabai -m rule --add app="^App Store$" manage=off
|
||||
yabai -m rule --add app="^Activity Monitor$" manage=off
|
||||
yabai -m rule --add label="Software Update" title="Software Update" manage=off
|
||||
yabai -m rule --add app="System Information" manage=off
|
||||
|
||||
borders active_color=0xff82cfff inactive_color=0xff494d64 width=4.0 &
|
||||
|
||||
echo "yabai configuration loaded.."
|
||||
Reference in New Issue
Block a user