Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
4fa074df78 |
62 changed files with 945 additions and 904 deletions
10
.bash_profile
Normal file
10
.bash_profile
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Load login settings and environment variables
|
||||||
|
if [[ -f ~/.profile ]]; then
|
||||||
|
source ~/.profile
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Load interactive settings
|
||||||
|
if [[ -f ~/.bashrc ]]; then
|
||||||
|
source ~/.bashrc
|
||||||
|
fi
|
||||||
|
|
55
.bashrc
Normal file
55
.bashrc
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
#################################
|
||||||
|
## Check for Interactivy Shell ##
|
||||||
|
#################################
|
||||||
|
case $- in
|
||||||
|
*i*) ;;
|
||||||
|
*) return;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#################################
|
||||||
|
## Oh My Bash ##
|
||||||
|
#################################
|
||||||
|
export OSH="$HOME/.config/oh-my-bash"
|
||||||
|
OSH_CUSTOM="$HOME/.config/oh-my-bash-custom"
|
||||||
|
OSH_THEME="agnoster-modded"
|
||||||
|
DEFAULT_USER=$(whoami)
|
||||||
|
ENABLE_CORRECTION=true
|
||||||
|
OMB_USE_SUDO=true
|
||||||
|
|
||||||
|
completions=(
|
||||||
|
git
|
||||||
|
composer
|
||||||
|
ssh
|
||||||
|
)
|
||||||
|
|
||||||
|
aliases=(
|
||||||
|
general
|
||||||
|
)
|
||||||
|
|
||||||
|
plugins=(
|
||||||
|
git
|
||||||
|
bashmarks
|
||||||
|
)
|
||||||
|
source "$OSH"/oh-my-bash.sh
|
||||||
|
|
||||||
|
#################################
|
||||||
|
## Application Envs ##
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Volta
|
||||||
|
export PATH=$PATH:~/.local/bin
|
||||||
|
export VOLTA_HOME="$HOME/.volta"
|
||||||
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
||||||
|
|
||||||
|
# Podman as Docker on Immutable Distros
|
||||||
|
export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
|
||||||
|
|
||||||
|
#################################
|
||||||
|
## Aliases ##
|
||||||
|
#################################
|
||||||
|
|
||||||
|
alias nvim-conf="nvim ~/.config/nvim"
|
||||||
|
alias bash-conf="nvim #/.bashrc"
|
||||||
|
|
||||||
|
alias nano="nvim"
|
||||||
|
alias neofetch="fastfetch"
|
33
.config/.gitignore
vendored
33
.config/.gitignore
vendored
|
@ -1,33 +0,0 @@
|
||||||
# Ignore Everything By Default
|
|
||||||
/*
|
|
||||||
|
|
||||||
# Install Script
|
|
||||||
!install.sh
|
|
||||||
|
|
||||||
# Unignore Ignore
|
|
||||||
!.gitignore
|
|
||||||
|
|
||||||
# Oh My Bash
|
|
||||||
!/oh-my-bash-custom/
|
|
||||||
|
|
||||||
# Glow
|
|
||||||
!/glow/
|
|
||||||
|
|
||||||
# Oh My Posh
|
|
||||||
!omp.toml
|
|
||||||
|
|
||||||
# Services
|
|
||||||
!systemd/
|
|
||||||
|
|
||||||
# SSH
|
|
||||||
!/ssh/
|
|
||||||
|
|
||||||
# neovim
|
|
||||||
!/nvim/
|
|
||||||
|
|
||||||
# git
|
|
||||||
!/git/
|
|
||||||
!/git-graph/
|
|
||||||
|
|
||||||
# KDE
|
|
||||||
!kglobalshortcutsrc
|
|
|
@ -1,77 +0,0 @@
|
||||||
persistence = [
|
|
||||||
'^(master|main)$',
|
|
||||||
'^(develop|dev)$',
|
|
||||||
'^feature.*$',
|
|
||||||
'^release.*$',
|
|
||||||
'^hotfix.*$',
|
|
||||||
'^bugfix.*$',
|
|
||||||
]
|
|
||||||
order = [
|
|
||||||
'^(master|main)$',
|
|
||||||
'^(hotfix|release).*$',
|
|
||||||
'^(develop|dev)$',
|
|
||||||
]
|
|
||||||
|
|
||||||
[terminal_colors]
|
|
||||||
matches = [
|
|
||||||
[
|
|
||||||
'^(master|main)$',
|
|
||||||
['bright_blue'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^(develop|dev)$',
|
|
||||||
['bright_yellow'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^(feature|fork/).*$',
|
|
||||||
[
|
|
||||||
'bright_magenta',
|
|
||||||
'bright_cyan',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^release.*$',
|
|
||||||
['bright_green'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^(bugfix|hotfix).*$',
|
|
||||||
['bright_red'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^tags/.*$',
|
|
||||||
['bright_green'],
|
|
||||||
],
|
|
||||||
]
|
|
||||||
unknown = ['white']
|
|
||||||
|
|
||||||
[svg_colors]
|
|
||||||
matches = [
|
|
||||||
[
|
|
||||||
'^(master|main)$',
|
|
||||||
['blue'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^(develop|dev)$',
|
|
||||||
['orange'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^(feature|fork/).*$',
|
|
||||||
[
|
|
||||||
'purple',
|
|
||||||
'turquoise',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^release.*$',
|
|
||||||
['green'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^(bugfix|hotfix).*$',
|
|
||||||
['red'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^tags/.*$',
|
|
||||||
['green'],
|
|
||||||
],
|
|
||||||
]
|
|
||||||
unknown = ['gray']
|
|
|
@ -1,24 +0,0 @@
|
||||||
persistence = []
|
|
||||||
order = []
|
|
||||||
|
|
||||||
[terminal_colors]
|
|
||||||
matches = []
|
|
||||||
unknown = [
|
|
||||||
'bright_blue',
|
|
||||||
'bright_yellow',
|
|
||||||
'bright_green',
|
|
||||||
'bright_red',
|
|
||||||
'bright_magenta',
|
|
||||||
'bright_cyan',
|
|
||||||
]
|
|
||||||
|
|
||||||
[svg_colors]
|
|
||||||
matches = []
|
|
||||||
unknown = [
|
|
||||||
'blue',
|
|
||||||
'orange',
|
|
||||||
'green',
|
|
||||||
'red',
|
|
||||||
'purple',
|
|
||||||
'turquoise',
|
|
||||||
]
|
|
|
@ -1,43 +0,0 @@
|
||||||
persistence = ['^(master|main)$']
|
|
||||||
order = [
|
|
||||||
'^tags/.*$',
|
|
||||||
'^(master|main)$',
|
|
||||||
]
|
|
||||||
|
|
||||||
[terminal_colors]
|
|
||||||
matches = [
|
|
||||||
[
|
|
||||||
'^(master|main)$',
|
|
||||||
['bright_blue'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^tags/.*$',
|
|
||||||
['bright_green'],
|
|
||||||
],
|
|
||||||
]
|
|
||||||
unknown = [
|
|
||||||
'bright_yellow',
|
|
||||||
'bright_green',
|
|
||||||
'bright_red',
|
|
||||||
'bright_magenta',
|
|
||||||
'bright_cyan',
|
|
||||||
]
|
|
||||||
|
|
||||||
[svg_colors]
|
|
||||||
matches = [
|
|
||||||
[
|
|
||||||
'^(master|main)$',
|
|
||||||
['blue'],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'^tags/.*$',
|
|
||||||
['green'],
|
|
||||||
],
|
|
||||||
]
|
|
||||||
unknown = [
|
|
||||||
'orange',
|
|
||||||
'green',
|
|
||||||
'red',
|
|
||||||
'purple',
|
|
||||||
'turquoise',
|
|
||||||
]
|
|
|
@ -1,33 +0,0 @@
|
||||||
persistence = [
|
|
||||||
'^(trunk)$',
|
|
||||||
'^story.*$',
|
|
||||||
]
|
|
||||||
order = [
|
|
||||||
'^trunk$',
|
|
||||||
]
|
|
||||||
|
|
||||||
[terminal_colors]
|
|
||||||
matches = [
|
|
||||||
[
|
|
||||||
'^trunk$',
|
|
||||||
['bright_blue'],
|
|
||||||
],
|
|
||||||
]
|
|
||||||
unknown = [
|
|
||||||
'bright_yellow',
|
|
||||||
'bright_green',
|
|
||||||
'bright_red',
|
|
||||||
'bright_magenta',
|
|
||||||
'bright_cyan',
|
|
||||||
]
|
|
||||||
|
|
||||||
[svg_colors]
|
|
||||||
matches = []
|
|
||||||
unknown = [
|
|
||||||
'blue',
|
|
||||||
'orange',
|
|
||||||
'green',
|
|
||||||
'red',
|
|
||||||
'purple',
|
|
||||||
'turquoise',
|
|
||||||
]
|
|
|
@ -1,8 +0,0 @@
|
||||||
# style name or JSON path (default "auto")
|
|
||||||
style: "~/.config/glow/catppuccin-macchiato.json"
|
|
||||||
# mouse support (TUI-mode only)
|
|
||||||
mouse: false
|
|
||||||
# use pager to display markdown
|
|
||||||
pager: false
|
|
||||||
# word-wrap at width
|
|
||||||
width: 80
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
command -v glow &>/dev/null || go install github.com/charmbracelet/glow@latest
|
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
$HOME/.config/nvim/install.sh
|
|
||||||
$HOME/.config/glow/install.sh
|
|
||||||
$HOME/.config/systemd/install.sh
|
|
||||||
|
|
||||||
# Git
|
|
||||||
command -v delta &>/dev/null || sudo dnf install -y git-delta
|
|
||||||
command -v git-graph &>/dev/null || cargo install git-graph
|
|
|
@ -1,356 +0,0 @@
|
||||||
[ActivityManager]
|
|
||||||
_k_friendly_name=Activity Manager
|
|
||||||
switch-to-activity-06e56b50-274c-44d5-bd05-253d1e88a244=none,none,Switch to activity "Standard"
|
|
||||||
switch-to-activity-10eae782-cee3-42c7-b63f-6cfa29a432f4=none,none,Switch to activity "Default"
|
|
||||||
switch-to-activity-12c956f8-79d2-4e10-ba60-c476b4f44bc6=none,none,Switch to activity "Default"
|
|
||||||
switch-to-activity-c9029e69-ec79-4399-8d82-a2b36f65b1d5=none,none,Switch to activity "Default"
|
|
||||||
|
|
||||||
[KDE Keyboard Layout Switcher]
|
|
||||||
Switch keyboard layout to English (UK, extended, Windows)=none,none,Switch keyboard layout to English (UK\\, extended\\, Windows)
|
|
||||||
Switch to Last-Used Keyboard Layout=Meta+Alt+L,Meta+Alt+L,Switch to Last-Used Keyboard Layout
|
|
||||||
Switch to Next Keyboard Layout=Meta+Alt+K,Meta+Alt+K,Switch to Next Keyboard Layout
|
|
||||||
_k_friendly_name=Keyboard Layout Switcher
|
|
||||||
|
|
||||||
[kaccess]
|
|
||||||
Toggle Screen Reader On and Off=Meta+Alt+S,Meta+Alt+S,Toggle Screen Reader On and Off
|
|
||||||
_k_friendly_name=Accessibility
|
|
||||||
|
|
||||||
[kcm_touchpad]
|
|
||||||
Disable Touchpad=Touchpad Off,Touchpad Off,
|
|
||||||
Enable Touchpad=Touchpad On,Touchpad On,
|
|
||||||
Toggle Touchpad=Touchpad Toggle\tMeta+Ctrl+Zenkaku Hankaku,Touchpad Toggle\tMeta+Ctrl+Zenkaku Hankaku,
|
|
||||||
_k_friendly_name=Touchpad
|
|
||||||
|
|
||||||
[kmix]
|
|
||||||
_k_friendly_name=Audio Volume
|
|
||||||
decrease_microphone_volume=Microphone Volume Down,Microphone Volume Down,Decrease Microphone Volume
|
|
||||||
decrease_volume=Volume Down,Volume Down,Decrease Volume
|
|
||||||
decrease_volume_small=Shift+Volume Down,Shift+Volume Down,Decrease Volume by 1%
|
|
||||||
increase_microphone_volume=Microphone Volume Up,Microphone Volume Up,Increase Microphone Volume
|
|
||||||
increase_volume=Volume Up,Volume Up,Increase Volume
|
|
||||||
increase_volume_small=Shift+Volume Up,Shift+Volume Up,Increase Volume by 1%
|
|
||||||
mic_mute=Microphone Mute\tMeta+Volume Mute,Microphone Mute\tMeta+Volume Mute,Mute Microphone
|
|
||||||
mute=Volume Mute,Volume Mute,Mute
|
|
||||||
|
|
||||||
[ksmserver]
|
|
||||||
Halt Without Confirmation=none,,Shut Down Without Confirmation
|
|
||||||
Lock Session=Screensaver,Meta+L\tScreensaver,Lock Session
|
|
||||||
Log Out=Ctrl+Alt+Del,Ctrl+Alt+Del,Show Logout Screen
|
|
||||||
Log Out Without Confirmation=none,,Log Out Without Confirmation
|
|
||||||
LogOut=none,,Log Out
|
|
||||||
Reboot=none,,Reboot
|
|
||||||
Reboot Without Confirmation=none,,Reboot Without Confirmation
|
|
||||||
Shut Down=none,,Shut Down
|
|
||||||
_k_friendly_name=Session Management
|
|
||||||
|
|
||||||
[kwin]
|
|
||||||
Activate Tile 1=none,none,Activate Tile 1
|
|
||||||
Activate Tile 10=none,none,Activate Tile 10
|
|
||||||
Activate Tile 2=none,none,Activate Tile 2
|
|
||||||
Activate Tile 3=none,none,Activate Tile 3
|
|
||||||
Activate Tile 4=none,none,Activate Tile 4
|
|
||||||
Activate Tile 5=none,none,Activate Tile 5
|
|
||||||
Activate Tile 6=none,none,Activate Tile 6
|
|
||||||
Activate Tile 7=none,none,Activate Tile 7
|
|
||||||
Activate Tile 8=none,none,Activate Tile 8
|
|
||||||
Activate Tile 9=none,none,Activate Tile 9
|
|
||||||
Activate Window Demanding Attention=none,Meta+Ctrl+A,Activate Window Demanding Attention
|
|
||||||
Assign to Tile 1=none,none,Assign to Tile 1
|
|
||||||
Assign to Tile 10=none,none,Assign to Tile 10
|
|
||||||
Assign to Tile 2=none,none,Assign to Tile 2
|
|
||||||
Assign to Tile 3=none,none,Assign to Tile 3
|
|
||||||
Assign to Tile 4=none,none,Assign to Tile 4
|
|
||||||
Assign to Tile 5=none,none,Assign to Tile 5
|
|
||||||
Assign to Tile 6=none,none,Assign to Tile 6
|
|
||||||
Assign to Tile 7=none,none,Assign to Tile 7
|
|
||||||
Assign to Tile 8=none,none,Assign to Tile 8
|
|
||||||
Assign to Tile 9=none,none,Assign to Tile 9
|
|
||||||
Cycle Overview=none,none,Cycle through Overview and Grid View
|
|
||||||
Cycle Overview Opposite=none,none,Cycle through Grid View and Overview
|
|
||||||
Decrease Opacity=none,,Decrease Opacity of Active Window by 5%
|
|
||||||
Edit Tiles=none,Meta+T,Toggle Tiles Editor
|
|
||||||
Expose=none,Ctrl+F9,Toggle Present Windows (Current desktop)
|
|
||||||
ExposeAll=none,Ctrl+F10\tLaunch (C),Toggle Present Windows (All desktops)
|
|
||||||
ExposeClass=none,Ctrl+F7,Toggle Present Windows (Window class)
|
|
||||||
ExposeClassCurrentDesktop=none,none,Toggle Present Windows (Window class on current desktop)
|
|
||||||
Grid View=none,Meta+G,Toggle Grid View
|
|
||||||
Increase Opacity=none,,Increase Opacity of Active Window by 5%
|
|
||||||
Invert=Meta+Ctrl+I,Meta+Ctrl+I,Toggle Invert Effect
|
|
||||||
Invert Screen Colors=none,none,Invert Screen Colors
|
|
||||||
InvertWindow=none,Meta+Ctrl+U,Toggle Invert Effect on Window
|
|
||||||
Kill Window=Alt+Shift+F4\tMeta+Shift+Q,Meta+Ctrl+Esc,Kill Window
|
|
||||||
KrohnkiteBTreeLayout=none,none,Krohnkite: BTree Layout
|
|
||||||
KrohnkiteDecrease=none,none,Krohnkite: Decrease
|
|
||||||
KrohnkiteFloatAll=none,none,Krohnkite: Float All
|
|
||||||
KrohnkiteFloatingLayout=none,none,Krohnkite: Floating Layout
|
|
||||||
KrohnkiteFocusDown=Meta+J,none,Krohnkite: Focus Down
|
|
||||||
KrohnkiteFocusLeft=Meta+H,none,Krohnkite: Focus Left
|
|
||||||
KrohnkiteFocusNext=none,none,Krohnkite: Focus Next
|
|
||||||
KrohnkiteFocusPrev=none,none,Krohnkite: Focus Previous
|
|
||||||
KrohnkiteFocusRight=Meta+L,none,Krohnkite: Focus Right
|
|
||||||
KrohnkiteFocusUp=Meta+K,none,Krohnkite: Focus Up
|
|
||||||
KrohnkiteGrowHeight=none,none,Krohnkite: Grow Height
|
|
||||||
KrohnkiteIncrease=none,none,Krohnkite: Increase
|
|
||||||
KrohnkiteMonocleLayout=none,none,Krohnkite: Monocle Layout
|
|
||||||
KrohnkiteNextLayout=Meta+M,none,Krohnkite: Next Layout
|
|
||||||
KrohnkitePreviousLayout=Meta+Shift+M,none,Krohnkite: Previous Layout
|
|
||||||
KrohnkiteQuarterLayout=none,none,Krohnkite: Quarter Layout
|
|
||||||
KrohnkiteRotate=Meta+R,none,Krohnkite: Rotate
|
|
||||||
KrohnkiteRotatePart=none,none,Krohnkite: Rotate Part
|
|
||||||
KrohnkiteSetMaster=none,none,Krohnkite: Set master
|
|
||||||
KrohnkiteShiftDown=Meta+Shift+J,none,Krohnkite: Move Down/Next
|
|
||||||
KrohnkiteShiftLeft=Meta+Shift+H,none,Krohnkite: Move Left
|
|
||||||
KrohnkiteShiftRight=Meta+Shift+L,none,Krohnkite: Move Right
|
|
||||||
KrohnkiteShiftUp=Meta+Shift+K,none,Krohnkite: Move Up/Prev
|
|
||||||
KrohnkiteShrinkHeight=none,none,Krohnkite: Shrink Height
|
|
||||||
KrohnkiteShrinkWidth=none,none,Krohnkite: Shrink Width
|
|
||||||
KrohnkiteSpiralLayout=none,none,Krohnkite: Spiral Layout
|
|
||||||
KrohnkiteSpreadLayout=none,none,Krohnkite: Spread Layout
|
|
||||||
KrohnkiteStackedLayout=none,none,Krohnkite: Stacked Layout
|
|
||||||
KrohnkiteStairLayout=none,none,Krohnkite: Stair Layout
|
|
||||||
KrohnkiteTileLayout=none,none,Krohnkite: Tile Layout
|
|
||||||
KrohnkiteToggleFloat=Meta+F,none,Krohnkite: Toggle Float
|
|
||||||
KrohnkiteTreeColumnLayout=none,none,Krohnkite: Tree Column Layout
|
|
||||||
KrohnkitegrowWidth=none,none,Krohnkite: Grow Width
|
|
||||||
Move Tablet to Next Output=none,none,Move the tablet to the next output
|
|
||||||
MoveMouseToCenter=none,Meta+F6,Move Mouse to Center
|
|
||||||
MoveMouseToFocus=none,Meta+F5,Move Mouse to Focus
|
|
||||||
MoveZoomDown=none,none,Move Zoomed Area Downwards
|
|
||||||
MoveZoomLeft=none,none,Move Zoomed Area to Left
|
|
||||||
MoveZoomRight=none,none,Move Zoomed Area to Right
|
|
||||||
MoveZoomUp=none,none,Move Zoomed Area Upwards
|
|
||||||
Overview=Meta+Tab,Meta+W,Toggle Overview
|
|
||||||
PoloniumCycleEngine=none,none,Polonium: Cycle Engine
|
|
||||||
PoloniumFocusAbove=none,none,Polonium: Focus Above
|
|
||||||
PoloniumFocusBelow=none,none,Polonium: Focus Below
|
|
||||||
PoloniumFocusLeft=none,none,Polonium: Focus Left
|
|
||||||
PoloniumFocusRight=none,none,Polonium: Focus Right
|
|
||||||
PoloniumInsertAbove=none,none,Polonium: Insert Above
|
|
||||||
PoloniumInsertBelow=none,none,Polonium: Insert Below
|
|
||||||
PoloniumInsertLeft=none,none,Polonium: Insert Left
|
|
||||||
PoloniumInsertRight=none,none,Polonium: Insert Right
|
|
||||||
PoloniumOpenSettings=none,none,Polonium: Open Settings Dialog
|
|
||||||
PoloniumResizeAbove=none,none,Polonium: Resize Above
|
|
||||||
PoloniumResizeBelow=none,none,Polonium: Resize Below
|
|
||||||
PoloniumResizeLeft=none,none,Polonium: Resize Left
|
|
||||||
PoloniumResizeRight=none,none,Polonium: Resize Right
|
|
||||||
PoloniumRetileWindow=none,none,Polonium: Retile Window
|
|
||||||
PoloniumSwitchBTree=none,none,Polonium: Use Binary Tree Engine
|
|
||||||
PoloniumSwitchHalf=none,none,Polonium: Use Half Engine
|
|
||||||
PoloniumSwitchKwin=none,none,Polonium: Use KWin Engine
|
|
||||||
PoloniumSwitchMonocle=none,none,Polonium: Use Monocle Engine
|
|
||||||
PoloniumSwitchThreeColumn=none,none,Polonium: Use Three Column Engine
|
|
||||||
Setup Window Shortcut=none,,Setup Window Shortcut
|
|
||||||
Show Desktop=none,Meta+D,Peek at Desktop
|
|
||||||
Switch One Desktop Down=none,Meta+Ctrl+Down,Switch One Desktop Down
|
|
||||||
Switch One Desktop Up=none,Meta+Ctrl+Up,Switch One Desktop Up
|
|
||||||
Switch One Desktop to the Left=none,Meta+Ctrl+Left,Switch One Desktop to the Left
|
|
||||||
Switch One Desktop to the Right=none,Meta+Ctrl+Right,Switch One Desktop to the Right
|
|
||||||
Switch Window Down=none,Meta+Alt+Down,Switch to Window Below
|
|
||||||
Switch Window Left=none,Meta+Alt+Left,Switch to Window to the Left
|
|
||||||
Switch Window Right=none,Meta+Alt+Right,Switch to Window to the Right
|
|
||||||
Switch Window Up=none,Meta+Alt+Up,Switch to Window Above
|
|
||||||
Switch to Desktop 1=none,Ctrl+F1,Switch to Desktop 1
|
|
||||||
Switch to Desktop 10=none,,Switch to Desktop 10
|
|
||||||
Switch to Desktop 11=none,,Switch to Desktop 11
|
|
||||||
Switch to Desktop 12=none,,Switch to Desktop 12
|
|
||||||
Switch to Desktop 13=none,,Switch to Desktop 13
|
|
||||||
Switch to Desktop 14=none,,Switch to Desktop 14
|
|
||||||
Switch to Desktop 15=none,,Switch to Desktop 15
|
|
||||||
Switch to Desktop 16=none,,Switch to Desktop 16
|
|
||||||
Switch to Desktop 17=none,,Switch to Desktop 17
|
|
||||||
Switch to Desktop 18=none,,Switch to Desktop 18
|
|
||||||
Switch to Desktop 19=none,,Switch to Desktop 19
|
|
||||||
Switch to Desktop 2=none,Ctrl+F2,Switch to Desktop 2
|
|
||||||
Switch to Desktop 20=none,,Switch to Desktop 20
|
|
||||||
Switch to Desktop 3=none,Ctrl+F3,Switch to Desktop 3
|
|
||||||
Switch to Desktop 4=none,Ctrl+F4,Switch to Desktop 4
|
|
||||||
Switch to Desktop 5=none,,Switch to Desktop 5
|
|
||||||
Switch to Desktop 6=none,,Switch to Desktop 6
|
|
||||||
Switch to Desktop 7=none,,Switch to Desktop 7
|
|
||||||
Switch to Desktop 8=none,,Switch to Desktop 8
|
|
||||||
Switch to Desktop 9=none,,Switch to Desktop 9
|
|
||||||
Switch to Next Desktop=none,,Switch to Next Desktop
|
|
||||||
Switch to Next Screen=none,,Switch to Next Screen
|
|
||||||
Switch to Previous Desktop=none,,Switch to Previous Desktop
|
|
||||||
Switch to Previous Screen=none,,Switch to Previous Screen
|
|
||||||
Switch to Screen 0=none,,Switch to Screen 0
|
|
||||||
Switch to Screen 1=none,,Switch to Screen 1
|
|
||||||
Switch to Screen 2=none,,Switch to Screen 2
|
|
||||||
Switch to Screen 3=none,,Switch to Screen 3
|
|
||||||
Switch to Screen 4=none,,Switch to Screen 4
|
|
||||||
Switch to Screen 5=none,,Switch to Screen 5
|
|
||||||
Switch to Screen 6=none,,Switch to Screen 6
|
|
||||||
Switch to Screen 7=none,,Switch to Screen 7
|
|
||||||
Switch to Screen Above=none,,Switch to Screen Above
|
|
||||||
Switch to Screen Below=none,,Switch to Screen Below
|
|
||||||
Switch to Screen to the Left=Meta+\\,,,Switch to Screen to the Left
|
|
||||||
Switch to Screen to the Right=Meta+.,,Switch to Screen to the Right
|
|
||||||
Toggle Night Color=none,none,Suspend/Resume Night Light
|
|
||||||
Toggle Window Raise/Lower=none,,Toggle Window Raise/Lower
|
|
||||||
ToggleCurrentThumbnail=none,Meta+Ctrl+T,Toggle Thumbnail for Current Window
|
|
||||||
Walk Through Windows=Alt+Tab,Alt+Tab,Walk Through Windows
|
|
||||||
Walk Through Windows (Reverse)=Alt+Shift+Tab,Alt+Shift+Tab,Walk Through Windows (Reverse)
|
|
||||||
Walk Through Windows Alternative=none,,Walk Through Windows Alternative
|
|
||||||
Walk Through Windows Alternative (Reverse)=none,,Walk Through Windows Alternative (Reverse)
|
|
||||||
Walk Through Windows of Current Application=none,Alt+`,Walk Through Windows of Current Application
|
|
||||||
Walk Through Windows of Current Application (Reverse)=none,Alt+~,Walk Through Windows of Current Application (Reverse)
|
|
||||||
Walk Through Windows of Current Application Alternative=none,,Walk Through Windows of Current Application Alternative
|
|
||||||
Walk Through Windows of Current Application Alternative (Reverse)=none,,Walk Through Windows of Current Application Alternative (Reverse)
|
|
||||||
Window Above Other Windows=none,,Keep Window Above Others
|
|
||||||
Window Below Other Windows=none,,Keep Window Below Others
|
|
||||||
Window Close=Alt+F4\tMeta+Q,Alt+F4,Close Window
|
|
||||||
Window Fullscreen=none,,Make Window Fullscreen
|
|
||||||
Window Grow Horizontal=none,,Expand Window Horizontally
|
|
||||||
Window Grow Vertical=none,,Expand Window Vertically
|
|
||||||
Window Lower=none,,Lower Window
|
|
||||||
Window Maximize=none,Meta+PgUp,Maximize Window
|
|
||||||
Window Maximize Horizontal=none,,Maximize Window Horizontally
|
|
||||||
Window Maximize Vertical=none,,Maximize Window Vertically
|
|
||||||
Window Minimize=none,Meta+PgDown,Minimize Window
|
|
||||||
Window Move=none,,Move Window
|
|
||||||
Window Move Center=none,,Move Window to the Center
|
|
||||||
Window No Border=none,,Toggle Window Titlebar and Frame
|
|
||||||
Window On All Desktops=none,,Keep Window on All Desktops
|
|
||||||
Window One Desktop Down=none,Meta+Ctrl+Shift+Down,Window One Desktop Down
|
|
||||||
Window One Desktop Up=none,Meta+Ctrl+Shift+Up,Window One Desktop Up
|
|
||||||
Window One Desktop to the Left=none,Meta+Ctrl+Shift+Left,Window One Desktop to the Left
|
|
||||||
Window One Desktop to the Right=none,Meta+Ctrl+Shift+Right,Window One Desktop to the Right
|
|
||||||
Window One Screen Down=none,,Move Window One Screen Down
|
|
||||||
Window One Screen Up=none,,Move Window One Screen Up
|
|
||||||
Window One Screen to the Left=none,,Move Window One Screen to the Left
|
|
||||||
Window One Screen to the Right=none,,Move Window One Screen to the Right
|
|
||||||
Window Operations Menu=none,Alt+F3,Window Operations Menu
|
|
||||||
Window Pack Down=none,,Move Window Down
|
|
||||||
Window Pack Left=none,,Move Window Left
|
|
||||||
Window Pack Right=none,,Move Window Right
|
|
||||||
Window Pack Up=none,,Move Window Up
|
|
||||||
Window Quick Tile Bottom=none,Meta+Down,Quick Tile Window to the Bottom
|
|
||||||
Window Quick Tile Bottom Left=none,,Quick Tile Window to the Bottom Left
|
|
||||||
Window Quick Tile Bottom Right=none,,Quick Tile Window to the Bottom Right
|
|
||||||
Window Quick Tile Left=none,Meta+Left,Quick Tile Window to the Left
|
|
||||||
Window Quick Tile Right=none,Meta+Right,Quick Tile Window to the Right
|
|
||||||
Window Quick Tile Top=none,Meta+Up,Quick Tile Window to the Top
|
|
||||||
Window Quick Tile Top Left=none,,Quick Tile Window to the Top Left
|
|
||||||
Window Quick Tile Top Right=none,,Quick Tile Window to the Top Right
|
|
||||||
Window Raise=none,,Raise Window
|
|
||||||
Window Resize=none,,Resize Window
|
|
||||||
Window Shade=none,,Shade Window
|
|
||||||
Window Shrink Horizontal=none,,Shrink Window Horizontally
|
|
||||||
Window Shrink Vertical=none,,Shrink Window Vertically
|
|
||||||
Window to Desktop 1=none,,Window to Desktop 1
|
|
||||||
Window to Desktop 10=none,,Window to Desktop 10
|
|
||||||
Window to Desktop 11=none,,Window to Desktop 11
|
|
||||||
Window to Desktop 12=none,,Window to Desktop 12
|
|
||||||
Window to Desktop 13=none,,Window to Desktop 13
|
|
||||||
Window to Desktop 14=none,,Window to Desktop 14
|
|
||||||
Window to Desktop 15=none,,Window to Desktop 15
|
|
||||||
Window to Desktop 16=none,,Window to Desktop 16
|
|
||||||
Window to Desktop 17=none,,Window to Desktop 17
|
|
||||||
Window to Desktop 18=none,,Window to Desktop 18
|
|
||||||
Window to Desktop 19=none,,Window to Desktop 19
|
|
||||||
Window to Desktop 2=none,,Window to Desktop 2
|
|
||||||
Window to Desktop 20=none,,Window to Desktop 20
|
|
||||||
Window to Desktop 3=none,,Window to Desktop 3
|
|
||||||
Window to Desktop 4=none,,Window to Desktop 4
|
|
||||||
Window to Desktop 5=none,,Window to Desktop 5
|
|
||||||
Window to Desktop 6=none,,Window to Desktop 6
|
|
||||||
Window to Desktop 7=none,,Window to Desktop 7
|
|
||||||
Window to Desktop 8=none,,Window to Desktop 8
|
|
||||||
Window to Desktop 9=none,,Window to Desktop 9
|
|
||||||
Window to Next Desktop=none,,Window to Next Desktop
|
|
||||||
Window to Next Screen=Meta+>,Meta+Shift+Right,Move Window to Next Screen
|
|
||||||
Window to Previous Desktop=none,,Window to Previous Desktop
|
|
||||||
Window to Previous Screen=Meta+<,Meta+Shift+Left,Move Window to Previous Screen
|
|
||||||
Window to Screen 0=none,,Move Window to Screen 0
|
|
||||||
Window to Screen 1=none,,Move Window to Screen 1
|
|
||||||
Window to Screen 2=none,,Move Window to Screen 2
|
|
||||||
Window to Screen 3=none,,Move Window to Screen 3
|
|
||||||
Window to Screen 4=none,,Move Window to Screen 4
|
|
||||||
Window to Screen 5=none,,Move Window to Screen 5
|
|
||||||
Window to Screen 6=none,,Move Window to Screen 6
|
|
||||||
Window to Screen 7=none,,Move Window to Screen 7
|
|
||||||
_k_friendly_name=KWin
|
|
||||||
view_actual_size=none,Meta+0,Zoom to Actual Size
|
|
||||||
view_zoom_in=Meta++\tMeta+=,Meta++\tMeta+=,Zoom In
|
|
||||||
view_zoom_out=Meta+-,Meta+-,Zoom Out
|
|
||||||
|
|
||||||
[mediacontrol]
|
|
||||||
_k_friendly_name=Media Controller
|
|
||||||
mediavolumedown=none,,Media volume down
|
|
||||||
mediavolumeup=none,,Media volume up
|
|
||||||
nextmedia=Media Next,Media Next,Media playback next
|
|
||||||
pausemedia=Media Pause,Media Pause,Pause media playback
|
|
||||||
playmedia=none,,Play media playback
|
|
||||||
playpausemedia=Media Play,Media Play,Play/Pause media playback
|
|
||||||
previousmedia=Media Previous,Media Previous,Media playback previous
|
|
||||||
stopmedia=Media Stop,Media Stop,Stop media playback
|
|
||||||
|
|
||||||
[org_kde_powerdevil]
|
|
||||||
Decrease Keyboard Brightness=Keyboard Brightness Down,Keyboard Brightness Down,Decrease Keyboard Brightness
|
|
||||||
Decrease Screen Brightness=Monitor Brightness Down,Monitor Brightness Down,Decrease Screen Brightness
|
|
||||||
Decrease Screen Brightness Small=Shift+Monitor Brightness Down,Shift+Monitor Brightness Down,Decrease Screen Brightness by 1%
|
|
||||||
Hibernate=Hibernate,Hibernate,Hibernate
|
|
||||||
Increase Keyboard Brightness=Keyboard Brightness Up,Keyboard Brightness Up,Increase Keyboard Brightness
|
|
||||||
Increase Screen Brightness=Monitor Brightness Up,Monitor Brightness Up,Increase Screen Brightness
|
|
||||||
Increase Screen Brightness Small=Shift+Monitor Brightness Up,Shift+Monitor Brightness Up,Increase Screen Brightness by 1%
|
|
||||||
PowerDown=Power Down,Power Down,Power Down
|
|
||||||
PowerOff=Power Off,Power Off,Power Off
|
|
||||||
Sleep=Sleep,Sleep,Suspend
|
|
||||||
Toggle Keyboard Backlight=Keyboard Light On/Off,Keyboard Light On/Off,Toggle Keyboard Backlight
|
|
||||||
Turn Off Screen=none,none,Turn Off Screen
|
|
||||||
_k_friendly_name=Power Management
|
|
||||||
powerProfile=Battery\tMeta+B,Battery\tMeta+B,Switch Power Profile
|
|
||||||
|
|
||||||
[plasmashell]
|
|
||||||
_k_friendly_name=plasmashell
|
|
||||||
activate application launcher=Meta,Meta\tAlt+F1,Activate Application Launcher
|
|
||||||
activate task manager entry 1=Meta+1,Meta+1,Activate Task Manager Entry 1
|
|
||||||
activate task manager entry 10=none,Meta+0,Activate Task Manager Entry 10
|
|
||||||
activate task manager entry 2=Meta+2,Meta+2,Activate Task Manager Entry 2
|
|
||||||
activate task manager entry 3=Meta+3,Meta+3,Activate Task Manager Entry 3
|
|
||||||
activate task manager entry 4=Meta+4,Meta+4,Activate Task Manager Entry 4
|
|
||||||
activate task manager entry 5=Meta+5,Meta+5,Activate Task Manager Entry 5
|
|
||||||
activate task manager entry 6=Meta+6,Meta+6,Activate Task Manager Entry 6
|
|
||||||
activate task manager entry 7=Meta+7,Meta+7,Activate Task Manager Entry 7
|
|
||||||
activate task manager entry 8=Meta+8,Meta+8,Activate Task Manager Entry 8
|
|
||||||
activate task manager entry 9=Meta+9,Meta+9,Activate Task Manager Entry 9
|
|
||||||
activate widget 5=Alt+F1,none,Activate Application Launcher Widget
|
|
||||||
clear-history=none,,Clear Clipboard History
|
|
||||||
clipboard_action=none,Meta+Ctrl+X,Automatic Action Popup Menu
|
|
||||||
cycle-panels=Meta+Alt+P,Meta+Alt+P,Move keyboard focus between panels
|
|
||||||
cycleNextAction=none,,Next History Item
|
|
||||||
cyclePrevAction=none,,Previous History Item
|
|
||||||
manage activities=none,Meta+Q,Show Activity Switcher
|
|
||||||
next activity=Meta+A,none,Walk through activities
|
|
||||||
previous activity=Meta+Shift+A,none,Walk through activities (Reverse)
|
|
||||||
repeat_action=none,Meta+Ctrl+R,Manually Invoke Action on Current Clipboard
|
|
||||||
show dashboard=Ctrl+F12,Ctrl+F12,Show Desktop
|
|
||||||
show-barcode=none,,Show Barcode…
|
|
||||||
show-on-mouse-pos=Meta+V,Meta+V,Show Clipboard Items at Mouse Position
|
|
||||||
stop current activity=Meta+S,Meta+S,Stop Current Activity
|
|
||||||
switch to next activity=none,,Switch to Next Activity
|
|
||||||
switch to previous activity=none,,Switch to Previous Activity
|
|
||||||
toggle do not disturb=none,,Toggle do not disturb
|
|
||||||
|
|
||||||
[services][org.kde.dolphin.desktop]
|
|
||||||
_launch=none
|
|
||||||
|
|
||||||
[services][org.kde.konsole.desktop]
|
|
||||||
_launch=Meta+Return
|
|
||||||
|
|
||||||
[services][org.kde.krunner.desktop]
|
|
||||||
RunClipboard=none
|
|
||||||
_launch=Meta+Space
|
|
||||||
|
|
||||||
[services][org.kde.plasma.emojier.desktop]
|
|
||||||
_launch=none
|
|
||||||
|
|
||||||
[services][org.kde.spectacle.desktop]
|
|
||||||
FullScreenScreenShot=none
|
|
||||||
RecordRegion=none
|
|
||||||
RecordScreen=none
|
|
||||||
RecordWindow=none
|
|
||||||
RectangularRegionScreenShot=Meta+Shift+S\tPrint
|
|
||||||
WindowUnderCursorScreenShot=none
|
|
||||||
_launch=none
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 61d0f5cf4cbd89f5c3676f72e2a3bd31b85880cd
|
|
1
.config/nvim/dependencies.dnf.txt
Normal file
1
.config/nvim/dependencies.dnf.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
neovim lua gcc curl wget git unzip tar gzip ripgrep php composer go nodejs npm delve
|
1
.config/nvim/init.lua
Normal file
1
.config/nvim/init.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require("core")
|
8
.config/nvim/lua/core/editor.lua
Normal file
8
.config/nvim/lua/core/editor.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
-- Use 2 Spaces Instead of Tabs --
|
||||||
|
vim.cmd("set expandtab")
|
||||||
|
vim.cmd("set tabstop=4")
|
||||||
|
vim.cmd("set softtabstop=4")
|
||||||
|
vim.cmd("set shiftwidth=4")
|
||||||
|
|
||||||
|
-- Enable Line Number --
|
||||||
|
vim.cmd("set number")
|
3
.config/nvim/lua/core/init.lua
Normal file
3
.config/nvim/lua/core/init.lua
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
require("core.keymap")
|
||||||
|
require("core.editor")
|
||||||
|
require("core.package_manager")
|
5
.config/nvim/lua/core/keymap.lua
Normal file
5
.config/nvim/lua/core/keymap.lua
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
|
--[[ Indentation ]]--
|
||||||
|
vim.keymap.set("n", "<Tab>", " >>")
|
||||||
|
vim.keymap.set("n", "<S-Tab>", " <<")
|
15
.config/nvim/lua/core/package_manager.lua
Normal file
15
.config/nvim/lua/core/package_manager.lua
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
"--branch=stable",
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
local opts = {}
|
||||||
|
require("lazy").setup("plugins", opts)
|
32
.config/nvim/lua/plugins/dashboard.lua
Normal file
32
.config/nvim/lua/plugins/dashboard.lua
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
return {
|
||||||
|
"goolord/alpha-nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
local alpha = require("alpha")
|
||||||
|
local dashboard = require("alpha.themes.startify")
|
||||||
|
|
||||||
|
-- Header --
|
||||||
|
dashboard.section.header.val = {
|
||||||
|
[[ ]],
|
||||||
|
[[ ]],
|
||||||
|
[[ ]],
|
||||||
|
[[ ]],
|
||||||
|
[[ ]],
|
||||||
|
[[ ████ ██████ █████ ██ ]],
|
||||||
|
[[ ███████████ █████ ]],
|
||||||
|
[[ █████████ ███████████████████ ███ ███████████ ]],
|
||||||
|
[[ █████████ ███ █████████████ █████ ██████████████ ]],
|
||||||
|
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
|
||||||
|
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
|
||||||
|
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
|
||||||
|
[[ ]],
|
||||||
|
[[ ]],
|
||||||
|
[[ ]],
|
||||||
|
}
|
||||||
|
|
||||||
|
alpha.setup(dashboard.opts)
|
||||||
|
end,
|
||||||
|
}
|
8
.config/nvim/lua/plugins/editor.lua
Normal file
8
.config/nvim/lua/plugins/editor.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
return {
|
||||||
|
require("plugins.editor.editor_auto_brackets"),
|
||||||
|
require("plugins.editor.editor_code_highlighting"),
|
||||||
|
require("plugins.editor.editor_code_snippets"),
|
||||||
|
require("plugins.editor.editor_debugging"),
|
||||||
|
require("plugins.editor.editor_language_server"),
|
||||||
|
require("plugins.editor.editor_markdown_preview")
|
||||||
|
}
|
25
.config/nvim/lua/plugins/editor/debugger/debugger_go.lua
Normal file
25
.config/nvim/lua/plugins/editor/debugger/debugger_go.lua
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
return {
|
||||||
|
"leoluz/nvim-dap-go",
|
||||||
|
config = function()
|
||||||
|
|
||||||
|
require("dap-go").setup({
|
||||||
|
delve = {
|
||||||
|
cwd = require("utils.finder").find_project_dir(
|
||||||
|
"go.mod",
|
||||||
|
3,
|
||||||
|
{
|
||||||
|
"src",
|
||||||
|
"app",
|
||||||
|
"pkg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"test"
|
||||||
|
},
|
||||||
|
true
|
||||||
|
)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
6
.config/nvim/lua/plugins/editor/editor_auto_brackets.lua
Normal file
6
.config/nvim/lua/plugins/editor/editor_auto_brackets.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
'm4xshen/autoclose.nvim',
|
||||||
|
config = function()
|
||||||
|
require("autoclose").setup()
|
||||||
|
end
|
||||||
|
}
|
19
.config/nvim/lua/plugins/editor/editor_code_highlighting.lua
Normal file
19
.config/nvim/lua/plugins/editor/editor_code_highlighting.lua
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
build = ":TSUpdate",
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
local config = require("nvim-treesitter.configs")
|
||||||
|
config.setup({
|
||||||
|
auto_install = true,
|
||||||
|
highlight = { enable = true },
|
||||||
|
indent = { enable = true },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"NoahTheDuke/vim-just",
|
||||||
|
ft = { "just" },
|
||||||
|
},
|
||||||
|
}
|
74
.config/nvim/lua/plugins/editor/editor_code_snippets.lua
Normal file
74
.config/nvim/lua/plugins/editor/editor_code_snippets.lua
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
version = "2.*",
|
||||||
|
dependencies = {
|
||||||
|
"rafamadriz/friendly-snippets",
|
||||||
|
"mireq/luasnip-snippets",
|
||||||
|
},
|
||||||
|
build = "make install_jsregexp",
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
|
require("luasnip.loaders.from_snipmate").lazy_load()
|
||||||
|
require("luasnip_snippets.common.snip_utils").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
dependencies = {
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
"saadparwaiz1/cmp_luasnip",
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
local cmp = require("cmp")
|
||||||
|
local luasnip = require("luasnip")
|
||||||
|
luasnip.setup({
|
||||||
|
load_ft_func = require("luasnip_snippets.common.snip_utils").load_ft_func,
|
||||||
|
ft_func = require("luasnip_snippets.common.snip_utils").ft_func,
|
||||||
|
enable_autosnippets = true,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Keybinding --
|
||||||
|
vim.keymap.set({ "i", "s" }, "<Tab>", function()
|
||||||
|
if luasnip.expand_or_jumpable() then
|
||||||
|
luasnip.expand_or_jump()
|
||||||
|
else
|
||||||
|
vim.api.nvim_input("<C-V><Tab>")
|
||||||
|
end
|
||||||
|
end, { silent = true })
|
||||||
|
|
||||||
|
vim.keymap.set({ "i", "s" }, "<S-Tab>", function()
|
||||||
|
luasnip.jump(-1)
|
||||||
|
end, { silent = true })
|
||||||
|
|
||||||
|
local doc_keybindings = {
|
||||||
|
["<C-b>"] = cmp.mapping.scroll_docs(-4),
|
||||||
|
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||||
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
|
["<C-e>"] = cmp.mapping.abort(),
|
||||||
|
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Setup --
|
||||||
|
cmp.setup({
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
luasnip.lsp_expand(args.body)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
completion = cmp.config.window.bordered(),
|
||||||
|
documentation = cmp.config.window.bordered(),
|
||||||
|
},
|
||||||
|
mapping = cmp.mapping.preset.insert(doc_keybindings),
|
||||||
|
sources = cmp.config.sources({
|
||||||
|
{ name = "nvim_lsp" },
|
||||||
|
{ name = "luasnip" },
|
||||||
|
}, { { name = "buffer" } }),
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
75
.config/nvim/lua/plugins/editor/editor_debugging.lua
Normal file
75
.config/nvim/lua/plugins/editor/editor_debugging.lua
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
dependencies = {
|
||||||
|
"rcarriga/nvim-dap-ui",
|
||||||
|
"nvim-neotest/nvim-nio",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Setup Debugging --
|
||||||
|
local dap = require("dap")
|
||||||
|
|
||||||
|
-- Open UI on Debugging --
|
||||||
|
local dapui = require("dapui")
|
||||||
|
dapui.setup({
|
||||||
|
layouts = {
|
||||||
|
{
|
||||||
|
elements = {
|
||||||
|
{ id = "scopes", size = 0.65 },
|
||||||
|
{ id = "breakpoints", size = 0.35 },
|
||||||
|
},
|
||||||
|
position = "left",
|
||||||
|
size = 40,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
elements = {
|
||||||
|
{ id = "repl", size = 0.5 },
|
||||||
|
{ id = "console", size = 0.5 },
|
||||||
|
},
|
||||||
|
position = "bottom",
|
||||||
|
size = 10,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
dap.listeners.before.attach.dapui_config = function()
|
||||||
|
dapui.open()
|
||||||
|
end
|
||||||
|
dap.listeners.before.launch.dapui_config = function()
|
||||||
|
dapui.open()
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Keybinding --
|
||||||
|
vim.keymap.set("n", "<Leader>dt", dapui.toggle, { desc = "Toggle Debugger UI" })
|
||||||
|
vim.keymap.set("n", "<Leader>db", dap.toggle_breakpoint, { desc = "Toggle Breakpoint" })
|
||||||
|
vim.keymap.set("n", "<Leader>dc", dap.continue, { desc = "Debugger Continue" })
|
||||||
|
vim.keymap.set("n", "<Leader>dx", dap.terminate, { desc = "Debugger Terminate" })
|
||||||
|
vim.keymap.set("n", "<Leader>ds", dap.step_over, { desc = "Debugger Step Over" })
|
||||||
|
|
||||||
|
-- Breakpoints --
|
||||||
|
vim.api.nvim_set_hl(0, "DapBreakpoint", { ctermbg = 0, fg = "#993939", bg = "#31353f" })
|
||||||
|
vim.api.nvim_set_hl(0, "DapLogPoint", { ctermbg = 0, fg = "#61afef", bg = "#31353f" })
|
||||||
|
vim.api.nvim_set_hl(0, "DapStopped", { ctermbg = 0, fg = "#98c379", bg = "#31353f" })
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"DapBreakpoint",
|
||||||
|
{ text = "", texthl = "DapBreakpoint", linehl = "DapBreakpoint", numhl = "DapBreakpoint" }
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"DapBreakpointCondition",
|
||||||
|
{ text = "", texthl = "DapBreakpoint", linehl = "DapBreakpoint", numhl = "DapBreakpoint" }
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"DapBreakpointRejected",
|
||||||
|
{ text = "", texthl = "DapBreakpoint", linehl = "DapBreakpoint", numhl = "DapBreakpoint" }
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"DapLogPoint",
|
||||||
|
{ text = "", texthl = "DapLogPoint", linehl = "DapLogPoint", numhl = "DapLogPoint" }
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"DapStopped",
|
||||||
|
{ text = "", texthl = "DapStopped", linehl = "DapStopped", numhl = "DapStopped" }
|
||||||
|
)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
require("plugins.editor.debugger.debugger_go"),
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
return {
|
||||||
|
require("plugins.editor.language_server.language_server"),
|
||||||
|
require("plugins.editor.language_server.language_server_extra"),
|
||||||
|
require("plugins.editor.language_server.language_server_nvim_configuration"),
|
||||||
|
}
|
30
.config/nvim/lua/plugins/editor/editor_markdown_preview.lua
Normal file
30
.config/nvim/lua/plugins/editor/editor_markdown_preview.lua
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
return {
|
||||||
|
"mrjones2014/mdpreview.nvim",
|
||||||
|
ft = "markdown",
|
||||||
|
dependencies = {
|
||||||
|
"norcalli/nvim-terminal.lua",
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("mdpreview").setup({
|
||||||
|
cli_args = {
|
||||||
|
"glow",
|
||||||
|
"-s",
|
||||||
|
"~/.config/glow/catppuccin-macchiato.json",
|
||||||
|
"-w",
|
||||||
|
"1",
|
||||||
|
"--local",
|
||||||
|
},
|
||||||
|
renderer = {
|
||||||
|
opts = {
|
||||||
|
win_opts = {
|
||||||
|
number = true,
|
||||||
|
wrap = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<Leader>mp", ":Mdpreview<CR>", { desc = "Show Markdown Preview" })
|
||||||
|
end,
|
||||||
|
}
|
|
@ -0,0 +1,170 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
lazy = false,
|
||||||
|
config = function()
|
||||||
|
require("mason").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
lazy = false,
|
||||||
|
opts = {
|
||||||
|
auto_install = true,
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("mason-lspconfig").setup({
|
||||||
|
ensure_installed = {
|
||||||
|
"lua_ls",
|
||||||
|
"bashls",
|
||||||
|
"dotls",
|
||||||
|
"jsonls",
|
||||||
|
"sqlls",
|
||||||
|
"lemminx",
|
||||||
|
"yamlls",
|
||||||
|
"marksman",
|
||||||
|
"html",
|
||||||
|
"emmet_ls",
|
||||||
|
"cssls",
|
||||||
|
"tailwindcss",
|
||||||
|
"tsserver",
|
||||||
|
"stimulus_ls",
|
||||||
|
"svelte",
|
||||||
|
"volar",
|
||||||
|
"eslint",
|
||||||
|
"phpactor",
|
||||||
|
"gopls",
|
||||||
|
"rust_analyzer",
|
||||||
|
"jdtls",
|
||||||
|
"kotlin_language_server",
|
||||||
|
"pylsp",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
lazy = false,
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
|
-- Lua support --
|
||||||
|
lspconfig.lua_ls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
settings = {
|
||||||
|
Lua = {
|
||||||
|
diagnostics = {
|
||||||
|
globals = { "vim" },
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Bash support --
|
||||||
|
lspconfig.bashls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- Dotenv support --
|
||||||
|
lspconfig.dotls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- JSON support --
|
||||||
|
lspconfig.jsonls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- SQL support --
|
||||||
|
lspconfig.sqlls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- XML support --
|
||||||
|
lspconfig.lemminx.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- YAML support --
|
||||||
|
lspconfig.yamlls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Markdown support --
|
||||||
|
lspconfig.marksman.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- HTML support --
|
||||||
|
lspconfig.html.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- Emmet support --
|
||||||
|
lspconfig.emmet_ls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- PHP support --
|
||||||
|
lspconfig.phpactor.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- CSS & SCSS support --$response
|
||||||
|
lspconfig.cssls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- Tailwind support --
|
||||||
|
lspconfig.tailwindcss.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- JavaScript & TypeScript support --
|
||||||
|
lspconfig.tsserver.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- Stimulus support --
|
||||||
|
lspconfig.stimulus_ls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- Svelte support --
|
||||||
|
lspconfig.svelte.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- Vue support --
|
||||||
|
lspconfig.volar.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Go support --
|
||||||
|
lspconfig.gopls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Rust support --
|
||||||
|
lspconfig.rust_analyzer.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Java support --
|
||||||
|
lspconfig.jdtls.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
-- Kotlin support --
|
||||||
|
lspconfig.kotlin_language_server.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Python support --
|
||||||
|
lspconfig.pylsp.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Eslint support --
|
||||||
|
lspconfig.eslint.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Keybinding --
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>cd", vim.lsp.buf.hover, { desc = "Show Code Definition" })
|
||||||
|
vim.keymap.set("n", "<leader>gd", vim.lsp.buf.definition, { desc = "Go to Definition" })
|
||||||
|
vim.keymap.set("n", "<leader>gr", vim.lsp.buf.references, { desc = "Go to References" })
|
||||||
|
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, { desc = "Do Code Actions" })
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
return {
|
||||||
|
"nvimtools/none-ls.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
local null_ls = require("null-ls")
|
||||||
|
null_ls.setup({
|
||||||
|
sources = {
|
||||||
|
-- Prettier --
|
||||||
|
null_ls.builtins.formatting.prettier,
|
||||||
|
|
||||||
|
-- Php --
|
||||||
|
null_ls.builtins.diagnostics.phpstan,
|
||||||
|
null_ls.builtins.formatting.phpcsfixer.with({
|
||||||
|
prefer_local = "vendor/bin/php-cs-fixer",
|
||||||
|
args = { "fix", "--allow-risky=yes", "$FILENAME" }
|
||||||
|
}),
|
||||||
|
|
||||||
|
-- Twig --
|
||||||
|
null_ls.builtins.diagnostics.twigcs,
|
||||||
|
|
||||||
|
-- JavaScript & Typescript
|
||||||
|
--null_ls.builtins.formatting.eslint_d,
|
||||||
|
|
||||||
|
-- Lua --
|
||||||
|
null_ls.builtins.formatting.stylua,
|
||||||
|
|
||||||
|
-- Go --
|
||||||
|
null_ls.builtins.formatting.gofumpt,
|
||||||
|
null_ls.builtins.code_actions.gomodifytags,
|
||||||
|
null_ls.builtins.code_actions.impl
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Keybinding --
|
||||||
|
vim.keymap.set("n", "<leader>fc", vim.lsp.buf.format, { desc = "Format Code" })
|
||||||
|
end,
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
return {
|
||||||
|
"folke/neodev.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"rcarriga/nvim-dap-ui",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("neodev").setup({
|
||||||
|
library = {
|
||||||
|
plugins = {
|
||||||
|
"nvim-dap-ui",
|
||||||
|
},
|
||||||
|
types = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
67
.config/nvim/lua/plugins/file_tree.lua
Normal file
67
.config/nvim/lua/plugins/file_tree.lua
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
return {
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
branch = "v3.x",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
require("neo-tree").setup({
|
||||||
|
close_if_last_window = false,
|
||||||
|
enable_git_status = true,
|
||||||
|
enable_diagnostics = true,
|
||||||
|
name = {
|
||||||
|
trailing_slash = false,
|
||||||
|
use_git_status_colors = true,
|
||||||
|
highlight = "NeoTreeFileName",
|
||||||
|
},
|
||||||
|
git_status = {
|
||||||
|
symbols = {
|
||||||
|
-- Git Change type Icon --
|
||||||
|
added = "✚",
|
||||||
|
modified = "",
|
||||||
|
deleted = "✖",
|
||||||
|
renamed = "",
|
||||||
|
-- Git Status type Icon --
|
||||||
|
untracked = "",
|
||||||
|
ignored = "",
|
||||||
|
unstaged = "",
|
||||||
|
staged = "",
|
||||||
|
conflict = "",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
symlink_target = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
filesystem = {
|
||||||
|
hijack_netrw_behavior = "open_default"
|
||||||
|
},
|
||||||
|
-- Keybinding --
|
||||||
|
window = {
|
||||||
|
mappings = {
|
||||||
|
["<space>"] = "open"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Dignostic Icons --
|
||||||
|
vim.fn.sign_define("DiagnosticSignError", {
|
||||||
|
text = " ", texthl = "DiagnosticSignError"
|
||||||
|
})
|
||||||
|
vim.fn.sign_define("DiagnosticSignWarn", {
|
||||||
|
text = " ", texthl = "DiagnosticSignWarn"
|
||||||
|
})
|
||||||
|
vim.fn.sign_define("DiagnosticSignInfo", {
|
||||||
|
text = " ", texthl = "DiagnosticSignInfo"
|
||||||
|
})
|
||||||
|
vim.fn.sign_define("DiagnosticSignHint", {
|
||||||
|
text = "", texthl = "DiagnosticSignHint"
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Keybinding --
|
||||||
|
vim.keymap.set("n", "<C-n>", ":Neotree toggle reveal left<CR>", { desc = "Toggle File Tree" })
|
||||||
|
vim.keymap.set("n", "<leader>bf", ":Neotree buffers reveal float<CR>", { desc = "Show Open Files" })
|
||||||
|
end,
|
||||||
|
}
|
17
.config/nvim/lua/plugins/git.lua
Normal file
17
.config/nvim/lua/plugins/git.lua
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"tpope/vim-fugitive",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
require("gitsigns").setup()
|
||||||
|
|
||||||
|
-- Keybinding --
|
||||||
|
vim.keymap.set("n", "<leader>gh", ":Gitsigns preview_hunk_inline<CR>", { desc = "Toggle Inline Git Diff" })
|
||||||
|
vim.keymap.set("n", "<leader>gb", ":Gitsigns toggle_current_line_blame<CR>", { desc = "Toggle Inline Git Blame" })
|
||||||
|
vim.keymap.set("n", "<leader>go", ":Git <CR>", { desc = "Open Git" })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
10
.config/nvim/lua/plugins/key_list.lua
Normal file
10
.config/nvim/lua/plugins/key_list.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
config = function()
|
||||||
|
vim.o.timeout = true;
|
||||||
|
vim.o.timeoutlen = 300
|
||||||
|
require("which-key").setup({
|
||||||
|
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
36
.config/nvim/lua/plugins/search.lua
Normal file
36
.config/nvim/lua/plugins/search.lua
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
return {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
tag = "0.1.5",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-telescope/telescope-ui-select.nvim"
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
require("telescope").setup({
|
||||||
|
extensions = {
|
||||||
|
["ui-select"] = {
|
||||||
|
require("telescope.themes").get_dropdown({}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
require("telescope").load_extension("ui-select")
|
||||||
|
|
||||||
|
-- Keybinding --
|
||||||
|
local function setTelescopeBinding(mode, keymap, method, search_global, description)
|
||||||
|
local function binding()
|
||||||
|
local path = search_global and "~" or require("neo-tree.sources.manager").get_state("filesystem").path
|
||||||
|
method({ search_dirs = { path } })
|
||||||
|
end
|
||||||
|
vim.keymap.set(mode, keymap, binding, { desc = description })
|
||||||
|
end
|
||||||
|
|
||||||
|
local telescope = require("telescope.builtin")
|
||||||
|
|
||||||
|
setTelescopeBinding("n", "<leader>ff", telescope.find_files, false, "Find File")
|
||||||
|
setTelescopeBinding("n", "<leader>fz", telescope.live_grep, false, "Fuzzy Find")
|
||||||
|
setTelescopeBinding("n", "<leader>gff", telescope.find_files, true, "Global Find File")
|
||||||
|
setTelescopeBinding("n", "<leader>gfz", telescope.live_grep, true, "Global Fuzzy Find")
|
||||||
|
|
||||||
|
end
|
||||||
|
}
|
60
.config/nvim/lua/plugins/status_bar.lua
Normal file
60
.config/nvim/lua/plugins/status_bar.lua
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
config = function()
|
||||||
|
-- Setup --
|
||||||
|
require("lualine").setup({
|
||||||
|
options = {
|
||||||
|
component_separators = { left = "", right = "" },
|
||||||
|
section_separators = { left = "", right = "" },
|
||||||
|
disabled_filetypes = {
|
||||||
|
"neo-tree",
|
||||||
|
"fugitive",
|
||||||
|
"help",
|
||||||
|
},
|
||||||
|
ignore_focus = {},
|
||||||
|
always_divide_middle = true,
|
||||||
|
globalstatus = false,
|
||||||
|
refresh = {
|
||||||
|
statusline = 1000,
|
||||||
|
tabline = 1000,
|
||||||
|
winbar = 1000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_a = { "mode" },
|
||||||
|
lualine_b = { "branch", "diff", "diagnostics" },
|
||||||
|
lualine_x = { "location" },
|
||||||
|
lualine_y = { "encoding" },
|
||||||
|
lualine_z = { "filetype" },
|
||||||
|
},
|
||||||
|
inactive_sections = {
|
||||||
|
lualine_a = { "mode" },
|
||||||
|
lualine_b = { "branch", "diff", "diagnostics" },
|
||||||
|
lualine_x = { "location" },
|
||||||
|
lualine_y = { "encoding" },
|
||||||
|
lualine_z = { "filetype" },
|
||||||
|
},
|
||||||
|
tabline = {},
|
||||||
|
winbar = {
|
||||||
|
lualine_a = { "filename" },
|
||||||
|
},
|
||||||
|
inactive_winbar = {
|
||||||
|
lualine_a = { "filename" },
|
||||||
|
},
|
||||||
|
extensions = {},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"romgrk/barbar.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("barbar").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
21
.config/nvim/lua/plugins/terminal.lua
Normal file
21
.config/nvim/lua/plugins/terminal.lua
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
return {
|
||||||
|
"caenrique/buffer-term.nvim",
|
||||||
|
config = function()
|
||||||
|
local buffer_term = require("buffer-term")
|
||||||
|
buffer_term.setup()
|
||||||
|
|
||||||
|
-- Keybindings --
|
||||||
|
vim.keymap.set({ "n", "t" }, "<F6>", buffer_term.toggle_last, { desc = "Toggle Last Terminal" })
|
||||||
|
|
||||||
|
local function getToggleTerminalFunction(terminalNumber)
|
||||||
|
return function()
|
||||||
|
buffer_term.toggle(terminalNumber)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for i = 0, 9 do
|
||||||
|
local key = "<F6>" .. i
|
||||||
|
vim.keymap.set({ "n", "t" }, key, getToggleTerminalFunction(tostring(i)), { desc = "Toggle Terminal " .. i })
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
9
.config/nvim/lua/plugins/theme.lua
Normal file
9
.config/nvim/lua/plugins/theme.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
"catppuccin/nvim",
|
||||||
|
name = "catppuccin",
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
-- Set Theme --
|
||||||
|
vim.cmd("colorscheme catppuccin")
|
||||||
|
end
|
||||||
|
}
|
114
.config/nvim/lua/utils/finder.lua
Normal file
114
.config/nvim/lua/utils/finder.lua
Normal file
|
@ -0,0 +1,114 @@
|
||||||
|
local Finder = {}
|
||||||
|
|
||||||
|
Finder = {}
|
||||||
|
|
||||||
|
local function is_ignored(entry, ignore_dot_dirs, ignored_dirs)
|
||||||
|
if entry == ".." or entry == "." then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
if ignore_dot_dirs and string.match(entry, "^%.") then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, dir in ipairs(ignored_dirs) do
|
||||||
|
if entry == dir or string.find(entry, dir, 1, true) then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
local function read_dir(dir)
|
||||||
|
local handle = io.popen('ls -a "' .. dir .. '"')
|
||||||
|
if not handle then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
local result = handle:read("*a")
|
||||||
|
handle:close()
|
||||||
|
return result
|
||||||
|
end
|
||||||
|
|
||||||
|
local function is_dir(path)
|
||||||
|
local f = io.open(path, "r")
|
||||||
|
if f == nil then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
local _, _, code = f:read(1)
|
||||||
|
f:close()
|
||||||
|
return code == 21
|
||||||
|
end
|
||||||
|
|
||||||
|
local function find_path_recursive(_dir, options)
|
||||||
|
-- Check max Depth
|
||||||
|
if options.current_depth > options.max_depth then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local entries = read_dir(_dir)
|
||||||
|
if entries == nil then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
for entry in string.gmatch(entries, "[^\r\n]+") do
|
||||||
|
-- Check Ignored
|
||||||
|
if is_ignored(entry, options.ignore_dot_dirs, options.ignored_dirs) then
|
||||||
|
goto continue
|
||||||
|
end
|
||||||
|
|
||||||
|
local full_path = _dir .. "/" .. entry
|
||||||
|
|
||||||
|
-- Check for File
|
||||||
|
if entry == options.needle_file then
|
||||||
|
return full_path
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Check is Dir
|
||||||
|
if not is_dir(full_path) then
|
||||||
|
goto continue
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Recursive Call
|
||||||
|
options.current_depth = options.current_depth + 1
|
||||||
|
local result = find_path_recursive(full_path, options)
|
||||||
|
if result ~= nil then
|
||||||
|
return result
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Cleanup
|
||||||
|
options.current_depth = options.current_depth - 1
|
||||||
|
::continue::
|
||||||
|
end
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local function get_opened_folder()
|
||||||
|
local cwd = vim.fn.getcwd()
|
||||||
|
local file_path = vim.fn.expand('%:p:h')
|
||||||
|
|
||||||
|
if file_path ~= '' then
|
||||||
|
return file_path
|
||||||
|
end
|
||||||
|
return cwd
|
||||||
|
end
|
||||||
|
|
||||||
|
function Finder.find_project_dir(needle_file, max_depth, priority_dirs, ignored_dirs, ignore_dot_dirs)
|
||||||
|
local options = {
|
||||||
|
needle_file = needle_file,
|
||||||
|
max_depth = max_depth,
|
||||||
|
priority_dirs = priority_dirs,
|
||||||
|
ignored_dirs = ignored_dirs,
|
||||||
|
ignore_dot_dirs = ignore_dot_dirs,
|
||||||
|
current_depth = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
local dir = get_opened_folder()
|
||||||
|
local file = find_path_recursive(dir, options)
|
||||||
|
if file == nil then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
return file:match("(.*/)")
|
||||||
|
end
|
||||||
|
|
||||||
|
return Finder
|
1
.config/oh-my-bash
Submodule
1
.config/oh-my-bash
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit f882b9af13c1c5183fc7283c60c99315bf68a48f
|
|
@ -1,91 +0,0 @@
|
||||||
|
|
||||||
version = 2
|
|
||||||
final_space = true
|
|
||||||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
|
||||||
|
|
||||||
[[blocks]]
|
|
||||||
type = 'prompt'
|
|
||||||
alignment = 'left'
|
|
||||||
newline = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'path'
|
|
||||||
style = 'diamond'
|
|
||||||
leading_diamond = ''
|
|
||||||
trailing_diamond = ''
|
|
||||||
template = '{{ path .Path .Location }} '
|
|
||||||
background = 'p:beige'
|
|
||||||
foreground = 'p:black'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
style = 'agnoster_full'
|
|
||||||
[blocks.segments.properties.mapped_locations]
|
|
||||||
"~" = ""
|
|
||||||
"~/Downloads" = ""
|
|
||||||
"~/Workspace" = " "
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'git'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
leading_diamond = '<transparent,background></>'
|
|
||||||
background_templates = [
|
|
||||||
'{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}',
|
|
||||||
'{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}',
|
|
||||||
'{{ if gt .Ahead 0 }}#49416D{{ end }}',
|
|
||||||
'{{ if gt .Behind 0 }}#7A306C{{ end }}',
|
|
||||||
]
|
|
||||||
template = ' {{ if .UpstreamURL }}{{ .UpstreamIcon }}{{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }} '
|
|
||||||
background = 'p:green'
|
|
||||||
foreground = 'p:black'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
branch_max_length = 25
|
|
||||||
fetch_status = true
|
|
||||||
fetch_upstream_icon = true
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'root'
|
|
||||||
style = 'powerline'
|
|
||||||
powerline_symbol = '60°, 10'
|
|
||||||
template = ' '
|
|
||||||
background = 'p:yellow'
|
|
||||||
foreground = 'p:white'
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'node'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
leading_diamond = '<transparent,background></>'
|
|
||||||
template = 'JS '
|
|
||||||
background = 'p:gray'
|
|
||||||
foreground = 'p:green'
|
|
||||||
|
|
||||||
[blocks.segments.properties]
|
|
||||||
display_mode = 'files'
|
|
||||||
fetch_package_manager = false
|
|
||||||
home_enabled = false
|
|
||||||
|
|
||||||
[[blocks.segments]]
|
|
||||||
type = 'go'
|
|
||||||
style = 'diamond'
|
|
||||||
trailing_diamond = ''
|
|
||||||
leading_diamond = '<transparent,background></>'
|
|
||||||
template = 'Go '
|
|
||||||
background = 'p:gray'
|
|
||||||
foreground = 'p:cyan'
|
|
||||||
|
|
||||||
[transient_prompt]
|
|
||||||
template = "\ue285 "
|
|
||||||
|
|
||||||
[palette]
|
|
||||||
black = '#11111b'
|
|
||||||
gray = '#6c7086'
|
|
||||||
blue = '#89b4fa'
|
|
||||||
cyan = '#74c7ec'
|
|
||||||
green = '#a6e3a1'
|
|
||||||
orange = '#fab387'
|
|
||||||
red = '#f38ba8'
|
|
||||||
white = '#cdd6f4'
|
|
||||||
yellow = '#f9e2af'
|
|
||||||
beige = '#f2cdcd'
|
|
3
.config/ssh/.gitignore
vendored
3
.config/ssh/.gitignore
vendored
|
@ -1,3 +0,0 @@
|
||||||
*
|
|
||||||
!.gitignore
|
|
||||||
config
|
|
|
@ -9,11 +9,3 @@ Host github.com
|
||||||
HostName github.com
|
HostName github.com
|
||||||
PreferredAuthentications publickey
|
PreferredAuthentications publickey
|
||||||
IdentityFile ~/.ssh/github-snoweuph
|
IdentityFile ~/.ssh/github-snoweuph
|
||||||
|
|
||||||
Host portainer.admin.euph.site
|
|
||||||
User root
|
|
||||||
Port 69
|
|
||||||
IdentityFile ~/.ssh/admin-yubikey-primary
|
|
||||||
IdentityFile ~/.ssh/admin-yubikey-secondary
|
|
||||||
IdentitiesOnly yes
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
command -v ra-multiplex &>/dev/null || cargo install ra-multiplex
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Multiplex Rust Analyzer Sessions, for a fast LSP experience
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/zsh -l -c 'exec "$@"' _ ra-multiplex server
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
22
.gitconfig
22
.gitconfig
|
@ -1,30 +1,22 @@
|
||||||
[user]
|
[user]
|
||||||
name = Snoweuph
|
name = Snoweuph
|
||||||
email = snow+git@euph.email
|
email = snow+git@euph.email
|
||||||
signingkey = 99ED4727EFBFF719
|
signingKey = A494330694B208EF
|
||||||
[commit]
|
[commit]
|
||||||
gpgSign = true
|
gpgSign = true
|
||||||
|
|
||||||
[push]
|
[push]
|
||||||
autosetupremote = true
|
autosetupremote = true
|
||||||
|
|
||||||
[help]
|
[help]
|
||||||
autoCorrect = prompt
|
autoCorrect = prompt
|
||||||
|
[merge]
|
||||||
|
tool = meld
|
||||||
|
conflictstyle = zdiff3
|
||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = nvim
|
||||||
pager = delta
|
|
||||||
commentChar = ";"
|
|
||||||
|
|
||||||
[diff]
|
[diff]
|
||||||
colorMoved = default
|
colorMoved = default
|
||||||
|
|
||||||
[fetch]
|
[fetch]
|
||||||
prune = true
|
prune = true
|
||||||
prunetags = true
|
prunetags = true
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
adog ="!git-graph --model=trunk --color=always | LESS='-R' less"
|
adog = log --all --decorate --oneline --graph
|
||||||
fl = push --force-with-lease
|
|
||||||
prune-branches = "!git fetch -p && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs -r git branch -d"
|
|
||||||
show-last-commit = diff HEAD^
|
|
||||||
|
|
11
.gitignore
vendored
11
.gitignore
vendored
|
@ -13,20 +13,11 @@
|
||||||
!.bashrc
|
!.bashrc
|
||||||
!.profile
|
!.profile
|
||||||
|
|
||||||
# Include zsh config
|
|
||||||
!.zshrc
|
|
||||||
|
|
||||||
# Include config
|
# Include config
|
||||||
!.config/
|
!.config/
|
||||||
|
|
||||||
# Include ssh Symlink
|
# Include ssh Symlink
|
||||||
!.ssh
|
!.ssh
|
||||||
|
|
||||||
# Include Gnupg
|
|
||||||
!.gnupg/
|
|
||||||
|
|
||||||
# Include Resource
|
# Include Resource
|
||||||
!Resources/
|
!Resources/
|
||||||
|
|
||||||
# Include local
|
|
||||||
!.local/
|
|
7
.gitmodules
vendored
7
.gitmodules
vendored
|
@ -1,4 +1,3 @@
|
||||||
[submodule "nvim"]
|
[submodule ".config/oh-my-bash"]
|
||||||
path = .config/nvim
|
path = .config/oh-my-bash
|
||||||
url = git@git.euph.dev:Snoweuph/Dotfiles_nvim.git
|
url = https://github.com/ohmybash/oh-my-bash.git
|
||||||
branch = master
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
enable-ssh-support
|
|
|
@ -1,12 +0,0 @@
|
||||||
# List of allowed ssh keys. Only keys present in this file are used
|
|
||||||
# in the SSH protocol. The ssh-add tool may add new entries to this
|
|
||||||
# file to enable them; you may also add them manually. Comment
|
|
||||||
# lines, like this one, as well as empty lines are ignored. Lines do
|
|
||||||
# have a certain length limit but this is not serious limitation as
|
|
||||||
# the format of the entries is fixed and checked by gpg-agent. A
|
|
||||||
# non-comment line starts with optional white spaces, followed by the
|
|
||||||
# keygrip of the key given as 40 hex digits, optionally followed by a
|
|
||||||
# caching TTL in seconds, and another optional field for arbitrary
|
|
||||||
# flags. Prepend the keygrip with an '!' mark to disable it.
|
|
||||||
|
|
||||||
F0DAEE5CEB66D4072981216F672366437DC9D04
|
|
6
.local/.gitignore
vendored
6
.local/.gitignore
vendored
|
@ -1,6 +0,0 @@
|
||||||
# Ignore Everything By Default
|
|
||||||
/*
|
|
||||||
!.gitignore
|
|
||||||
|
|
||||||
# Include Share
|
|
||||||
!share/
|
|
6
.local/share/.gitignore
vendored
6
.local/share/.gitignore
vendored
|
@ -1,6 +0,0 @@
|
||||||
# Ignore Everything By Default
|
|
||||||
/*
|
|
||||||
!.gitignore
|
|
||||||
|
|
||||||
# Include dotfiles
|
|
||||||
!dotfiles/
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cargo install git-graph
|
|
8
.profile
8
.profile
|
@ -1,9 +1,3 @@
|
||||||
# System
|
|
||||||
export PATH="$PATH/$HOME/.local/bin"
|
|
||||||
|
|
||||||
# Volta
|
# Volta
|
||||||
export VOLTA_HOME="$HOME/.local/share/volta"
|
export VOLTA_HOME="$HOME/.volta"
|
||||||
export PATH="$VOLTA_HOME/bin:$PATH"
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
||||||
|
|
||||||
# Jetbrains Toolbox
|
|
||||||
export PATH="$PATH:/home/snoweuph/.local/share/JetBrains/Toolbox/scripts"
|
|
||||||
|
|
107
.zshrc
107
.zshrc
|
@ -1,107 +0,0 @@
|
||||||
# Oh My Posh
|
|
||||||
#########################################################
|
|
||||||
export PATH=$PATH:"$HOME/.local/bin"
|
|
||||||
OMP_EXECUTABLE="${XDG_DATA_HOME:-${HOME}/.local}/bin/oh-my-posh"
|
|
||||||
[ ! -f $OMP_EXECUTABLE ] && curl -s https://ohmyposh.dev/install.sh | bash -s
|
|
||||||
eval "$(oh-my-posh init zsh --config ~/.config/omp.toml)"
|
|
||||||
|
|
||||||
# Zinit
|
|
||||||
#########################################################
|
|
||||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
|
||||||
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
|
||||||
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
|
||||||
source "${ZINIT_HOME}/zinit.zsh"
|
|
||||||
|
|
||||||
# Core Plugins
|
|
||||||
zinit snippet OMZP::command-not-found
|
|
||||||
zinit snippet OMZP::colored-man-pages
|
|
||||||
zinit light zsh-users/zsh-autosuggestions
|
|
||||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
|
||||||
|
|
||||||
autoload -Uz compinit
|
|
||||||
compinit
|
|
||||||
|
|
||||||
# Basic ZSH
|
|
||||||
#########################################################
|
|
||||||
|
|
||||||
# History
|
|
||||||
HISTFILE=~/.histfile
|
|
||||||
HISTSIZE=10000
|
|
||||||
SAVEHIST=1000
|
|
||||||
|
|
||||||
# Disable Bell
|
|
||||||
unsetopt beep
|
|
||||||
|
|
||||||
# Keybinding
|
|
||||||
bindkey '\e[1;5C' forward-word
|
|
||||||
bindkey '\e[1;5D' backward-word
|
|
||||||
WORDCHARS="_-" # Define These Characters as Part of "Words"
|
|
||||||
|
|
||||||
# Application Envs
|
|
||||||
#########################################################
|
|
||||||
|
|
||||||
# GPG
|
|
||||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
||||||
fi
|
|
||||||
export GPG_TTY=$(tty)
|
|
||||||
gpg-connect-agent updatestartuptty /bye >/dev/null
|
|
||||||
|
|
||||||
# Git
|
|
||||||
zinit snippet OMZP::git
|
|
||||||
|
|
||||||
# Containerization
|
|
||||||
zinit snippet OMZP::docker-compose
|
|
||||||
zinit snippet OMZP::podman
|
|
||||||
zinit snippet OMZP::toolbox
|
|
||||||
|
|
||||||
# NPM
|
|
||||||
export npm_config_cache="$HOME/.cache/npm"
|
|
||||||
export npm_config_prefix="$HOME/.local/share/npm"
|
|
||||||
export npm_config_userconfig="$HOME/.config/npmrc"
|
|
||||||
export npm_config_loglevel="verbose"
|
|
||||||
export npm_config_log="$HOME/.local/share/npm/logs"
|
|
||||||
|
|
||||||
# Volta
|
|
||||||
export VOLTA_HOME="$HOME/.local/share/volta"
|
|
||||||
[ ! -d $VOLTA_HOME ] && curl https://get.volta.sh | bash -s -- --skip-setup && volta install node@lts
|
|
||||||
|
|
||||||
# Go
|
|
||||||
export GOPATH=~/.local/share/go
|
|
||||||
export GOBIN=$GOPATH/bin
|
|
||||||
|
|
||||||
# Rust
|
|
||||||
export CARGO_HOME=$HOME/.local/share/cargo
|
|
||||||
export RUSTUP_HOME=$HOME/.local/share/rustup
|
|
||||||
zinit snippet OMZP::rust
|
|
||||||
|
|
||||||
# Php
|
|
||||||
export COMPOSER_HOME=$HOME/.local/share/composer
|
|
||||||
zinit snippet OMZP::composer
|
|
||||||
zinit snippet OMZP::symfony6
|
|
||||||
|
|
||||||
# ROCM
|
|
||||||
export HSA_OVERRIDE_GFX_VERSION=10.3.0 # RX 6650 XT
|
|
||||||
|
|
||||||
# Just
|
|
||||||
export JUST_UNSTABLE=1
|
|
||||||
|
|
||||||
# PATH
|
|
||||||
export PATH=$PATH:$VOLTA_HOME/bin:$GOBIN:$CARGO_HOME/bin:$COMPOSER_HOME/vendor/bin
|
|
||||||
|
|
||||||
# Install Dependencies
|
|
||||||
command -v go &>/dev/null || sudo dnf install go
|
|
||||||
[ ! -d $RUSTUP_HOME ] && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y
|
|
||||||
command -v composer &>/dev/null || sudo dnf install composer
|
|
||||||
|
|
||||||
|
|
||||||
# Install Scripts
|
|
||||||
$HOME/.config/install.sh
|
|
||||||
|
|
||||||
# Aliases
|
|
||||||
#########################################################
|
|
||||||
alias edit-nvim-conf="nvim ~/.config/nvim"
|
|
||||||
alias edit-zsh-conf="nvim ~/.zshrc"
|
|
||||||
alias hist="eval \$(cat $HISTFILE | fzf)"
|
|
||||||
alias nano="nvim"
|
|
||||||
alias neofetch="fastfetch"
|
|
32
Readme.md
32
Readme.md
|
@ -1,32 +0,0 @@
|
||||||
# Dotfiles
|
|
||||||
|
|
||||||
## Submodules
|
|
||||||
|
|
||||||
- [Dotfiles/Template](https://git.euph.dev/Snoweuph/Dotfiles_template)
|
|
||||||
- [Dotfiles/nvim](https://git.euph.dev/Snoweuph/Dotfiles_nvim)
|
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
### Install Dependencies
|
|
||||||
|
|
||||||
> [NOTE]
|
|
||||||
> Parts of the Dotfiles automatic Dependency resolution relies on **dnf** the Fedora package Manager.
|
|
||||||
> This is why only **dnf** is listed here.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo dnf install -y curl wget tar unzip gzip git make just fzf
|
|
||||||
```
|
|
||||||
|
|
||||||
### Install
|
|
||||||
|
|
||||||
> [CAUTION]
|
|
||||||
> This is a **destructive installation** and will **overwrite** existing conflicting files.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cd ~ && \
|
|
||||||
git init -b neo && \
|
|
||||||
git remote add origin https://git.euph.dev/Snoweuph/Dotfiles.git && \
|
|
||||||
git fetch --all && \
|
|
||||||
git reset --hard origin/neo && \
|
|
||||||
git submodule update --init --recursive
|
|
||||||
```
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Resources/JetBrainsMonoNerdFont-Regular.ttf
Normal file
BIN
Resources/JetBrainsMonoNerdFont-Regular.ttf
Normal file
Binary file not shown.
Loading…
Reference in a new issue