diff --git a/.zshrc b/.zshrc
deleted file mode 100755
index a9ba762..0000000
--- a/.zshrc
+++ /dev/null
@@ -1,52 +0,0 @@
-ZSH="/usr/share/oh-my-zsh/"
-export ZSH="/usr/share/oh-my-zsh/"
-ZSH_THEME="keyitdev"
-plugins=(git)
-
-ZSH_CACHE_DIR="$HOME/.cache/oh-my-zsh"
-if [[ ! -d "$ZSH_CACHE_DIR" ]]; then
- mkdir "$ZSH_CACHE_DIR"
-fi
-
-source "$ZSH"/oh-my-zsh.sh
-
-alias yeet="yay -Rn"
-alias yeeet="yay -Rns"
-alias yeet_useless="yay -Rns $(yay -Qtdq)"
-
-# git
-alias g="git"
-alias gad="git add --all"
-alias gcm="git commit -m"
-alias gcms="git commit -S -m"
-alias gph="git push"
-alias gpl="git pull"
-alias gcl="git clone"
-alias gin="git init"
-
-alias gst="git status"
-alias glg="git log -n 5"
-alias glgr="git reflog"
-alias gdf="git diff"
-
-alias gbr="git branch"
-alias gsw="git switch"
-alias gch="git checkout"
-alias gra="git remote add origin git@github.com:"
-alias grs="git remote set-url origin git@github.com:"
-
-# other
-alias nv="nvim"
-alias la="ls -alF"
-alias h="history|grep"
-alias c="clear" # I know about ctrl l etc.
-alias logout="killall -KILL -u $USER"
-alias files="nemo"
-alias files.="nemo ."
-alias help="cat ~/.zshrc | less"
-
-# cd
-alias ..="cd .."
-alias ....="cd ../.."
-alias ......="cd ../../.."
-alias ........="cd ../../../.."
diff --git a/README.md b/README.md
old mode 100755
new mode 100644
index 9b08df3..85e6ff1
--- a/README.md
+++ b/README.md
@@ -1,266 +1 @@
-# Keyitdev Dotfiles
-
-## [Watch on Youtube](https://youtu.be/tSreyGcCMB4)
-
-### [Showcase](#showcase) · [Manual installation](#manual-installation) · [Detailed info](#detailed-information) · [Troubleshooting](#troubleshooting) · [Contributions](#contributions)
-
-The **Arch Linux** & **i3wm** dotfiles!
-
-This is the third version of my dotfiles, as I gain more experience I am able to create more profesional dotfiles.
-
-**However, if you want to check older version see [v2 branch](https://github.com/Keyitdev/dotfiles/tree/v2).**
-
-## Information
-
-
-
-- **OS:** [Arch Linux](https://archlinux.org)
-- **WM:** [i3-gaps](https://github.com/Airblader/i3)
-- **Terminal:** [alacritty](https://github.com/alacritty/alacritty)
-- **Bar:** [polybar](https://github.com/polybar/polybar)
-- **Shell:** [zsh](https://www.zsh.org/)
-- **Compositor:** [picom](https://github.com/yshui/picom)
-- **Application Launcher:** [rofi](https://github.com/davatorium/rofi)
-- **Notification Deamon:** [dunst](https://github.com/dunst-project/dunst)
-
-## Automatic installation
-
-```sh
-git clone -b v3 --depth 1 https://www.github.com/keyitdev/dotfiles.git
-cd dotfiles
-chmod +x install-on-arch.sh
-./install-on-arch.sh
-```
-> Warning: Remember to always read the scripts you run from the internet first.
-
-> Note: Last time I tested the installation script on 31 July 2023, Everything worked fine.
-
-## Showcase
-
-### neofetch
-
-
-
-### vsc & ncmpcpp & cava
-
-
-
-### rofi & dunst
-
-
-
-
-More screenshots
-
-### nemo & nvim & ranger
-
-
-
-### i3lock-color
-
-
-
-### sddm
-
-
-
-
-
-## Manual Installation
-
-1. Clone this repository.
- ```sh
- git clone -b v3 --depth 1 https://www.github.com/keyitdev/dotfiles.git
- ```
-
-2. Install an AUR helper (for example, `yay` in `"$HOME"/.srcs`).
- ```sh
- git clone https://aur.archlinux.org/yay.git "$HOME"/.srcs/yay
- cd "$HOME"/.srcs/yay/ && makepkg -si
- ```
-
-3. Install dependencies.
- ```sh
- yay -S --needed acpi alsa-utils base-devel curl git pulseaudio pulseaudio-alsa xorg xorg-xinit alacritty btop code dunst feh ffcast firefox i3-gaps i3lock-color i3-resurrect libnotify light mpc mpd ncmpcpp nemo neofetch neovim oh-my-zsh-git pacman-contrib papirus-icon-theme picom polybar ranger rofi scrot slop xclip zathura zathura-pdf-mupdf zsh
- ```
-
-4. Create default directories.
- ```sh
- mkdir -p "$HOME"/.config
- mkdir -p /usr/local/bin
- mkdir -p /usr/share/themes
- mkdir -p "$HOME"/Pictures/wallpapers
- ```
-
-5. Copy configs, scripts, fonts, wallpaper, vsc configs, zsh config.
- ```sh
- cp -r ./config/* "$HOME"/.config
- sudo cp -r ./scripts/* /usr/local/bin
- sudo cp -r ./fonts/* /usr/share/fonts
- cp -r ./wallpapers/* "$HOME"/Pictures/wallpapers
- sudo cp ./keyitdev.zsh-theme /usr/share/oh-my-zsh/custom/themes
- cp ./.zshrc "$HOME"
- ```
-
-6. Make Light executable, set zsh as default shell, update nvim extensions, refresh font cache.
- ```sh
- sudo chmod +s /usr/bin/light
- chsh -s /bin/zsh
- sudo chsh -s /bin/zsh
- nvim +PackerSync
- fc-cache -fv
- ```
-
-7. Install vsc theme.
- ```sh
- code --install-extension zhuangtongfa.Material-theme
- cp ./vsc/settings.json "$HOME"/.config/Code\ -\ OSS/User
- ```
-
-8. Install gtk theme.
- ```sh
- mkdir -p "$HOME"/.config/gtk-4.0
- git clone https://github.com/Fausto-Korpsvart/Rose-Pine-GTK-Theme
- sudo cp -r ./Rose-Pine-GTK-Theme/themes/RosePine-Main-BL /usr/share/themes/RosePine-Main
- sudo cp -r ./Rose-Pine-GTK-Theme/themes/RosePine-Main-BL/gtk-4.0/* "$HOME"/.config/gtk-4.0
- ```
-
-9. Install sddm and sddm flower theme.
- ```sh
- yay -S --needed qt5-graphicaleffects qt5-quickcontrols2 qt5-svg sddm
- sudo git clone https://github.com/keyitdev/sddm-flower-theme.git /usr/share/sddm/themes/sddm-flower-theme
- sudo cp /usr/share/sddm/themes/sddm-flower-theme/Fonts/* /usr/share/fonts/
- echo "[Theme]
- Current=sddm-flower-theme" | sudo tee /etc/sddm.conf
- ```
-
-
-## Detailed information
-
-### Dependencies
-
-**Base:** acpi alsa-utils base-devel curl git pulseaudio pulseaudio-alsa xorg xorg-xinit
-
-**Required:** alacritty btop code dunst feh ffcast firefox i3-gaps i3lock-color i3-resurrect libnotify light mpc mpd ncmpcpp nemo neofetch neovim oh-my-zsh-git pacman-contrib papirus-icon-theme picom polybar ranger rofi scrot slop xclip zathura zathura-pdf-mupdf zsh
-
-**Sddm:** qt5-graphicaleffects qt5-quickcontrols2 qt5-svg sddm
-
-**Emoji fonts::** noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra
-
-### Used programs
-
-- **Music Player:** [mpd](https://github.com/MusicPlayerDaemon/MPD) & [ncmpcpp](https://github.com/ncmpcpp/ncmpcpp)
-- **Editor:** [neovim](https://github.com/neovim/neovim) / [vscode](https://github.com/microsoft/vscode)
-- **Lockscreen:** [i3lock-color](https://github.com/Raymo111/i3lock-color)
-- **Display Manager:** [sddm](https://github.com/sddm/sddm)
-- **File manager:** [ranger](https://github.com/ranger/ranger) / [nemo](https://github.com/linuxmint/nemo)
-- **Pdf reader:** [zathura](https://github.com/pwmt/zathura)
-- **Monitor of Resources:** [btop](https://github.com/aristocratos/btop)
-
-### Used themes
-
-- **Shell Framework:** [Oh-My-Zsh](https://github.com/ohmyzsh/ohmyzsh)
-- **Vscode Theme:** [One dark pro](https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme)
-- **Neovim Theme:** [AstroNvim](https://github.com/kabinspace/AstroVim)
-- **Icons:** [Papirus dark](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme)
-- **GTK Theme:** [Rose Pine](https://github.com/Fausto-Korpsvart/Rose-Pine-GTK-Theme)
-- **Display Manager Theme:** [Sddm-flower-theme](https://github.com/Keyitdev/sddm-flower-theme)
-
-### Fonts
-
-- **Icons:** [Feather](https://github.com/AT-UI/feather-font/blob/master/src/fonts/feather.ttf)
-- **Interface Font:** [Open sans](https://fonts.google.com/specimen/Open+Sans#standard-styles)
-- **Monospace Font:** [Roboto mono](https://fonts.google.com/specimen/Roboto+Mono#standard-styles)
-- **Polybar Font:** [Iosevka nerd font](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Iosevka)
-
-### Keybinds
-
-These are the basic keybinds. Read through the [i3](./config/i3/config) config for more keybinds.
-
-Note: `Win` refers to the `Super/Mod` key.
-
-| Keybind | Function |
-| ---------------------- | ---------------------------------------- |
-| `Win + Enter` | Launch terminal (alacritty) |
-| `Win + Shift + Q` | Close window |
-| `Win + Q` | Stacking layout |
-| `Win + W` | Tabbed layout |
-| `Win + E` | Default layout |
-| `Win + R` | Resize mode |
-| `Win + T` | Restore layout |
-| `Win + Y` | Save layout |
-| `Win + A` | Rofi open windows menu |
-| `Win + S` | Rofi full menu |
-| `Win + D` | Rofi menu |
-| `Win + Z` | Rofi bookmarks |
-| `Win + X` | Rofi powermenu |
-| `Win + C` | Rofi screenshot script |
-| `Win + G` | Gaps settings |
-| `Win + V` | Set vertical orientation |
-| `Win + H` | Set horizontal orientation |
-| `Win + I` | Lock screen |
-| `Win + O` | Show polybar |
-| `Win + P` | Hide polybar |
-| `Win + B` | Move workspace to another monitor |
-| `Win + N` | Dual monitor mode |
-| `Win + M` | Single monitor mode |
-| `Win + arrows (jkl;)` | Resizing, moving windows |
-| `Win + Shift + E` | Exit i3 |
-| `Win + Shift + R` | Restart i3 |
-
-### Colors
-
-| Color | Hex code |PNG | Color | Hex code |PNG|
-| ---------------------- | -------- |- | ---------------------- | -------- |-|
-| background | #1b1b25 | | red | #cb5760 ||
-| background 2 | #282A36 | | green | #999f63 ||
-| background 3 | #16161e | | yellow | #d4a067 ||
-| border | #343746 | | blue | #6c90a8 ||
-| foreground | #dedede | | purple | #776690 ||
-| white | #eeffff | | cyan | #528a9b ||
-| gray | #727480 | | pink | #ffa8c5 ||
-| black | #15121c | | orange | #c87c3e ||
-
-## Troubleshooting
-
-1. Some polybar modules are not working?
-
- - Try changing the variables.
- - Open the polybar configuration `"$HOME"/.config/polybar/config.ini`.
- - Found `; Change it for yourself` line.
- - Follow the commands that are written below the `; Change it for yourself` line.
-
-2. MPD not working?
-
- - Check if any other program is using port 6600 (http://127.0.0.1:6600/).
-
-3. Everything is lagging? Screen is tearing?
-
- - Edit picom config.
- - This can be hard to solve, because if picom does not work, the whole screen may be frozen or even dark. So first try to kill the picom process.
- - (Blindly) click `Win+Enter`.
- - (Blindly) type `killall picom`.
- - (Blindly) press `Enter`.
- - Open picom configuration `"$HOME"/.config/picom/picom.conf`.
- - Change picom backend from `backend = "glx";` to `backend = "xrender";`.
- - Click `Win+Shift+R`.
-
-## Support and Thankies
-
-You can support me simply by dropping a **star** on **[github](https://github.com/Keyitdev/dotfiles/tree/v3)** or giving a **subscription** on **[YouTube](http://www.youtube.com/channel/UCVoGVyAP2sHPQyegwBMJKyQ?sub_confirmation=1)**.
-
-
-
-**Big thanks to:**
-[adi1090x](https://github.com/adi1090x),
-[Totoro](https://github.com/totoro-ghost).
-
-Thanks to all contributors! :D
-
-## Contributions
-
-Feel free to create issue or pull request.
-If you need any help, you can ask questions here on **[discussions](https://github.com/Keyitdev/dotfiles/discussions/categories/q-a)** or contact me on **[discord](https://discord.com/users/908702082578665474)** / **[reddit](https://www.reddit.com/user/Keyitdev)**.
-
-Distributed under the **[GPLv3+](https://www.gnu.org/licenses/gpl-3.0.html) License**.
-Copyright (C) 2022 Keyitdev.
\ No newline at end of file
+# WIP
diff --git a/config/alacritty/alacritty.yml b/config/alacritty/alacritty.yml
deleted file mode 100644
index a1ff425..0000000
--- a/config/alacritty/alacritty.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-window:
- padding:
- x: 8
- y: 8
- opacity: 0.9
-
-font:
- size: 7.5
- normal:
- family: Roboto mono
- # style: medium
-
-colors:
-
- primary:
- background: '#1b1b25'
- foreground: '#dedede'
-
- normal:
- black: '#15121c'
- red: '#cb5760'
- green: '#999f63'
- yellow: '#d4a067'
- blue: '#6c90a8'
- magenta: '#776690'
- cyan: '#528a9b'
- white: '#eeffff'
-
- bright:
- black: '#727480'
- red: '#cb5760'
- green: '#999f63'
- yellow: '#d4a067'
- blue: '#6c90a8'
- magenta: '#776690'
- cyan: '#528a9b'
- white: '#eeffff'
\ No newline at end of file
diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc
deleted file mode 100755
index d3f2e12..0000000
--- a/config/dunst/dunstrc
+++ /dev/null
@@ -1,74 +0,0 @@
-# Documentation: https://dunst-project.org/documentation/
-# Config created by Keyitdev https://www.github.com/keyitdev/dotfiles
-# Copyright (C) 2022 Keyitdev
-
-[global]
- monitor = 0
- follow = mouse
- width = (300,400)
- height = 250
- origin = top-right
- offset = 8x47
- indicate_hidden = yes
- shrink = no
- transparency = 0
- notification_height = 0
- separator_height = 2
- padding = 12
- horizontal_padding = 12
- frame_width = 2
- frame_color = "#343746"
- separator_color = frame
- sort = yes
- idle_threshold = 120
- font = Roboto mono 12
- line_height = 0
- markup = full
- format = "%s\n%b"
- alignment = left
- vertical_alignment = center
- show_age_threshold = 60
- word_wrap = yes
- ellipsize = middle
- ignore_newline = no
- stack_duplicates = true
- hide_duplicate_count = false
- show_indicators = no
- icon_position = left
- min_icon_size = 50
- max_icon_size = 50
- icon_path = /usr/share/icons/Papirus/16x16/
- sticky_history = no
- history_length = 50
- dmenu = /usr/bin/dmenu -p dunst:
- browser = /usr/bin/sensible-browser
- always_run_script = true
- title = Dunst
- class = Dunst
- startup_notification = false
- verbosity = mesg
- corner_radius = 20
- ignore_dbusclose = false
- force_xinerama = false
- mouse_middle_click = do_action, close_current
- mouse_right_click = close_all
-[experimental]
- per_monitor_dpi = false
-[shortcuts]
- close = ctrl+space
- close_all = ctrl+shift+space
- history = ctrl+grave
- context = ctrl+shift+period
-[urgency_low]
- background = "#1b1b25"
- foreground = "#dedede"
- timeout = 5
-[urgency_normal]
- background = "#1b1b25"
- foreground = "#dedede"
- timeout = 5
-[urgency_critical]
- background = "#1b1b25"
- foreground = "#dedede"
- frame_color = "#f07178"
- timeout = 0
\ No newline at end of file
diff --git a/config/gtk-3.0/settings.ini b/config/gtk-3.0/settings.ini
deleted file mode 100755
index 0c4f3d1..0000000
--- a/config/gtk-3.0/settings.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[Settings]
-gtk-icon-theme-name = Papirus
-gtk-theme-name = RosePine-Main
-gtk-font-name = Open sans 12
-gtk-application-prefer-dark-theme = true
\ No newline at end of file
diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf
deleted file mode 100755
index daeef05..0000000
--- a/config/mpd/mpd.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-# Documentation: https://mpd.readthedocs.io/en/stable/user.html
-# Config created by Keyitdev https://www.github.com/keyitdev/dotfiles
-# Copyright (C) 2022 Keyitdev
-
-music_directory "~/Music"
-
-db_file "~/.config/mpd/database"
-playlist_directory "~/.config/mpd/playlists"
-
-auto_update "yes"
-bind_to_address "127.0.0.1"
-restore_paused "yes"
-max_output_buffer_size "16384"
-
-audio_output {
- type "pulse"
- name "pulse"
-}
\ No newline at end of file
diff --git a/config/ncmpcpp/config b/config/ncmpcpp/config
deleted file mode 100755
index 25f0d42..0000000
--- a/config/ncmpcpp/config
+++ /dev/null
@@ -1,67 +0,0 @@
-; Documentation: https://wiki.archlinux.org/title/ncmpcpp
-; Config created by Aditya Shakya https://github.com/Alexander-Miller
-; Config modified by Keyitdev https://www.github.com/keyitdev/dotfiles
-; Copyright (C) 2022 Keyitdev, Aditya Shakya
-
-### Directories ###
-ncmpcpp_directory = ~/.config/ncmpcpp
-lyrics_directory = ~/.config/ncmpcpp/lyrics
-mpd_music_dir = ~/Music
-mpd_host = "localhost"
-mpd_port = "6600"
-mpd_crossfade_time = "2"
-
-### Behaviour ###
-message_delay_time = 1
-autocenter_mode = "yes"
-centered_cursor = "yes"
-ignore_leading_the = "yes"
-playlist_disable_highlight_delay = 2
-allow_for_physical_item_deletion = "no"
-
-### Visualizer ###
-visualizer_data_source = /tmp/mpd.fifo
-visualizer_output_name = "mpd_visualizer"
-visualizer_in_stereo = "yes"
-visualizer_look = ●●
-visualizer_type = "ellipse"
-
-### Appearance ###
-playlist_display_mode = "columns"
-browser_display_mode = "columns"
-colors_enabled = "yes"
-
-#user_interface = classic
-user_interface = alternative
-volume_color = "white"
-
-### Window ###
-song_window_title_format = "{%a - }{%t}|{%f}"
-statusbar_visibility = "no"
-header_visibility = "no"
-titles_visibility = "no"
-
-### Progress bar ###
-progressbar_look = "▂▂▂"
-progressbar_color = "black"
-progressbar_elapsed_color = "red"
-
-### Alternative UI ###
-alternative_ui_separator_color = "black"
-alternative_header_first_line_format = $b$5$/b $b$8{%t}|{%f}$/b $/b
-alternative_header_second_line_format = {$b{$2 %a$9}{ - $7 %b$9}}
-
-### Song list ###
-song_status_format = "$7%t"
-song_list_format = "$(blue){%a}$(end) $(red){%t}$(end)$(red)({%l})$(end)
-song_library_format = {{%a - %t} (%b)}|{%f}
-song_columns_list_format = "(49)[white]{tr}$C(5f)[red]{l}(50)[blue]{a}"
-
-### Colors ###
-main_window_color = "white"
-current_item_prefix = >>
-current_item_suffix = $(end)
-current_item_inactive_column_prefix = red
-current_item_inactive_column_suffix = red
-color1 = "white"
-color2 = "red"
\ No newline at end of file
diff --git a/config/neofetch/config.conf b/config/neofetch/config.conf
deleted file mode 100755
index e74bc7e..0000000
--- a/config/neofetch/config.conf
+++ /dev/null
@@ -1,865 +0,0 @@
-# See this wiki page for more info:
-# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
-
-print_info() {
- info title
- info underline
-
- info "OS" distro
- #info "Host" model
- info "Kernel" kernel
- info "Uptime" uptime
- info "Packages" packages
- info "Shell" shell
- info "Resolution" resolution
- info "DE" de
- info "WM" wm
- info "WM Theme" wm_theme
- info "Theme" theme
- info "Icons" icons
- info "Terminal" term
- info "Terminal Font" term_font
- #info "CPU" cpu
- #info "GPU" gpu
- info "Memory" memory
-
- # info "GPU Driver" gpu_driver # Linux/macOS only
- # info "CPU Usage" cpu_usage
- # info "Disk" disk
- #info "Battery" battery
- # info "Font" font
- # info "Song" song
- # [[ "$player" ]] && prin "Music Player" "$player"
- # info "Local IP" local_ip
- # info "Public IP" public_ip
- # info "Users" users
- # info "Locale" locale # This only works on glibc systems.
-
- info cols
-}
-
-# Title
-
-
-# Hide/Show Fully qualified domain name.
-#
-# Default: 'off'
-# Values: 'on', 'off'
-# Flag: --title_fqdn
-title_fqdn="off"
-
-
-# Kernel
-
-
-# Shorten the output of the kernel function.
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --kernel_shorthand
-# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
-#
-# Example:
-# on: '4.8.9-1-ARCH'
-# off: 'Linux 4.8.9-1-ARCH'
-kernel_shorthand="on"
-
-
-# Distro
-
-
-# Shorten the output of the distro function
-#
-# Default: 'off'
-# Values: 'on', 'tiny', 'off'
-# Flag: --distro_shorthand
-# Supports: Everything except Windows and Haiku
-distro_shorthand="off"
-
-# Show/Hide OS Architecture.
-# Show 'x86_64', 'x86' and etc in 'Distro:' output.
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --os_arch
-#
-# Example:
-# on: 'Arch Linux x86_64'
-# off: 'Arch Linux'
-os_arch="on"
-
-
-# Uptime
-
-
-# Shorten the output of the uptime function
-#
-# Default: 'on'
-# Values: 'on', 'tiny', 'off'
-# Flag: --uptime_shorthand
-#
-# Example:
-# on: '2 days, 10 hours, 3 mins'
-# tiny: '2d 10h 3m'
-# off: '2 days, 10 hours, 3 minutes'
-uptime_shorthand="on"
-
-
-# Memory
-
-
-# Show memory pecentage in output.
-#
-# Default: 'off'
-# Values: 'on', 'off'
-# Flag: --memory_percent
-#
-# Example:
-# on: '1801MiB / 7881MiB (22%)'
-# off: '1801MiB / 7881MiB'
-memory_percent="off"
-
-# Change memory output unit.
-#
-# Default: 'mib'
-# Values: 'kib', 'mib', 'gib'
-# Flag: --memory_unit
-#
-# Example:
-# kib '1020928KiB / 7117824KiB'
-# mib '1042MiB / 6951MiB'
-# gib: ' 0.98GiB / 6.79GiB'
-memory_unit="mib"
-
-
-# Packages
-
-
-# Show/Hide Package Manager names.
-#
-# Default: 'tiny'
-# Values: 'on', 'tiny' 'off'
-# Flag: --package_managers
-#
-# Example:
-# on: '998 (pacman), 8 (flatpak), 4 (snap)'
-# tiny: '908 (pacman, flatpak, snap)'
-# off: '908'
-package_managers="on"
-
-
-# Shell
-
-
-# Show the path to $SHELL
-#
-# Default: 'off'
-# Values: 'on', 'off'
-# Flag: --shell_path
-#
-# Example:
-# on: '/bin/bash'
-# off: 'bash'
-shell_path="off"
-
-# Show $SHELL version
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --shell_version
-#
-# Example:
-# on: 'bash 4.4.5'
-# off: 'bash'
-shell_version="on"
-
-
-# CPU
-
-
-# CPU speed type
-#
-# Default: 'bios_limit'
-# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
-# Flag: --speed_type
-# Supports: Linux with 'cpufreq'
-# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
-speed_type="bios_limit"
-
-# CPU speed shorthand
-#
-# Default: 'off'
-# Values: 'on', 'off'.
-# Flag: --speed_shorthand
-# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
-#
-# Example:
-# on: 'i7-6500U (4) @ 3.1GHz'
-# off: 'i7-6500U (4) @ 3.100GHz'
-speed_shorthand="off"
-
-# Enable/Disable CPU brand in output.
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --cpu_brand
-#
-# Example:
-# on: 'Intel i7-6500U'
-# off: 'i7-6500U (4)'
-cpu_brand="on"
-
-# CPU Speed
-# Hide/Show CPU speed.
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --cpu_speed
-#
-# Example:
-# on: 'Intel i7-6500U (4) @ 3.1GHz'
-# off: 'Intel i7-6500U (4)'
-cpu_speed="on"
-
-# CPU Cores
-# Display CPU cores in output
-#
-# Default: 'logical'
-# Values: 'logical', 'physical', 'off'
-# Flag: --cpu_cores
-# Support: 'physical' doesn't work on BSD.
-#
-# Example:
-# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
-# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
-# off: 'Intel i7-6500U @ 3.1GHz'
-cpu_cores="logical"
-
-# CPU Temperature
-# Hide/Show CPU temperature.
-# Note the temperature is added to the regular CPU function.
-#
-# Default: 'off'
-# Values: 'C', 'F', 'off'
-# Flag: --cpu_temp
-# Supports: Linux, BSD
-# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
-# coretemp kernel module. This only supports newer Intel processors.
-#
-# Example:
-# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
-# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
-# off: 'Intel i7-6500U (4) @ 3.1GHz'
-cpu_temp="off"
-
-
-# GPU
-
-
-# Enable/Disable GPU Brand
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --gpu_brand
-#
-# Example:
-# on: 'AMD HD 7950'
-# off: 'HD 7950'
-gpu_brand="on"
-
-# Which GPU to display
-#
-# Default: 'all'
-# Values: 'all', 'dedicated', 'integrated'
-# Flag: --gpu_type
-# Supports: Linux
-#
-# Example:
-# all:
-# GPU1: AMD HD 7950
-# GPU2: Intel Integrated Graphics
-#
-# dedicated:
-# GPU1: AMD HD 7950
-#
-# integrated:
-# GPU1: Intel Integrated Graphics
-gpu_type="all"
-
-
-# Resolution
-
-
-# Display refresh rate next to each monitor
-# Default: 'off'
-# Values: 'on', 'off'
-# Flag: --refresh_rate
-# Supports: Doesn't work on Windows.
-#
-# Example:
-# on: '1920x1080 @ 60Hz'
-# off: '1920x1080'
-refresh_rate="off"
-
-
-# Gtk Theme / Icons / Font
-
-
-# Shorten output of GTK Theme / Icons / Font
-#
-# Default: 'off'
-# Values: 'on', 'off'
-# Flag: --gtk_shorthand
-#
-# Example:
-# on: 'Numix, Adwaita'
-# off: 'Numix [GTK2], Adwaita [GTK3]'
-gtk_shorthand="off"
-
-
-# Enable/Disable gtk2 Theme / Icons / Font
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --gtk2
-#
-# Example:
-# on: 'Numix [GTK2], Adwaita [GTK3]'
-# off: 'Adwaita [GTK3]'
-gtk2="on"
-
-# Enable/Disable gtk3 Theme / Icons / Font
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --gtk3
-#
-# Example:
-# on: 'Numix [GTK2], Adwaita [GTK3]'
-# off: 'Numix [GTK2]'
-gtk3="on"
-
-
-# IP Address
-
-
-# Website to ping for the public IP
-#
-# Default: 'http://ident.me'
-# Values: 'url'
-# Flag: --ip_host
-public_ip_host="http://ident.me"
-
-# Public IP timeout.
-#
-# Default: '2'
-# Values: 'int'
-# Flag: --ip_timeout
-public_ip_timeout=2
-
-
-# Desktop Environment
-
-
-# Show Desktop Environment version
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --de_version
-de_version="on"
-
-
-# Disk
-
-
-# Which disks to display.
-# The values can be any /dev/sdXX, mount point or directory.
-# NOTE: By default we only show the disk info for '/'.
-#
-# Default: '/'
-# Values: '/', '/dev/sdXX', '/path/to/drive'.
-# Flag: --disk_show
-#
-# Example:
-# disk_show=('/' '/dev/sdb1'):
-# 'Disk (/): 74G / 118G (66%)'
-# 'Disk (/mnt/Videos): 823G / 893G (93%)'
-#
-# disk_show=('/'):
-# 'Disk (/): 74G / 118G (66%)'
-#
-disk_show=('/')
-
-# Disk subtitle.
-# What to append to the Disk subtitle.
-#
-# Default: 'mount'
-# Values: 'mount', 'name', 'dir', 'none'
-# Flag: --disk_subtitle
-#
-# Example:
-# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
-# 'Disk (/dev/sdb2): 74G / 118G (66%)'
-#
-# mount: 'Disk (/): 74G / 118G (66%)'
-# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
-# 'Disk (/mnt/Videos): 74G / 118G (66%)'
-#
-# dir: 'Disk (/): 74G / 118G (66%)'
-# 'Disk (Local Disk): 74G / 118G (66%)'
-# 'Disk (Videos): 74G / 118G (66%)'
-#
-# none: 'Disk: 74G / 118G (66%)'
-# 'Disk: 74G / 118G (66%)'
-# 'Disk: 74G / 118G (66%)'
-disk_subtitle="mount"
-
-# Disk percent.
-# Show/Hide disk percent.
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --disk_percent
-#
-# Example:
-# on: 'Disk (/): 74G / 118G (66%)'
-# off: 'Disk (/): 74G / 118G'
-disk_percent="on"
-
-
-# Song
-
-
-# Manually specify a music player.
-#
-# Default: 'auto'
-# Values: 'auto', 'player-name'
-# Flag: --music_player
-#
-# Available values for 'player-name':
-#
-# amarok
-# audacious
-# banshee
-# bluemindo
-# clementine
-# cmus
-# deadbeef
-# deepin-music
-# dragon
-# elisa
-# exaile
-# gnome-music
-# gmusicbrowser
-# gogglesmm
-# guayadeque
-# io.elementary.music
-# iTunes
-# juk
-# lollypop
-# mocp
-# mopidy
-# mpd
-# muine
-# netease-cloud-music
-# olivia
-# playerctl
-# pogo
-# pragha
-# qmmp
-# quodlibet
-# rhythmbox
-# sayonara
-# smplayer
-# spotify
-# strawberry
-# tauonmb
-# tomahawk
-# vlc
-# xmms2d
-# xnoise
-# yarock
-music_player="auto"
-
-# Format to display song information.
-#
-# Default: '%artist% - %album% - %title%'
-# Values: '%artist%', '%album%', '%title%'
-# Flag: --song_format
-#
-# Example:
-# default: 'Song: Jet - Get Born - Sgt Major'
-song_format="%artist% - %album% - %title%"
-
-# Print the Artist, Album and Title on separate lines
-#
-# Default: 'off'
-# Values: 'on', 'off'
-# Flag: --song_shorthand
-#
-# Example:
-# on: 'Artist: The Fratellis'
-# 'Album: Costello Music'
-# 'Song: Chelsea Dagger'
-#
-# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
-song_shorthand="off"
-
-# 'mpc' arguments (specify a host, password etc).
-#
-# Default: ''
-# Example: mpc_args=(-h HOST -P PASSWORD)
-mpc_args=()
-
-
-# Text Colors
-
-
-# Text Colors
-#
-# Default: 'distro'
-# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
-# Flag: --colors
-#
-# Each number represents a different part of the text in
-# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
-#
-# Example:
-# colors=(distro) - Text is colored based on Distro colors.
-# colors=(4 6 1 8 8 6) - Text is colored in the order above.
-colors=(distro)
-
-
-# Text Options
-
-
-# Toggle bold text
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --bold
-bold="on"
-
-# Enable/Disable Underline
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --underline
-underline_enabled="on"
-
-# Underline character
-#
-# Default: '-'
-# Values: 'string'
-# Flag: --underline_char
-underline_char="-"
-
-
-# Info Separator
-# Replace the default separator with the specified string.
-#
-# Default: ':'
-# Flag: --separator
-#
-# Example:
-# separator="->": 'Shell-> bash'
-# separator=" =": 'WM = dwm'
-separator=":"
-
-
-# Color Blocks
-
-
-# Color block range
-# The range of colors to print.
-#
-# Default: '0', '15'
-# Values: 'num'
-# Flag: --block_range
-#
-# Example:
-#
-# Display colors 0-7 in the blocks. (8 colors)
-# neofetch --block_range 0 7
-#
-# Display colors 0-15 in the blocks. (16 colors)
-# neofetch --block_range 0 15
-block_range=(0 15)
-
-# Toggle color blocks
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --color_blocks
-color_blocks="on"
-
-# Color block width in spaces
-#
-# Default: '3'
-# Values: 'num'
-# Flag: --block_width
-block_width=3
-
-# Color block height in lines
-#
-# Default: '1'
-# Values: 'num'
-# Flag: --block_height
-block_height=1
-
-# Color Alignment
-#
-# Default: 'auto'
-# Values: 'auto', 'num'
-# Flag: --col_offset
-#
-# Number specifies how far from the left side of the terminal (in spaces) to
-# begin printing the columns, in case you want to e.g. center them under your
-# text.
-# Example:
-# col_offset="auto" - Default behavior of neofetch
-# col_offset=7 - Leave 7 spaces then print the colors
-col_offset="auto"
-
-# Progress Bars
-
-
-# Bar characters
-#
-# Default: '-', '='
-# Values: 'string', 'string'
-# Flag: --bar_char
-#
-# Example:
-# neofetch --bar_char 'elapsed' 'total'
-# neofetch --bar_char '-' '='
-bar_char_elapsed="-"
-bar_char_total="="
-
-# Toggle Bar border
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --bar_border
-bar_border="on"
-
-# Progress bar length in spaces
-# Number of chars long to make the progress bars.
-#
-# Default: '15'
-# Values: 'num'
-# Flag: --bar_length
-bar_length=15
-
-# Progress bar colors
-# When set to distro, uses your distro's logo colors.
-#
-# Default: 'distro', 'distro'
-# Values: 'distro', 'num'
-# Flag: --bar_colors
-#
-# Example:
-# neofetch --bar_colors 3 4
-# neofetch --bar_colors distro 5
-bar_color_elapsed="distro"
-bar_color_total="distro"
-
-
-# Info display
-# Display a bar with the info.
-#
-# Default: 'off'
-# Values: 'bar', 'infobar', 'barinfo', 'off'
-# Flags: --cpu_display
-# --memory_display
-# --battery_display
-# --disk_display
-#
-# Example:
-# bar: '[---=======]'
-# infobar: 'info [---=======]'
-# barinfo: '[---=======] info'
-# off: 'info'
-cpu_display="off"
-memory_display="off"
-battery_display="off"
-disk_display="off"
-
-
-# Backend Settings
-
-
-# Image backend.
-#
-# Default: 'ascii'
-# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
-# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
-# Flag: --backend
-image_backend="ascii"
-
-# Image Source
-#
-# Which image or ascii file to display.
-#
-# Default: 'auto'
-# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
-# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
-# Flag: --source
-#
-# NOTE: 'auto' will pick the best image source for whatever image backend is used.
-# In ascii mode, distro ascii art will be used and in an image mode, your
-# wallpaper will be used.
-image_source="auto"
-
-
-# Ascii Options
-
-
-# Ascii distro
-# Which distro's ascii art to display.
-#
-# Default: 'auto'
-# Values: 'auto', 'distro_name'
-# Flag: --ascii_distro
-# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS",
-# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs,
-# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock,
-# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
-# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
-# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
-# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
-# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary,
-# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
-# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
-# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
-# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
-# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
-# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
-# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
-# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
-# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba,
-# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD,
-# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint,
-# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
-# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
-# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
-# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
-# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
-# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
-# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
-# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin,
-# and IRIX have ascii logos
-# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
-# Use '{distro name}_old' to use the old logos.
-# NOTE: Ubuntu has flavor variants.
-# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
-# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
-# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
-# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
-# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
-# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
-# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
-# postmarketOS, and Void have a smaller logo variant.
-# Use '{distro name}_small' to use the small variants.
-ascii_distro="auto"
-
-# Ascii Colors
-#
-# Default: 'distro'
-# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
-# Flag: --ascii_colors
-#
-# Example:
-# ascii_colors=(distro) - Ascii is colored based on Distro colors.
-# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
-ascii_colors=(distro)
-
-# Bold ascii logo
-# Whether or not to bold the ascii logo.
-#
-# Default: 'on'
-# Values: 'on', 'off'
-# Flag: --ascii_bold
-ascii_bold="on"
-
-
-# Image Options
-
-
-# Image loop
-# Setting this to on will make neofetch redraw the image constantly until
-# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
-#
-# Default: 'off'
-# Values: 'on', 'off'
-# Flag: --loop
-image_loop="off"
-
-# Thumbnail directory
-#
-# Default: '~/.cache/thumbnails/neofetch'
-# Values: 'dir'
-thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
-
-# Crop mode
-#
-# Default: 'normal'
-# Values: 'normal', 'fit', 'fill'
-# Flag: --crop_mode
-#
-# See this wiki page to learn about the fit and fill options.
-# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
-crop_mode="normal"
-
-# Crop offset
-# Note: Only affects 'normal' crop mode.
-#
-# Default: 'center'
-# Values: 'northwest', 'north', 'northeast', 'west', 'center'
-# 'east', 'southwest', 'south', 'southeast'
-# Flag: --crop_offset
-crop_offset="center"
-
-# Image size
-# The image is half the terminal width by default.
-#
-# Default: 'auto'
-# Values: 'auto', '00px', '00%', 'none'
-# Flags: --image_size
-# --size
-image_size="auto"
-
-# Gap between image and text
-#
-# Default: '3'
-# Values: 'num', '-num'
-# Flag: --gap
-gap=3
-
-# Image offsets
-# Only works with the w3m backend.
-#
-# Default: '0'
-# Values: 'px'
-# Flags: --xoffset
-# --yoffset
-yoffset=0
-xoffset=0
-
-# Image background color
-# Only works with the w3m backend.
-#
-# Default: ''
-# Values: 'color', 'blue'
-# Flag: --bg_color
-background_color=
-
-
-# Misc Options
-
-# Stdout mode
-# Turn off all colors and disables image backend (ASCII/Image).
-# Useful for piping into another command.
-# Default: 'off'
-# Values: 'on', 'off'
-stdout="off"
diff --git a/config/nvim/.luacheckrc b/config/nvim/.luacheckrc
deleted file mode 100644
index 00ce173..0000000
--- a/config/nvim/.luacheckrc
+++ /dev/null
@@ -1,20 +0,0 @@
--- Global objects
-globals = {
- "PACKER_BOOTSTRAP",
- "astronvim",
- "astronvim_installation",
- "vim",
- "C",
- "packer_plugins",
-}
-
--- Rerun tests only if their modification time changed
-cache = true
-
--- Don't report unused self arguments of methods
-self = false
-
-ignore = {
- "631", -- max_line_length
- "212/_.*", -- unused argument, for vars with "_" prefix
-}
diff --git a/config/nvim/.stylua.toml b/config/nvim/.stylua.toml
deleted file mode 100644
index df96b7b..0000000
--- a/config/nvim/.stylua.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-column_width = 120
-line_endings = "Unix"
-indent_type = "Spaces"
-indent_width = 2
-quote_style = "AutoPreferDouble"
-no_call_parentheses = true
diff --git a/config/nvim/colors/default_theme.lua b/config/nvim/colors/default_theme.lua
deleted file mode 100644
index c6fe0a2..0000000
--- a/config/nvim/colors/default_theme.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-vim.g.colors_name = "default_theme"
-
-package.loaded["default_theme"] = nil
-package.loaded["default_theme.base"] = nil
-package.loaded["default_theme.treesitter"] = nil
-package.loaded["default_theme.lsp"] = nil
-package.loaded["default_theme.others"] = nil
-
-require "default_theme"
diff --git a/config/nvim/init.lua b/config/nvim/init.lua
deleted file mode 100644
index 3baa628..0000000
--- a/config/nvim/init.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local impatient_ok, impatient = pcall(require, "impatient")
-if impatient_ok then
- impatient.enable_profile()
-end
-
-for _, source in ipairs {
- "core.utils",
- "core.options",
- "core.plugins",
- "core.autocmds",
- "core.mappings",
- "core.ui",
- "configs.which-key-register",
-} do
- local status_ok, fault = pcall(require, source)
- if not status_ok then
- vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault)
- end
-end
-
-astronvim.conditional_func(astronvim.user_plugin_opts("polish", nil, false))
diff --git a/config/nvim/lua/configs/Comment.lua b/config/nvim/lua/configs/Comment.lua
deleted file mode 100644
index 54f23e6..0000000
--- a/config/nvim/lua/configs/Comment.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local status_ok, Comment = pcall(require, "Comment")
-if status_ok then
- local utils = require "Comment.utils"
- Comment.setup(astronvim.user_plugin_opts("plugins.Comment", {
- pre_hook = function(ctx)
- local location = nil
- if ctx.ctype == utils.ctype.block then
- location = require("ts_context_commentstring.utils").get_cursor_location()
- elseif ctx.cmotion == utils.cmotion.v or ctx.cmotion == utils.cmotion.V then
- location = require("ts_context_commentstring.utils").get_visual_start_location()
- end
-
- return require("ts_context_commentstring.internal").calculate_commentstring {
- key = ctx.ctype == utils.ctype.line and "__default" or "__multiline",
- location = location,
- }
- end,
- }))
-end
diff --git a/config/nvim/lua/configs/aerial.lua b/config/nvim/lua/configs/aerial.lua
deleted file mode 100644
index 9421661..0000000
--- a/config/nvim/lua/configs/aerial.lua
+++ /dev/null
@@ -1,52 +0,0 @@
-local status_ok, aerial = pcall(require, "aerial")
-if status_ok then
- aerial.setup(astronvim.user_plugin_opts("plugins.aerial", {
- close_behavior = "global",
- backends = { "lsp", "treesitter", "markdown" },
- min_width = 28,
- show_guides = true,
- filter_kind = false,
- icons = {
- Array = "",
- Boolean = "⊨",
- Class = "",
- Constant = "",
- Constructor = "",
- Key = "",
- Function = "",
- Method = "ƒ",
- Namespace = "",
- Null = "NULL",
- Number = "#",
- Object = "⦿",
- Property = "",
- TypeParameter = "𝙏",
- Variable = "",
- Enum = "ℰ",
- Package = "",
- EnumMember = "",
- File = "",
- Module = "",
- Field = "",
- Interface = "ﰮ",
- String = "𝓐",
- Struct = "𝓢",
- Event = "",
- Operator = "+",
- },
- guides = {
- mid_item = "├ ",
- last_item = "└ ",
- nested_top = "│ ",
- whitespace = " ",
- },
- on_attach = function(bufnr)
- -- Jump forwards/backwards with '{' and '}'
- vim.keymap.set("n", "{", "AerialPrev", { buffer = bufnr, desc = "Jump backwards in Aerial" })
- vim.keymap.set("n", "}", "AerialNext", { buffer = bufnr, desc = "Jump forwards in Aerial" })
- -- Jump up the tree with '[[' or ']]'
- vim.keymap.set("n", "[[", "AerialPrevUp", { buffer = bufnr, desc = "Jump up and backwards in Aerial" })
- vim.keymap.set("n", "]]", "AerialNextUp", { buffer = bufnr, desc = "Jump up and forwards in Aerial" })
- end,
- }))
-end
diff --git a/config/nvim/lua/configs/alpha.lua b/config/nvim/lua/configs/alpha.lua
deleted file mode 100644
index 0116550..0000000
--- a/config/nvim/lua/configs/alpha.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-local status_ok, alpha = pcall(require, "alpha")
-if status_ok then
- local alpha_button = astronvim.alpha_button
- alpha.setup(astronvim.user_plugin_opts("plugins.alpha", {
- layout = {
- { type = "padding", val = vim.fn.max { 2, vim.fn.floor(vim.fn.winheight(0) * 0.2) } },
- {
- type = "text",
- val = astronvim.user_plugin_opts("header", {
- " █████ ███████ ████████ ██████ ██████",
- "██ ██ ██ ██ ██ ██ ██ ██",
- "███████ ███████ ██ ██████ ██ ██",
- "██ ██ ██ ██ ██ ██ ██ ██",
- "██ ██ ███████ ██ ██ ██ ██████",
- " ",
- " ███ ██ ██ ██ ██ ███ ███",
- " ████ ██ ██ ██ ██ ████ ████",
- " ██ ██ ██ ██ ██ ██ ██ ████ ██",
- " ██ ██ ██ ██ ██ ██ ██ ██ ██",
- " ██ ████ ████ ██ ██ ██",
- }, false),
- opts = { position = "center", hl = "DashboardHeader" },
- },
- { type = "padding", val = 5 },
- {
- type = "group",
- val = {
- alpha_button("LDR f f", " Find File "),
- alpha_button("LDR f o", " Recents "),
- alpha_button("LDR f w", " Find Word "),
- alpha_button("LDR f n", " New File "),
- alpha_button("LDR f m", " Bookmarks "),
- alpha_button("LDR S l", " Last Session "),
- },
- opts = { spacing = 1 },
- },
- },
- opts = {},
- }))
-end
diff --git a/config/nvim/lua/configs/autopairs.lua b/config/nvim/lua/configs/autopairs.lua
deleted file mode 100644
index 712b688..0000000
--- a/config/nvim/lua/configs/autopairs.lua
+++ /dev/null
@@ -1,33 +0,0 @@
-local status_ok, npairs = pcall(require, "nvim-autopairs")
-if status_ok then
- npairs.setup(astronvim.user_plugin_opts("plugins.nvim-autopairs", {
- check_ts = true,
- ts_config = {
- lua = { "string", "source" },
- javascript = { "string", "template_string" },
- java = false,
- },
- disable_filetype = { "TelescopePrompt", "spectre_panel" },
- fast_wrap = {
- map = "",
- chars = { "{", "[", "(", '"', "'" },
- pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""),
- offset = 0,
- end_key = "$",
- keys = "qwertyuiopzxcvbnmasdfghjkl",
- check_comma = true,
- highlight = "PmenuSel",
- highlight_grey = "LineNr",
- },
- }))
-
- local rules = astronvim.user_plugin_opts("nvim-autopairs").add_rules
- if vim.tbl_contains({ "function", "table" }, type(rules)) then
- npairs.add_rules(type(rules) == "function" and rules(npairs) or rules)
- end
-
- local cmp_status_ok, cmp = pcall(require, "cmp")
- if cmp_status_ok then
- cmp.event:on("confirm_done", require("nvim-autopairs.completion.cmp").on_confirm_done { map_char = { tex = "" } })
- end
-end
diff --git a/config/nvim/lua/configs/better_escape.lua b/config/nvim/lua/configs/better_escape.lua
deleted file mode 100644
index 72d9a0a..0000000
--- a/config/nvim/lua/configs/better_escape.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local status_ok, better_escape = pcall(require, "better_escape")
-if status_ok then
- better_escape.setup(astronvim.user_plugin_opts "plugins.better_escape")
-end
diff --git a/config/nvim/lua/configs/bufferline.lua b/config/nvim/lua/configs/bufferline.lua
deleted file mode 100644
index 671e00b..0000000
--- a/config/nvim/lua/configs/bufferline.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-local status_ok, bufferline = pcall(require, "bufferline")
-if status_ok then
- bufferline.setup(astronvim.user_plugin_opts("plugins.bufferline", {
- options = {
- offsets = {
- { filetype = "NvimTree", text = "", padding = 1 },
- { filetype = "neo-tree", text = "", padding = 1 },
- { filetype = "Outline", text = "", padding = 1 },
- },
- buffer_close_icon = "",
- modified_icon = "",
- close_icon = "",
- max_name_length = 14,
- max_prefix_length = 13,
- tab_size = 20,
- separator_style = "thin",
- },
- }))
-end
diff --git a/config/nvim/lua/configs/cinnamon.lua b/config/nvim/lua/configs/cinnamon.lua
deleted file mode 100644
index c632d7d..0000000
--- a/config/nvim/lua/configs/cinnamon.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local status_ok, cinnamon = pcall(require, "cinnamon")
-if status_ok then
- cinnamon.setup(astronvim.user_plugin_opts("plugins.cinnamon", {}))
-end
diff --git a/config/nvim/lua/configs/cmp.lua b/config/nvim/lua/configs/cmp.lua
deleted file mode 100644
index e180325..0000000
--- a/config/nvim/lua/configs/cmp.lua
+++ /dev/null
@@ -1,119 +0,0 @@
-local cmp_status_ok, cmp = pcall(require, "cmp")
-local snip_status_ok, luasnip = pcall(require, "luasnip")
-if cmp_status_ok and snip_status_ok then
- local setup = cmp.setup
- local kind_icons = {
- Text = "",
- Method = "",
- Function = "",
- Constructor = "",
- Field = "ﰠ",
- Variable = "",
- Class = "",
- Interface = "",
- Module = "",
- Property = "",
- Unit = "",
- Value = "",
- Enum = "",
- Keyword = "",
- Snippet = "",
- Color = "",
- File = "",
- Reference = "",
- Folder = "",
- EnumMember = "",
- Constant = "",
- Struct = "פּ",
- Event = "",
- Operator = "",
- TypeParameter = "",
- }
-
- local function has_words_before()
- local line, col = unpack(vim.api.nvim_win_get_cursor(0))
- return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match "%s" == nil
- end
-
- setup(astronvim.user_plugin_opts("plugins.cmp", {
- preselect = cmp.PreselectMode.None,
- formatting = {
- fields = { "kind", "abbr", "menu" },
- format = function(_, vim_item)
- vim_item.kind = string.format("%s", kind_icons[vim_item.kind])
- return vim_item
- end,
- },
- snippet = {
- expand = function(args)
- luasnip.lsp_expand(args.body)
- end,
- },
- duplicates = {
- nvim_lsp = 1,
- luasnip = 1,
- cmp_tabnine = 1,
- buffer = 1,
- path = 1,
- },
- confirm_opts = {
- behavior = cmp.ConfirmBehavior.Replace,
- select = false,
- },
- window = {
- documentation = {
- border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
- },
- },
- mapping = {
- [""] = cmp.mapping.select_prev_item(),
- [""] = cmp.mapping.select_next_item(),
- [""] = cmp.mapping.select_prev_item(),
- [""] = cmp.mapping.select_next_item(),
- [""] = cmp.mapping.select_prev_item(),
- [""] = cmp.mapping.select_next_item(),
- [""] = cmp.mapping(cmp.mapping.scroll_docs(-1), { "i", "c" }),
- [""] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }),
- [""] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
- [""] = cmp.config.disable,
- [""] = cmp.mapping {
- i = cmp.mapping.abort(),
- c = cmp.mapping.close(),
- },
- [""] = cmp.mapping.confirm { select = false },
- [""] = cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_next_item()
- elseif luasnip.expandable() then
- luasnip.expand()
- elseif luasnip.expand_or_jumpable() then
- luasnip.expand_or_jump()
- elseif has_words_before() then
- cmp.complete()
- else
- fallback()
- end
- end, {
- "i",
- "s",
- }),
- [""] = cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_prev_item()
- elseif luasnip.jumpable(-1) then
- luasnip.jump(-1)
- else
- fallback()
- end
- end, {
- "i",
- "s",
- }),
- },
- }))
- for setup_opt, setup_table in pairs(astronvim.user_plugin_opts("cmp.setup", {})) do
- for pattern, options in pairs(setup_table) do
- setup[setup_opt](pattern, options)
- end
- end
-end
diff --git a/config/nvim/lua/configs/colorizer.lua b/config/nvim/lua/configs/colorizer.lua
deleted file mode 100644
index 00ef111..0000000
--- a/config/nvim/lua/configs/colorizer.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local status_ok, colorizer = pcall(require, "colorizer")
-if status_ok then
- local colorizer_opts = astronvim.user_plugin_opts("plugins.colorizer", {
- { "*" },
- {
- RGB = true, -- #RGB hex codes
- RRGGBB = true, -- #RRGGBB hex codes
- names = false, -- "Name" codes like Blue
- RRGGBBAA = false, -- #RRGGBBAA hex codes
- rgb_fn = false, -- CSS rgb() and rgba() functions
- hsl_fn = false, -- CSS hsl() and hsla() functions
- css = false, -- Enable all css features: rgb_fn, hsl_fn, names, RGB, RRGGBB
- css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
- mode = "background", -- Set the display mode
- },
- })
- colorizer.setup(colorizer_opts[1], colorizer_opts[2])
-end
diff --git a/config/nvim/lua/configs/feline.lua b/config/nvim/lua/configs/feline.lua
deleted file mode 100644
index 13b6fb6..0000000
--- a/config/nvim/lua/configs/feline.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-local status_ok, feline = pcall(require, "feline")
-if status_ok then
- local C = require "default_theme.colors"
- local hl = require("core.status").hl
- local provider = require("core.status").provider
- local conditional = require("core.status").conditional
- -- stylua: ignore
- feline.setup(astronvim.user_plugin_opts("plugins.feline", {
- disable = { filetypes = { "^NvimTree$", "^neo%-tree$", "^dashboard$", "^Outline$", "^aerial$" } },
- theme = hl.group("StatusLine", { fg = C.fg, bg = C.bg_1 }),
- components = {
- active = {
- {
- { provider = provider.spacer(), hl = hl.mode() },
- { provider = provider.spacer(2) },
- { provider = "git_branch", hl = hl.fg("Conditional", { fg = C.purple_1, style = "bold" }), icon = " " },
- { provider = provider.spacer(3), enabled = conditional.git_available },
- { provider = { name = "file_type", opts = { filetype_icon = true, case = "lowercase" } }, enabled = conditional.has_filetype },
- { provider = provider.spacer(2), enabled = conditional.has_filetype },
- { provider = "git_diff_added", hl = hl.fg("GitSignsAdd", { fg = C.green }), icon = " " },
- { provider = "git_diff_changed", hl = hl.fg("GitSignsChange", { fg = C.orange_1 }), icon = " 柳" },
- { provider = "git_diff_removed", hl = hl.fg("GitSignsDelete", { fg = C.red_1 }), icon = " " },
- { provider = provider.spacer(2), enabled = conditional.git_changed },
- { provider = "diagnostic_errors", hl = hl.fg("DiagnosticError", { fg = C.red_1 }), icon = " " },
- { provider = "diagnostic_warnings", hl = hl.fg("DiagnosticWarn", { fg = C.orange_1 }), icon = " " },
- { provider = "diagnostic_info", hl = hl.fg("DiagnosticInfo", { fg = C.white_2 }), icon = " " },
- { provider = "diagnostic_hints", hl = hl.fg("DiagnosticHint", { fg = C.yellow_1 }), icon = " " },
- },
- {
- { provider = provider.lsp_progress, enabled = conditional.bar_width() },
- { provider = provider.lsp_client_names(true), short_provider = provider.lsp_client_names(), enabled = conditional.bar_width(), icon = " " },
- { provider = provider.spacer(2), enabled = conditional.bar_width() },
- { provider = provider.treesitter_status, enabled = conditional.bar_width(), hl = hl.fg("GitSignsAdd", { fg = C.green }) },
- { provider = provider.spacer(2) },
- { provider = "position" },
- { provider = provider.spacer(2) },
- { provider = "line_percentage" },
- { provider = provider.spacer() },
- { provider = "scroll_bar", hl = hl.fg("TypeDef", { fg = C.yellow }) },
- { provider = provider.spacer(2) },
- { provider = provider.spacer(), hl = hl.mode() },
- },
- },
- },
- }))
-end
diff --git a/config/nvim/lua/configs/gitsigns.lua b/config/nvim/lua/configs/gitsigns.lua
deleted file mode 100644
index 1b4a914..0000000
--- a/config/nvim/lua/configs/gitsigns.lua
+++ /dev/null
@@ -1,12 +0,0 @@
-local status_ok, gitsigns = pcall(require, "gitsigns")
-if status_ok then
- gitsigns.setup(astronvim.user_plugin_opts("plugins.gitsigns", {
- signs = {
- add = { text = "▎" },
- change = { text = "▎" },
- delete = { text = "▎" },
- topdelete = { text = "契" },
- changedelete = { text = "▎" },
- },
- }))
-end
diff --git a/config/nvim/lua/configs/icons.lua b/config/nvim/lua/configs/icons.lua
deleted file mode 100644
index 75da15d..0000000
--- a/config/nvim/lua/configs/icons.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-local status_ok, icons = pcall(require, "nvim-web-devicons")
-if status_ok then
- icons.set_icon(astronvim.user_plugin_opts("plugins.nvim-web-devicons", {
- deb = { icon = "", name = "Deb" },
- lock = { icon = "", name = "Lock" },
- mp3 = { icon = "", name = "Mp3" },
- mp4 = { icon = "", name = "Mp4" },
- out = { icon = "", name = "Out" },
- ["robots.txt"] = { icon = "ﮧ", name = "Robots" },
- ttf = { icon = "", name = "TrueTypeFont" },
- rpm = { icon = "", name = "Rpm" },
- woff = { icon = "", name = "WebOpenFontFormat" },
- woff2 = { icon = "", name = "WebOpenFontFormat2" },
- xz = { icon = "", name = "Xz" },
- zip = { icon = "", name = "Zip" },
- }))
-end
diff --git a/config/nvim/lua/configs/indent-line.lua b/config/nvim/lua/configs/indent-line.lua
deleted file mode 100644
index b59e4a6..0000000
--- a/config/nvim/lua/configs/indent-line.lua
+++ /dev/null
@@ -1,50 +0,0 @@
-local status_ok, indent_blankline = pcall(require, "indent_blankline")
-if status_ok then
- indent_blankline.setup(astronvim.user_plugin_opts("plugins.indent_blankline", {
- buftype_exclude = {
- "nofile",
- "terminal",
- "lsp-installer",
- "lspinfo",
- },
- filetype_exclude = {
- "help",
- "startify",
- "aerial",
- "alpha",
- "dashboard",
- "packer",
- "neogitstatus",
- "NvimTree",
- "neo-tree",
- "Trouble",
- },
- context_patterns = {
- "class",
- "return",
- "function",
- "method",
- "^if",
- "^while",
- "jsx_element",
- "^for",
- "^object",
- "^table",
- "block",
- "arguments",
- "if_statement",
- "else_clause",
- "jsx_element",
- "jsx_self_closing_element",
- "try_statement",
- "catch_clause",
- "import_statement",
- "operation_type",
- },
- show_trailing_blankline_indent = false,
- use_treesitter = true,
- char = "▏",
- context_char = "▏",
- show_current_context = true,
- }))
-end
diff --git a/config/nvim/lua/configs/indent-o-matic.lua b/config/nvim/lua/configs/indent-o-matic.lua
deleted file mode 100644
index f779ff5..0000000
--- a/config/nvim/lua/configs/indent-o-matic.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local status_ok, indent_o_matic = pcall(require, "indent-o-matic")
-if status_ok then
- indent_o_matic.setup(astronvim.user_plugin_opts "plugins.indent-o-matic")
-end
diff --git a/config/nvim/lua/configs/lsp/handlers.lua b/config/nvim/lua/configs/lsp/handlers.lua
deleted file mode 100644
index 8033e0e..0000000
--- a/config/nvim/lua/configs/lsp/handlers.lua
+++ /dev/null
@@ -1,167 +0,0 @@
-astronvim.lsp = {}
-local user_plugin_opts = astronvim.user_plugin_opts
-local conditional_func = astronvim.conditional_func
-
-local function lsp_highlight_document(client)
- if client.resolved_capabilities.document_highlight then
- vim.api.nvim_create_augroup("lsp_document_highlight", { clear = true })
- vim.api.nvim_create_autocmd("CursorHold", {
- group = "lsp_document_highlight",
- pattern = "",
- callback = vim.lsp.buf.document_highlight,
- })
- vim.api.nvim_create_autocmd("CursorMoved", {
- group = "lsp_document_highlight",
- pattern = "",
- callback = vim.lsp.buf.clear_references,
- })
- end
-end
-
-astronvim.lsp.on_attach = function(client, bufnr)
- astronvim.set_mappings(
- user_plugin_opts("lsp.mappings", {
- n = {
- ["K"] = {
- function()
- vim.lsp.buf.hover()
- end,
- desc = "Hover symbol details",
- buffer = bufnr,
- },
- ["la"] = {
- function()
- vim.lsp.buf.code_action()
- end,
- desc = "LSP code action",
- buffer = bufnr,
- },
- ["lf"] = {
- function()
- vim.lsp.buf.formatting_sync()
- end,
- desc = "Format code",
- buffer = bufnr,
- },
- ["lh"] = {
- function()
- vim.lsp.buf.signature_help()
- end,
- desc = "Signature help",
- buffer = bufnr,
- },
- ["lr"] = {
- function()
- vim.lsp.buf.rename()
- end,
- desc = "Rename current symbol",
- buffer = bufnr,
- },
- ["gD"] = {
- function()
- vim.lsp.buf.declaration()
- end,
- desc = "Declaration of current symbol",
- buffer = bufnr,
- },
- ["gI"] = {
- function()
- vim.lsp.buf.implementation()
- end,
- desc = "Implementation of current symbol",
- buffer = bufnr,
- },
- ["gd"] = {
- function()
- vim.lsp.buf.definition()
- end,
- desc = "Show the definition of current symbol",
- buffer = bufnr,
- },
- ["gr"] = {
- function()
- vim.lsp.buf.references()
- end,
- desc = "References of current symbol",
- buffer = bufnr,
- },
- ["ld"] = {
- function()
- vim.diagnostic.open_float()
- end,
- desc = "Hover diagnostics",
- buffer = bufnr,
- },
- ["[d"] = {
- function()
- vim.diagnostic.goto_prev()
- end,
- desc = "Previous diagnostic",
- buffer = bufnr,
- },
- ["]d"] = {
- function()
- vim.diagnostic.goto_next()
- end,
- desc = "Next diagnostic",
- buffer = bufnr,
- },
- ["gl"] = {
- function()
- vim.diagnostic.open_float()
- end,
- desc = "Hover diagnostics",
- buffer = bufnr,
- },
- },
- }),
- { buffer = bufnr }
- )
-
- vim.api.nvim_buf_create_user_command(bufnr, "Format", function()
- vim.lsp.buf.formatting()
- end, { desc = "Format file with LSP" })
-
- local on_attach_override = user_plugin_opts("lsp.on_attach", nil, false)
- local aerial_avail, aerial = pcall(require, "aerial")
- conditional_func(on_attach_override, true, client, bufnr)
- conditional_func(aerial.on_attach, aerial_avail, client, bufnr)
- lsp_highlight_document(client)
-end
-
-astronvim.lsp.capabilities = vim.lsp.protocol.make_client_capabilities()
-astronvim.lsp.capabilities.textDocument.completion.completionItem.documentationFormat = { "markdown", "plaintext" }
-astronvim.lsp.capabilities.textDocument.completion.completionItem.snippetSupport = true
-astronvim.lsp.capabilities.textDocument.completion.completionItem.preselectSupport = true
-astronvim.lsp.capabilities.textDocument.completion.completionItem.insertReplaceSupport = true
-astronvim.lsp.capabilities.textDocument.completion.completionItem.labelDetailsSupport = true
-astronvim.lsp.capabilities.textDocument.completion.completionItem.deprecatedSupport = true
-astronvim.lsp.capabilities.textDocument.completion.completionItem.commitCharactersSupport = true
-astronvim.lsp.capabilities.textDocument.completion.completionItem.tagSupport = { valueSet = { 1 } }
-astronvim.lsp.capabilities.textDocument.completion.completionItem.resolveSupport = {
- properties = { "documentation", "detail", "additionalTextEdits" },
-}
-
-function astronvim.lsp.server_settings(server_name)
- local server = require("lspconfig")[server_name]
- local opts = user_plugin_opts(
- "lsp.server-settings." .. server_name,
- user_plugin_opts("lsp.server-settings." .. server_name, {
- capabilities = vim.tbl_deep_extend("force", astronvim.lsp.capabilities, server.capabilities or {}),
- }, true, "configs")
- )
- local old_on_attach = server.on_attach
- local user_on_attach = opts.on_attach
- opts.on_attach = function(client, bufnr)
- conditional_func(old_on_attach, true, client, bufnr)
- astronvim.lsp.on_attach(client, bufnr)
- conditional_func(user_on_attach, true, client, bufnr)
- end
- return opts
-end
-
-function astronvim.lsp.disable_formatting(client)
- client.resolved_capabilities.document_formatting = false
-end
-
-return astronvim.lsp
diff --git a/config/nvim/lua/configs/lsp/init.lua b/config/nvim/lua/configs/lsp/init.lua
deleted file mode 100644
index 90075d3..0000000
--- a/config/nvim/lua/configs/lsp/init.lua
+++ /dev/null
@@ -1,55 +0,0 @@
-local status_ok, lspconfig = pcall(require, "lspconfig")
-if status_ok then
- require "configs.lsp.handlers"
- local insert = table.insert
- local tbl_contains = vim.tbl_contains
- local sign_define = vim.fn.sign_define
- local user_plugin_opts = astronvim.user_plugin_opts
- local user_registration = user_plugin_opts("lsp.server_registration", nil, false)
-
- local signs = {
- { name = "DiagnosticSignError", text = "" },
- { name = "DiagnosticSignWarn", text = "" },
- { name = "DiagnosticSignHint", text = "" },
- { name = "DiagnosticSignInfo", text = "" },
- }
- for _, sign in ipairs(signs) do
- sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
- end
- vim.diagnostic.config(user_plugin_opts("diagnostics", {
- virtual_text = true,
- signs = { active = signs },
- update_in_insert = true,
- underline = true,
- severity_sort = true,
- float = {
- focusable = false,
- style = "minimal",
- border = "rounded",
- source = "always",
- header = "",
- prefix = "",
- },
- }))
- 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" })
-
- local servers = user_plugin_opts "lsp.servers"
- local skip_setup = user_plugin_opts "lsp.skip_setup"
- local installer_avail, lsp_installer = pcall(require, "nvim-lsp-installer")
- if installer_avail then
- for _, server in ipairs(lsp_installer.get_installed_servers()) do
- insert(servers, server.name)
- end
- end
- for _, server in ipairs(servers) do
- if not tbl_contains(skip_setup, server) then
- local opts = astronvim.lsp.server_settings(server)
- if type(user_registration) == "function" then
- user_registration(server, opts)
- else
- lspconfig[server].setup(opts)
- end
- end
- end
-end
diff --git a/config/nvim/lua/configs/lsp/server-settings/html.lua b/config/nvim/lua/configs/lsp/server-settings/html.lua
deleted file mode 100644
index 1c6b4d5..0000000
--- a/config/nvim/lua/configs/lsp/server-settings/html.lua
+++ /dev/null
@@ -1 +0,0 @@
-return { on_attach = astronvim.lsp.disable_formatting }
diff --git a/config/nvim/lua/configs/lsp/server-settings/jsonls.lua b/config/nvim/lua/configs/lsp/server-settings/jsonls.lua
deleted file mode 100644
index b8d05f4..0000000
--- a/config/nvim/lua/configs/lsp/server-settings/jsonls.lua
+++ /dev/null
@@ -1,17 +0,0 @@
-return {
- on_attach = astronvim.lsp.disable_formatting,
- settings = {
- json = {
- schemas = require("schemastore").json.schemas(),
- },
- },
- setup = {
- commands = {
- Format = {
- function()
- vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
- end,
- },
- },
- },
-}
diff --git a/config/nvim/lua/configs/lsp/server-settings/pyright.lua b/config/nvim/lua/configs/lsp/server-settings/pyright.lua
deleted file mode 100644
index c2a518d..0000000
--- a/config/nvim/lua/configs/lsp/server-settings/pyright.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-return {
- settings = {
- python = {
- analysis = {
- typeCheckingMode = "off",
- },
- },
- },
-}
diff --git a/config/nvim/lua/configs/lsp/server-settings/rust_analyzer.lua b/config/nvim/lua/configs/lsp/server-settings/rust_analyzer.lua
deleted file mode 100644
index f9b89a9..0000000
--- a/config/nvim/lua/configs/lsp/server-settings/rust_analyzer.lua
+++ /dev/null
@@ -1,15 +0,0 @@
-return {
- settings = {
- ["rust-analyzer"] = {
- cargo = {
- loadOutDirsFromCheck = true,
- },
- checkOnSave = {
- command = "clippy",
- },
- experimental = {
- procAttrMacros = true,
- },
- },
- },
-}
diff --git a/config/nvim/lua/configs/lsp/server-settings/sumneko_lua.lua b/config/nvim/lua/configs/lsp/server-settings/sumneko_lua.lua
deleted file mode 100644
index 825a9df..0000000
--- a/config/nvim/lua/configs/lsp/server-settings/sumneko_lua.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-return {
- on_attach = astronvim.lsp.disable_formatting,
- settings = {
- Lua = {
- diagnostics = {
- globals = { "vim" },
- },
- workspace = {
- library = {
- [vim.fn.expand "$VIMRUNTIME/lua"] = true,
- [astronvim.install.home .. "/lua"] = true,
- },
- },
- },
- },
-}
diff --git a/config/nvim/lua/configs/lsp/server-settings/tsserver.lua b/config/nvim/lua/configs/lsp/server-settings/tsserver.lua
deleted file mode 100644
index 1c6b4d5..0000000
--- a/config/nvim/lua/configs/lsp/server-settings/tsserver.lua
+++ /dev/null
@@ -1 +0,0 @@
-return { on_attach = astronvim.lsp.disable_formatting }
diff --git a/config/nvim/lua/configs/luasnip.lua b/config/nvim/lua/configs/luasnip.lua
deleted file mode 100644
index 38a4b60..0000000
--- a/config/nvim/lua/configs/luasnip.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local user_settings = astronvim.user_plugin_opts "luasnip"
-local loader_avail, loader = pcall(require, "luasnip/loaders/from_vscode")
-if loader_avail then
- if user_settings.vscode_snippet_paths ~= nil then
- loader.lazy_load { paths = user_settings.vscode_snippet_paths }
- end
- loader.lazy_load()
-end
-local luasnip_avail, luasnip = pcall(require, "luasnip")
-if luasnip_avail then
- if type(user_settings.filetype_extend) == "table" then
- for filetype, snippets in pairs(user_settings.filetype_extend) do
- luasnip.filetype_extend(filetype, snippets)
- end
- end
-end
diff --git a/config/nvim/lua/configs/neo-tree.lua b/config/nvim/lua/configs/neo-tree.lua
deleted file mode 100644
index 913460e..0000000
--- a/config/nvim/lua/configs/neo-tree.lua
+++ /dev/null
@@ -1,70 +0,0 @@
-local status_ok, neotree = pcall(require, "neo-tree")
-if status_ok then
- neotree.setup(astronvim.user_plugin_opts("plugins.neo-tree", {
- close_if_last_window = true,
- popup_border_style = "rounded",
- enable_diagnostics = false,
- default_component_configs = {
- indent = {
- padding = 0,
- with_expanders = false,
- },
- icon = {
- folder_closed = "",
- folder_open = "",
- folder_empty = "",
- default = "",
- },
- git_status = {
- symbols = {
- added = "",
- deleted = "",
- modified = "",
- renamed = "➜",
- untracked = "★",
- ignored = "◌",
- unstaged = "✗",
- staged = "✓",
- conflict = "",
- },
- },
- },
- window = {
- width = 25,
- mappings = {
- ["o"] = "open",
- },
- },
- filesystem = {
- filtered_items = {
- visible = false,
- hide_dotfiles = true,
- hide_gitignored = false,
- hide_by_name = {
- ".DS_Store",
- "thumbs.db",
- "node_modules",
- "__pycache__",
- },
- },
- follow_current_file = true,
- hijack_netrw_behavior = "open_current",
- use_libuv_file_watcher = true,
- },
- git_status = {
- window = {
- position = "float",
- },
- },
- event_handlers = {
- {
- event = "vim_buffer_enter",
- handler = function(_)
- if vim.bo.filetype == "neo-tree" then
- vim.wo.signcolumn = "auto"
- end
- end,
- },
- },
- }))
-end
diff --git a/config/nvim/lua/configs/notify.lua b/config/nvim/lua/configs/notify.lua
deleted file mode 100644
index afa2aca..0000000
--- a/config/nvim/lua/configs/notify.lua
+++ /dev/null
@@ -1,6 +0,0 @@
-local status_ok, notify = pcall(require, "notify")
-if status_ok then
- notify.setup(astronvim.user_plugin_opts("plugins.notify", { stages = "fade" }))
-
- vim.notify = notify
-end
diff --git a/config/nvim/lua/configs/null-ls.lua b/config/nvim/lua/configs/null-ls.lua
deleted file mode 100644
index 38f19f0..0000000
--- a/config/nvim/lua/configs/null-ls.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local status_ok, null_ls = pcall(require, "null-ls")
-if status_ok then
- null_ls.setup(astronvim.user_plugin_opts "plugins.null-ls")
-end
diff --git a/config/nvim/lua/configs/nvim-lsp-installer.lua b/config/nvim/lua/configs/nvim-lsp-installer.lua
deleted file mode 100644
index bdc48e7..0000000
--- a/config/nvim/lua/configs/nvim-lsp-installer.lua
+++ /dev/null
@@ -1,12 +0,0 @@
-local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer")
-if status_ok then
- lsp_installer.setup(astronvim.user_plugin_opts("plugins.nvim-lsp-installer", {
- ui = {
- icons = {
- server_installed = "✓",
- server_uninstalled = "✗",
- server_pending = "⟳",
- },
- },
- }))
-end
diff --git a/config/nvim/lua/configs/session_manager.lua b/config/nvim/lua/configs/session_manager.lua
deleted file mode 100644
index f45b768..0000000
--- a/config/nvim/lua/configs/session_manager.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local status_ok, session_manager = pcall(require, "session_manager")
-if status_ok then
- session_manager.setup(astronvim.user_plugin_opts("plugins.session_manager", { autosave_last_session = false }))
-end
diff --git a/config/nvim/lua/configs/smart-splits.lua b/config/nvim/lua/configs/smart-splits.lua
deleted file mode 100644
index 2cb4812..0000000
--- a/config/nvim/lua/configs/smart-splits.lua
+++ /dev/null
@@ -1,12 +0,0 @@
-local status_ok, smart_splits = pcall(require, "smart-splits")
-if status_ok then
- smart_splits.setup(astronvim.user_plugin_opts("plugins.smart-splits", {
- ignored_filetypes = {
- "nofile",
- "quickfix",
- "qf",
- "prompt",
- },
- ignored_buftypes = { "nofile" },
- }))
-end
diff --git a/config/nvim/lua/configs/telescope.lua b/config/nvim/lua/configs/telescope.lua
deleted file mode 100644
index 9de40b1..0000000
--- a/config/nvim/lua/configs/telescope.lua
+++ /dev/null
@@ -1,96 +0,0 @@
-local status_ok, telescope = pcall(require, "telescope")
-if status_ok then
- local actions = require "telescope.actions"
-
- astronvim.conditional_func(telescope.load_extension, pcall(require, "notify"), "notify")
- astronvim.conditional_func(telescope.load_extension, pcall(require, "aerial"), "aerial")
-
- telescope.setup(astronvim.user_plugin_opts("plugins.telescope", {
- defaults = {
-
- prompt_prefix = " ",
- selection_caret = "❯ ",
- path_display = { "truncate" },
- selection_strategy = "reset",
- sorting_strategy = "ascending",
- layout_strategy = "horizontal",
- layout_config = {
- horizontal = {
- prompt_position = "top",
- preview_width = 0.55,
- results_width = 0.8,
- },
- vertical = {
- mirror = false,
- },
- width = 0.87,
- height = 0.80,
- preview_cutoff = 120,
- },
-
- mappings = {
- i = {
- [""] = actions.cycle_history_next,
- [""] = actions.cycle_history_prev,
-
- [""] = actions.move_selection_next,
- [""] = actions.move_selection_previous,
-
- [""] = actions.close,
-
- [""] = actions.move_selection_next,
- [""] = actions.move_selection_previous,
-
- [""] = actions.select_default,
- [""] = actions.select_horizontal,
- [""] = actions.select_vertical,
- [""] = actions.select_tab,
-
- [""] = actions.preview_scrolling_up,
- [""] = actions.preview_scrolling_down,
-
- [""] = actions.results_scrolling_up,
- [""] = actions.results_scrolling_down,
-
- [""] = actions.toggle_selection + actions.move_selection_worse,
- [""] = actions.toggle_selection + actions.move_selection_better,
- [""] = actions.send_to_qflist + actions.open_qflist,
- [""] = actions.send_selected_to_qflist + actions.open_qflist,
- [""] = actions.complete_tag,
- },
-
- n = {
- [""] = actions.close,
- [""] = actions.select_default,
- [""] = actions.select_horizontal,
- [""] = actions.select_vertical,
- [""] = actions.select_tab,
-
- [""] = actions.toggle_selection + actions.move_selection_worse,
- [""] = actions.toggle_selection + actions.move_selection_better,
- [""] = actions.send_to_qflist + actions.open_qflist,
- [""] = actions.send_selected_to_qflist + actions.open_qflist,
-
- ["j"] = actions.move_selection_next,
- ["k"] = actions.move_selection_previous,
- ["H"] = actions.move_to_top,
- ["M"] = actions.move_to_middle,
- ["L"] = actions.move_to_bottom,
-
- [""] = actions.move_selection_next,
- [""] = actions.move_selection_previous,
- ["gg"] = actions.move_to_top,
- ["G"] = actions.move_to_bottom,
-
- [""] = actions.preview_scrolling_up,
- [""] = actions.preview_scrolling_down,
-
- [""] = actions.results_scrolling_up,
- [""] = actions.results_scrolling_down,
- },
- },
- },
- pickers = {},
- extensions = {},
- }))
-end
diff --git a/config/nvim/lua/configs/toggleterm.lua b/config/nvim/lua/configs/toggleterm.lua
deleted file mode 100644
index 4c6e351..0000000
--- a/config/nvim/lua/configs/toggleterm.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-local status_ok, toggleterm = pcall(require, "toggleterm")
-if status_ok then
- toggleterm.setup(astronvim.user_plugin_opts("plugins.toggleterm", {
- size = 10,
- open_mapping = [[]],
- shading_factor = 2,
- direction = "float",
- float_opts = {
- border = "curved",
- highlights = {
- border = "Normal",
- background = "Normal",
- },
- },
- }))
-end
diff --git a/config/nvim/lua/configs/treesitter.lua b/config/nvim/lua/configs/treesitter.lua
deleted file mode 100644
index 01d5cea..0000000
--- a/config/nvim/lua/configs/treesitter.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local status_ok, treesitter = pcall(require, "nvim-treesitter.configs")
-if status_ok then
- treesitter.setup(astronvim.user_plugin_opts("plugins.treesitter", {
- ensure_installed = {},
- sync_install = false,
- ignore_install = {},
- highlight = {
- enable = true,
- additional_vim_regex_highlighting = false,
- },
- context_commentstring = {
- enable = true,
- enable_autocmd = false,
- },
- rainbow = {
- enable = true,
- disable = { "html" },
- extended_mode = false,
- max_file_lines = nil,
- },
- autopairs = { enable = true },
- autotag = { enable = true },
- incremental_selection = { enable = true },
- indent = { enable = false },
- }))
-end
diff --git a/config/nvim/lua/configs/which-key-register.lua b/config/nvim/lua/configs/which-key-register.lua
deleted file mode 100644
index 0ea8881..0000000
--- a/config/nvim/lua/configs/which-key-register.lua
+++ /dev/null
@@ -1,61 +0,0 @@
-local status_ok, which_key = pcall(require, "which-key")
-if status_ok then
- local is_available = astronvim.is_available
- local user_plugin_opts = astronvim.user_plugin_opts
- local mappings = {
- n = {
- [""] = {
- f = { name = "File" },
- p = { name = "Packer" },
- l = { name = "LSP" },
- },
- },
- }
-
- local extra_sections = {
- g = "Git",
- s = "Search",
- S = "Session",
- t = "Terminal",
- }
-
- local function init_table(mode, prefix, idx)
- if not mappings[mode][prefix][idx] then
- mappings[mode][prefix][idx] = { name = extra_sections[idx] }
- end
- end
-
- if is_available "neovim-session-manager" then
- init_table("n", "", "S")
- end
-
- if is_available "gitsigns.nvim" then
- init_table("n", "", "g")
- end
-
- if is_available "toggleterm.nvim" then
- init_table("n", "", "g")
- init_table("n", "", "t")
- end
-
- if is_available "telescope.nvim" then
- init_table("n", "", "s")
- init_table("n", "", "g")
- end
-
- mappings = user_plugin_opts("which-key.register_mappings", mappings)
- -- support previous legacy notation, deprecate at some point
- mappings.n[""] = user_plugin_opts("which-key.register_n_leader", mappings.n[""])
- for mode, prefixes in pairs(mappings) do
- for prefix, mapping_table in pairs(prefixes) do
- which_key.register(mapping_table, {
- mode = mode,
- prefix = prefix,
- buffer = nil,
- silent = true,
- noremap = true,
- nowait = true,
- })
- end
- end
-end
diff --git a/config/nvim/lua/configs/which-key.lua b/config/nvim/lua/configs/which-key.lua
deleted file mode 100644
index 617c559..0000000
--- a/config/nvim/lua/configs/which-key.lua
+++ /dev/null
@@ -1,21 +0,0 @@
-local status_ok, which_key = pcall(require, "which-key")
-if status_ok then
- local show = which_key.show
- local show_override = astronvim.user_plugin_opts("which-key.show", nil, false)
- which_key.show = type(show_override) == "function" and show_override(show)
- or function(keys, opts)
- if vim.bo.filetype ~= "TelescopePrompt" then
- show(keys, opts)
- end
- end
- which_key.setup(astronvim.user_plugin_opts("plugins.which-key", {
- plugins = {
- spelling = { enabled = true },
- presets = { operators = false },
- },
- window = {
- border = "rounded",
- padding = { 2, 2, 2, 2 },
- },
- }))
-end
diff --git a/config/nvim/lua/core/autocmds.lua b/config/nvim/lua/core/autocmds.lua
deleted file mode 100644
index dc881c3..0000000
--- a/config/nvim/lua/core/autocmds.lua
+++ /dev/null
@@ -1,104 +0,0 @@
-local is_available = astronvim.is_available
-local cmd = vim.api.nvim_create_autocmd
-local augroup = vim.api.nvim_create_augroup
-local create_command = vim.api.nvim_create_user_command
-
-augroup("highlighturl", { clear = true })
-cmd({ "VimEnter", "FileType", "BufEnter", "WinEnter" }, {
- desc = "URL Highlighting",
- group = "highlighturl",
- pattern = "*",
- callback = function()
- astronvim.set_url_match()
- end,
-})
-
-if is_available "alpha-nvim" then
- augroup("alpha_settings", { clear = true })
- if is_available "bufferline.nvim" then
- cmd("FileType", {
- desc = "Disable tabline for alpha",
- group = "alpha_settings",
- pattern = "alpha",
- callback = function()
- local prev_showtabline = vim.opt.showtabline
- vim.opt.showtabline = 0
- cmd("BufUnload", {
- pattern = "",
- callback = function()
- vim.opt.showtabline = prev_showtabline
- end,
- })
- end,
- })
- end
- cmd("FileType", {
- desc = "Disable statusline for alpha",
- group = "alpha_settings",
- pattern = "alpha",
- callback = function()
- local prev_status = vim.opt.laststatus
- vim.opt.laststatus = 0
- cmd("BufUnload", {
- pattern = "",
- callback = function()
- vim.opt.laststatus = prev_status
- end,
- })
- end,
- })
- cmd("VimEnter", {
- desc = "Start Alpha when vim is opened with no arguments",
- group = "alpha_settings",
- callback = function()
- -- optimized start check from https://github.com/goolord/alpha-nvim
- local alpha_avail, alpha = pcall(require, "alpha")
- if alpha_avail then
- local should_skip = false
- if vim.fn.argc() > 0 or vim.fn.line2byte "$" ~= -1 or not vim.o.modifiable then
- should_skip = true
- else
- for _, arg in pairs(vim.v.argv) do
- if arg == "-b" or arg == "-c" or vim.startswith(arg, "+") or arg == "-S" then
- should_skip = true
- break
- end
- end
- end
- if not should_skip then
- alpha.start(true)
- end
- end
- end,
- })
-end
-
-if is_available "neo-tree.nvim" then
- augroup("neotree_start", { clear = true })
- cmd("BufEnter", {
- desc = "Open Neo-Tree on startup with directory",
- group = "neotree_start",
- callback = function()
- local stats = vim.loop.fs_stat(vim.api.nvim_buf_get_name(0))
- if stats and stats.type == "directory" then
- require("neo-tree.setup.netrw").hijack()
- end
- end,
- })
-end
-
-if is_available "feline.nvim" then
- augroup("feline_setup", { clear = true })
- cmd("ColorScheme", {
- desc = "Reload feline on colorscheme change",
- group = "feline_setup",
- callback = function()
- package.loaded["configs.feline"] = nil
- require "configs.feline"
- end,
- })
-end
-
-create_command("AstroUpdate", astronvim.updater.update, { desc = "Update AstroNvim" })
-create_command("AstroVersion", astronvim.updater.version, { desc = "Check AstroNvim Version" })
-create_command("ToggleHighlightURL", astronvim.toggle_url_match, { desc = "Toggle URL Highlights" })
diff --git a/config/nvim/lua/core/mappings.lua b/config/nvim/lua/core/mappings.lua
deleted file mode 100644
index a52d3eb..0000000
--- a/config/nvim/lua/core/mappings.lua
+++ /dev/null
@@ -1,420 +0,0 @@
-local is_available = astronvim.is_available
-
-local maps = { n = {}, v = {}, t = {}, [""] = {} }
-
-maps[""][""] = ""
-
--- Normal --
--- Standard Operations
-maps.n["w"] = { "w", desc = "Save" }
-maps.n["q"] = { "q", desc = "Quit" }
-maps.n["h"] = { "nohlsearch", desc = "No Highlight" }
-maps.n["u"] = {
- function()
- astronvim.toggle_url_match()
- end,
- desc = "Toggle URL Highlights",
-}
-maps.n["fn"] = { "enew", desc = "New File" }
-maps.n["gx"] = {
- function()
- astronvim.url_opener()
- end,
- desc = "Open the file under cursor with system app",
-}
-maps.n[""] = { "w!", desc = "Force write" }
-maps.n[""] = { "q!", desc = "Force quit" }
-maps.n["Q"] = ""
-
--- Packer
-maps.n["pc"] = { "PackerCompile", desc = "Packer Compile" }
-maps.n["pi"] = { "PackerInstall", desc = "Packer Install" }
-maps.n["ps"] = { "PackerSync", desc = "Packer Sync" }
-maps.n["pS"] = { "PackerStatus", desc = "Packer Status" }
-maps.n["pu"] = { "PackerUpdate", desc = "Packer Update" }
-
--- Alpha
-if is_available "alpha-nvim" then
- maps.n["d"] = { "Alpha", desc = "Alpha Dashboard" }
-end
-
--- Bufdelete
-if is_available "bufdelete.nvim" then
- maps.n["c"] = { "Bdelete", desc = "Close buffer" }
-else
- maps.n["c"] = { "bdelete", desc = "Close buffer" }
-end
-
--- Navigate buffers
-if is_available "bufferline.nvim" then
- maps.n[""] = { "BufferLineCycleNext", desc = "Next buffer tab" }
- maps.n[""] = { "BufferLineCyclePrev", desc = "Previous buffer tab" }
- maps.n[">b"] = { "BufferLineMoveNext", desc = "Move buffer tab right" }
- maps.n["BufferLineMovePrev", desc = "Move buffer tab left" }
-else
- maps.n[""] = { "bnext", desc = "Next buffer" }
- maps.n[""] = { "bprevious", desc = "Previous buffer" }
-end
-
--- Comment
-if is_available "Comment.nvim" then
- maps.n["/"] = {
- function()
- require("Comment.api").toggle_current_linewise()
- end,
- desc = "Comment line",
- }
- maps.v["/"] = {
- "lua require('Comment.api').toggle_linewise_op(vim.fn.visualmode())",
- desc = "Toggle comment line",
- }
-end
-
--- GitSigns
-if is_available "gitsigns.nvim" then
- maps.n["gj"] = {
- function()
- require("gitsigns").next_hunk()
- end,
- desc = "Next git hunk",
- }
- maps.n["gk"] = {
- function()
- require("gitsigns").prev_hunk()
- end,
- desc = "Previous git hunk",
- }
- maps.n["gl"] = {
- function()
- require("gitsigns").blame_line()
- end,
- desc = "View git blame",
- }
- maps.n["gp"] = {
- function()
- require("gitsigns").preview_hunk()
- end,
- desc = "Preview git hunk",
- }
- maps.n["gh"] = {
- function()
- require("gitsigns").reset_hunk()
- end,
- desc = "Reset git hunk",
- }
- maps.n["gr"] = {
- function()
- require("gitsigns").reset_buffer()
- end,
- desc = "Reset git buffer",
- }
- maps.n["gs"] = {
- function()
- require("gitsigns").stage_hunk()
- end,
- desc = "Stage git hunk",
- }
- maps.n["gu"] = {
- function()
- require("gitsigns").undo_stage_hunk()
- end,
- desc = "Unstage git hunk",
- }
- maps.n["gd"] = {
- function()
- require("gitsigns").diffthis()
- end,
- desc = "View git diff",
- }
-end
-
--- NeoTree
-if is_available "neo-tree.nvim" then
- maps.n["e"] = { "Neotree toggle", desc = "Toggle Explorer" }
- maps.n["o"] = { "Neotree focus", desc = "Focus Explorer" }
-end
-
--- Session Manager
-if is_available "neovim-session-manager" then
- maps.n["Sl"] = { "SessionManager! load_last_session", desc = "Load last session" }
- maps.n["Ss"] = { "SessionManager! save_current_session", desc = "Save this session" }
- maps.n["Sd"] = { "SessionManager! delete_session", desc = "Delete session" }
- maps.n["Sf"] = { "SessionManager! load_session", desc = "Search sessions" }
- maps.n["S."] = {
- "SessionManager! load_current_dir_session",
- desc = "Load current directory session",
- }
-end
-
--- LSP Installer
-if is_available "nvim-lsp-installer" then
- maps.n["li"] = { "LspInfo", desc = "LSP information" }
- maps.n["lI"] = { "LspInstallInfo", desc = "LSP installer" }
-end
-
--- Smart Splits
-if is_available "smart-splits.nvim" then
- -- Better window navigation
- maps.n[""] = {
- function()
- require("smart-splits").move_cursor_left()
- end,
- desc = "Move to left split",
- }
- maps.n[""] = {
- function()
- require("smart-splits").move_cursor_down()
- end,
- desc = "Move to below split",
- }
- maps.n[""] = {
- function()
- require("smart-splits").move_cursor_up()
- end,
- desc = "Move to above split",
- }
- maps.n[""] = {
- function()
- require("smart-splits").move_cursor_right()
- end,
- desc = "Move to right split",
- }
-
- -- Resize with arrows
- maps.n[""] = {
- function()
- require("smart-splits").resize_up()
- end,
- desc = "Resize split up",
- }
- maps.n[""] = {
- function()
- require("smart-splits").resize_down()
- end,
- desc = "Resize split down",
- }
- maps.n[""] = {
- function()
- require("smart-splits").resize_left()
- end,
- desc = "Resize split left",
- }
- maps.n[""] = {
- function()
- require("smart-splits").resize_right()
- end,
- desc = "Resize split right",
- }
-else
- maps.n[""] = { "h", desc = "Move to left split" }
- maps.n[""] = { "j", desc = "Move to below split" }
- maps.n[""] = { "k", desc = "Move to above split" }
- maps.n[""] = { "l", desc = "Move to right split" }
- maps.n[""] = { "resize -2", desc = "Resize split up" }
- maps.n[""] = { "resize +2", desc = "Resize split down" }
- maps.n[""] = { "vertical resize -2", desc = "Resize split left" }
- maps.n[""] = { "vertical resize +2", desc = "Resize split right" }
-end
-
--- SymbolsOutline
-if is_available "aerial.nvim" then
- maps.n["lS"] = { "AerialToggle", desc = "Symbols outline" }
-end
-
--- Telescope
-if is_available "telescope.nvim" then
- maps.n["fw"] = {
- function()
- require("telescope.builtin").live_grep()
- end,
- desc = "Search words",
- }
- maps.n["fW"] = {
- function()
- require("telescope.builtin").live_grep {
- additional_args = function(args)
- return vim.list_extend(args, { "--hidden", "--no-ignore" })
- end,
- }
- end,
- desc = "Search words in all files",
- }
- maps.n["gt"] = {
- function()
- require("telescope.builtin").git_status()
- end,
- desc = "Git status",
- }
- maps.n["gb"] = {
- function()
- require("telescope.builtin").git_branches()
- end,
- desc = "Git branches",
- }
- maps.n["gc"] = {
- function()
- require("telescope.builtin").git_commits()
- end,
- desc = "Git commits",
- }
- maps.n["ff"] = {
- function()
- require("telescope.builtin").find_files()
- end,
- desc = "Search files",
- }
- maps.n["fF"] = {
- function()
- require("telescope.builtin").find_files { hidden = true, no_ignore = true }
- end,
- desc = "Search all files",
- }
- maps.n["fb"] = {
- function()
- require("telescope.builtin").buffers()
- end,
- desc = "Search buffers",
- }
- maps.n["fh"] = {
- function()
- require("telescope.builtin").help_tags()
- end,
- desc = "Search help",
- }
- maps.n["fm"] = {
- function()
- require("telescope.builtin").marks()
- end,
- desc = "Search marks",
- }
- maps.n["fo"] = {
- function()
- require("telescope.builtin").oldfiles()
- end,
- desc = "Search history",
- }
- maps.n["sb"] = {
- function()
- require("telescope.builtin").git_branches()
- end,
- desc = "Git branches",
- }
- maps.n["sh"] = {
- function()
- require("telescope.builtin").help_tags()
- end,
- desc = "Search help",
- }
- maps.n["sm"] = {
- function()
- require("telescope.builtin").man_pages()
- end,
- desc = "Search man",
- }
- maps.n["sn"] = {
- function()
- require("telescope").extensions.notify.notify()
- end,
- desc = "Search notifications",
- }
- maps.n["sr"] = {
- function()
- require("telescope.builtin").registers()
- end,
- desc = "Search registers",
- }
- maps.n["sk"] = {
- function()
- require("telescope.builtin").keymaps()
- end,
- desc = "Search keymaps",
- }
- maps.n["sc"] = {
- function()
- require("telescope.builtin").commands()
- end,
- desc = "Search commands",
- }
- maps.n["ls"] = {
- function()
- local aerial_avail, _ = pcall(require, "aerial")
- if aerial_avail then
- require("telescope").extensions.aerial.aerial()
- else
- require("telescope.builtin").lsp_document_symbols()
- end
- end,
- desc = "Search symbols",
- }
- maps.n["lR"] = {
- function()
- require("telescope.builtin").lsp_references()
- end,
- desc = "Search references",
- }
- maps.n["lD"] = {
- function()
- require("telescope.builtin").diagnostics()
- end,
- desc = "Search diagnostics",
- }
-end
-
--- Terminal
-if is_available "toggleterm.nvim" then
- local toggle_term_cmd = astronvim.toggle_term_cmd
- maps.n[""] = { "ToggleTerm", desc = "Toggle terminal" }
- maps.n["gg"] = {
- function()
- toggle_term_cmd "lazygit"
- end,
- desc = "ToggleTerm lazygit",
- }
- maps.n["tn"] = {
- function()
- toggle_term_cmd "node"
- end,
- desc = "ToggleTerm node",
- }
- maps.n["tu"] = {
- function()
- toggle_term_cmd "ncdu"
- end,
- desc = "ToggleTerm NCDU",
- }
- maps.n["tt"] = {
- function()
- toggle_term_cmd "htop"
- end,
- desc = "ToggleTerm htop",
- }
- maps.n["tp"] = {
- function()
- toggle_term_cmd "python"
- end,
- desc = "ToggleTerm python",
- }
- maps.n["tl"] = {
- function()
- toggle_term_cmd "lazygit"
- end,
- desc = "ToggleTerm lazygit",
- }
- maps.n["tf"] = { "ToggleTerm direction=float", desc = "ToggleTerm float" }
- maps.n["th"] = { "ToggleTerm size=10 direction=horizontal", desc = "ToggleTerm horizontal split" }
- maps.n["tv"] = { "ToggleTerm size=80 direction=vertical", desc = "ToggleTerm vertical split" }
-end
-
--- Stay in indent mode
-maps.v["<"] = { ""] = { ">gv", desc = "indent line" }
-
--- Improved Terminal Mappings
-maps.t[""] = { "", desc = "Terminal normal mode" }
-maps.t["jk"] = { "