mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
removed old ansible roles
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
---
|
||||
- name: Install Xorg AMDGPU (AMD graphics driver for Xorg)
|
||||
become: true
|
||||
pacman:
|
||||
name: xf86-video-amdgpu
|
||||
state: latest
|
||||
- name: Install Vulkan Radeon (Vulkan for AMDGPU)
|
||||
become: true
|
||||
pacman:
|
||||
name: vulkan-radeon
|
||||
state: latest
|
||||
- name: Install Mesa (graphics driver)
|
||||
become: true
|
||||
pacman:
|
||||
name: mesa
|
||||
state: latest
|
||||
- name: Install Libva Mesa (accelerated video decoding driver)
|
||||
become: true
|
||||
pacman:
|
||||
name: libva-mesa-driver
|
||||
state: latest
|
||||
- name: Install Radeon Top (graphics monitoring)
|
||||
become: true
|
||||
pacman:
|
||||
name: radeontop
|
||||
state: latest
|
||||
- name: Install Mesa Vdpau (accelerated video decoding driver)
|
||||
become: true
|
||||
pacman:
|
||||
name: mesa-vdpau
|
||||
state: latest
|
||||
- name: Install AMD microcode
|
||||
become: true
|
||||
pacman:
|
||||
name: amd-ucode
|
||||
state: latest
|
||||
@@ -1,115 +0,0 @@
|
||||
---
|
||||
- name: Install Syncthing (synchronization tool)
|
||||
become: true
|
||||
pacman:
|
||||
name: syncthing
|
||||
state: latest
|
||||
- name: Install Man (manual page in the terminal)
|
||||
become: true
|
||||
pacman:
|
||||
name: man
|
||||
state: latest
|
||||
- name: Install Passbolt (password manager)
|
||||
become: true
|
||||
kewlfft.aur.aur:
|
||||
name: passbolt
|
||||
state: latest
|
||||
- name: Install Toipe (typing testing in the terminal)
|
||||
become: true
|
||||
kewlfft.aur.aur:
|
||||
name: toipe
|
||||
state: latest
|
||||
- name: Install Bpytop (system monitor)
|
||||
become: true
|
||||
pacman:
|
||||
name: bpytop
|
||||
state: latest
|
||||
- name: Install Bandwhich (bandwidth visualization tool)
|
||||
become: true
|
||||
pacman:
|
||||
name: bandwhich
|
||||
state: latest
|
||||
- name: Install Bind (network utilities, nslookup, dig, ...)
|
||||
become: true
|
||||
pacman:
|
||||
name: bind
|
||||
state: latest
|
||||
- name: Install Which
|
||||
become: true
|
||||
pacman:
|
||||
name: which
|
||||
state: latest
|
||||
- name: Install Fd (alternative to find)
|
||||
become: true
|
||||
pacman:
|
||||
name: fd
|
||||
state: latest
|
||||
- name: Install Python
|
||||
become: true
|
||||
pacman:
|
||||
name: python
|
||||
state: latest
|
||||
- name: Install Ruby
|
||||
become: true
|
||||
pacman:
|
||||
name: ruby
|
||||
state: latest
|
||||
- name: Install Composer (PHP package manager)
|
||||
become: true
|
||||
pacman:
|
||||
name: composer
|
||||
state: latest
|
||||
- name: Install Luarocks (Lua package manager)
|
||||
become: true
|
||||
pacman:
|
||||
name: luarocks
|
||||
state: latest
|
||||
- name: Install Wget (HTTP client)
|
||||
become: true
|
||||
pacman:
|
||||
name: wget
|
||||
state: latest
|
||||
- name: Install Unzip (uncompression utility)
|
||||
become: true
|
||||
pacman:
|
||||
name: unzip
|
||||
state: latest
|
||||
- name: Install Zip (compression utility)
|
||||
become: true
|
||||
pacman:
|
||||
name: zip
|
||||
state: latest
|
||||
- name: Install rsync (file synchronizer)
|
||||
become: true
|
||||
pacman:
|
||||
name: rsync
|
||||
state: latest
|
||||
- name: Install ACPID (Power manager)
|
||||
become: true
|
||||
pacman:
|
||||
name: acpid
|
||||
state: latest
|
||||
- name: Start ACPID service
|
||||
become: true
|
||||
service:
|
||||
enabled: true
|
||||
name: acpid
|
||||
state: started
|
||||
- name: Install Tokei (line of code counter)
|
||||
become: true
|
||||
pacman:
|
||||
name: tokei
|
||||
state: latest
|
||||
- name: Install bitwarden (password vault)
|
||||
become: true
|
||||
pacman:
|
||||
name: bitwarden
|
||||
state: latest
|
||||
- name: Install Wttr (weather informations)
|
||||
kewlfft.aur.aur:
|
||||
name: wttr
|
||||
state: latest
|
||||
- name: Install LaTeX tools
|
||||
become: true
|
||||
pacman:
|
||||
name: texlive
|
||||
@@ -1,25 +0,0 @@
|
||||
---
|
||||
- name: Install Chromium
|
||||
become: true
|
||||
pacman:
|
||||
name: chromium
|
||||
state: latest
|
||||
- name: Install Google Chrome
|
||||
kewlfft.aur.aur:
|
||||
name: google-chrome
|
||||
state: latest
|
||||
- name: Install Firefox
|
||||
become: true
|
||||
pacman:
|
||||
name: firefox
|
||||
state: latest
|
||||
- name: Install Opera
|
||||
become: true
|
||||
pacman:
|
||||
name: firefox
|
||||
state: latest
|
||||
- name: Install Vimb (browser with vim-like shortcuts)
|
||||
become: true
|
||||
pacman:
|
||||
name: vimb
|
||||
state: latest
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
- name: Install Cmus (music player for the terminal)
|
||||
become: true
|
||||
pacman:
|
||||
name: cmus
|
||||
state: latest
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
- name: Install Docker
|
||||
become: true
|
||||
pacman:
|
||||
name: docker
|
||||
state: latest
|
||||
- name: Install Docker Compose
|
||||
become: true
|
||||
pacman:
|
||||
name: docker-compose
|
||||
state: latest
|
||||
- name: Install LazyDocker (Docker TUI)
|
||||
kewlfft.aur.aur:
|
||||
name: lazydocker
|
||||
state: latest
|
||||
- name: List groups for the unprivileged user
|
||||
command: groups {{ ansible_user_id }}
|
||||
register: user_groups_command
|
||||
changed_when: false
|
||||
- name: Ensure the user has the correct permission
|
||||
become: true
|
||||
command: usermod -aG docker {{ ansible_user_id }}
|
||||
when: '"docker" not in user_groups_command.stdout'
|
||||
- name: Ensure Docker is started and enabled at boot
|
||||
become: true
|
||||
service:
|
||||
name: docker
|
||||
enabled: true
|
||||
state: started
|
||||
@@ -1,69 +0,0 @@
|
||||
---
|
||||
# (Optional)
|
||||
# Default exec command when open files.
|
||||
# If not set, will default to $EDITOR.
|
||||
default: nvim
|
||||
|
||||
# (Optional)
|
||||
# key (the command you want to use when opening files): [values] (extensions)
|
||||
# In the key, You can use arguments.
|
||||
exec:
|
||||
zathura:
|
||||
- pdf
|
||||
'feh -.':
|
||||
- jpg
|
||||
- jpeg
|
||||
- png
|
||||
- gif
|
||||
- svg
|
||||
- hdr
|
||||
|
||||
# (Optional)
|
||||
# Whether to use syntax highlighting in the preview mode.
|
||||
# If not set, will default to false.
|
||||
syntax_highlight: true
|
||||
|
||||
# (Optional)
|
||||
# Default theme for syntax highlighting.
|
||||
# Pick one from the following:
|
||||
# Base16OceanDark
|
||||
# Base16EightiesDark
|
||||
# Base16MochaDark
|
||||
# Base16OceanLight
|
||||
# InspiredGitHub
|
||||
# SolarizedDark
|
||||
# SolarizedLight
|
||||
# If not set, will default to "Base16OceanDark".
|
||||
default_theme: Base16OceanDark
|
||||
|
||||
# (Optional)
|
||||
# Path to .tmtheme file for the syntax highlighting.
|
||||
# If not set, default_theme will be used.
|
||||
# theme_path: "/home/kyohei/.config/felix/monokai.tmtheme"
|
||||
|
||||
# The foreground color of directory, file and symlink.
|
||||
# Pick one of the following:
|
||||
# Black // 0
|
||||
# Red // 1
|
||||
# Green // 2
|
||||
# Yellow // 3
|
||||
# Blue // 4
|
||||
# Magenta // 5
|
||||
# Cyan // 6
|
||||
# White // 7
|
||||
# LightBlack // 8
|
||||
# LightRed // 9
|
||||
# LightGreen // 10
|
||||
# LightYellow // 11
|
||||
# LightBlue // 12
|
||||
# LightMagenta // 13
|
||||
# LightCyan // 14
|
||||
# LightWhite // 15
|
||||
# Rgb(u8, u8, u8)
|
||||
# AnsiValue(u8)
|
||||
# For more details, see https://docs.rs/termion/1.5.6/termion/color/index.html
|
||||
color:
|
||||
dir_fg: LightCyan
|
||||
file_fg: LightWhite
|
||||
symlink_fg: LightYellow
|
||||
dirty_fg: Red
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
- name: Felix (command-line file manager)
|
||||
become: true
|
||||
pacman:
|
||||
name: felix-rs
|
||||
state: latest
|
||||
- name: Install Chafa (image previewer for Felix)
|
||||
become: true
|
||||
pacman:
|
||||
name: chafa
|
||||
state: latest
|
||||
- name: Felix setup
|
||||
synchronize:
|
||||
src: felix
|
||||
dest: "/$HOME/.config"
|
||||
@@ -1,112 +0,0 @@
|
||||
# Abbreviations for "docker compose"
|
||||
abbr --add dkcpb "docker compose build"
|
||||
abbr --add dkcpcf "docker compose config"
|
||||
abbr --add dkcpcp "docker compose cp"
|
||||
abbr --add dkcpce "docker compose create"
|
||||
abbr --add dkcpdn "docker compose down"
|
||||
abbr --add dkcpevt "docker compose events"
|
||||
abbr --add dkcpex "docker compose exec"
|
||||
abbr --add dkcpimg "docker compose images"
|
||||
abbr --add dkcpkl "docker compose kill"
|
||||
abbr --add dkcplg "docker compose logs"
|
||||
abbr --add dkcpls "docker compose ls"
|
||||
abbr --add dkcppa "docker compose pause"
|
||||
abbr --add dkcppr "docker compose port"
|
||||
abbr --add dkcppl "docker compose pull"
|
||||
abbr --add dkcpps "docker compose ps"
|
||||
abbr --add dkcprs "docker compose restart"
|
||||
abbr --add dkcprn "docker compose run"
|
||||
abbr --add dkcpsc "docker compose scale"
|
||||
abbr --add dkcpst "docker compose start"
|
||||
abbr --add dkcpsp "docker compose stop"
|
||||
abbr --add dkcptp "docker compose top"
|
||||
abbr --add dkcpups "docker compose unpause"
|
||||
abbr --add dkcpup "docker compose up"
|
||||
abbr --add dkcpv "docker compose version"
|
||||
abbr --add dkcpwt "docker compose wait"
|
||||
abbr --add dkcpwa "docker compose watch"
|
||||
|
||||
# Abbrevations for "docker container"
|
||||
abbr --add dkctnat "docker container attach"
|
||||
abbr --add dkctncm "docker container commit"
|
||||
abbr --add dkctncp "docker container cp"
|
||||
abbr --add dkctnca "docker container create"
|
||||
abbr --add dkctnd "docker container diff"
|
||||
abbr --add dkctnep "docker container export"
|
||||
abbr --add dkctnex "docker container exec"
|
||||
abbr --add dkctnip "docker container inspect"
|
||||
abbr --add dkctnk "docker container kill"
|
||||
abbr --add dkctnl "docker container logs"
|
||||
abbr --add dkctnls "docker container ls"
|
||||
abbr --add dkctnp "docker container pause"
|
||||
abbr --add dkctnpn "docker container prune"
|
||||
abbr --add dkctnp "docker container port"
|
||||
abbr --add dkctnps "docker container port"
|
||||
abbr --add dkctnrm "docker container rm"
|
||||
abbr --add dkctnr "docker container run"
|
||||
abbr --add dkctnrn "docker container rename"
|
||||
abbr --add dkctnrt "docker container restart"
|
||||
abbr --add dkctns "docker container stop"
|
||||
abbr --add dkctnst "docker container start"
|
||||
abbr --add dkctnsts "docker container stats"
|
||||
abbr --add dkctnt "docker container top"
|
||||
abbr --add dkctnud "docker container update"
|
||||
abbr --add dkctnup "docker container unpause"
|
||||
abbr --add dkctnw "docker container wait"
|
||||
|
||||
# Abbreviations for "docker"
|
||||
abbr --add dkev "docker events"
|
||||
abbr --add dkhtr "docker history"
|
||||
abbr --add dkip "docker import"
|
||||
abbr --add dkl "docker load"
|
||||
abbr --add dks "docker stats"
|
||||
abbr --add dkt "docker tag"
|
||||
|
||||
# Abbrevations for "docker system"
|
||||
abbr --add dkstdf "docker system df"
|
||||
abbr --add dkstevt "docker system events"
|
||||
abbr --add dkstif "docker system info"
|
||||
abbr --add dkstpn "docker system prune"
|
||||
|
||||
# Abbrevations for "docker swarm"
|
||||
abbr --add dksint "docker swarm init"
|
||||
abbr --add dkslv "docker swarm leave"
|
||||
|
||||
# Abbreviations for "docker context"
|
||||
abbr --add dkctca "docker context create"
|
||||
abbr --add dkctep "docker context export"
|
||||
abbr --add dkctip "docker context import"
|
||||
abbr --add dkctis "docker context inspect"
|
||||
abbr --add dkctls "docker context ls"
|
||||
abbr --add dkctrm "docker context rm"
|
||||
abbr --add dkcts "docker context show"
|
||||
abbr --add dkctud "docker context update"
|
||||
abbr --add dkctu "docker context use"
|
||||
|
||||
# Abbreviations for "docker network"
|
||||
abbr --add dknwce "docker network create"
|
||||
abbr --add dknwcn "docker network connect"
|
||||
abbr --add dknwdcn "docker network disconnect"
|
||||
abbr --add dknwis "docker network inspect"
|
||||
abbr --add dknwls "docker network ls"
|
||||
abbr --add dknwp "docker network prune"
|
||||
abbr --add dknwrm "docker network rm"
|
||||
|
||||
# Abbreviations for "docker plugin"
|
||||
abbr --add dkpgce "docker plugin create"
|
||||
abbr --add dkpgdsb "docker plugin disable"
|
||||
abbr --add dkpgenb "docker plugin enable"
|
||||
abbr --add dkpgis "docker plugin inspect"
|
||||
abbr --add dkpgit "docker plugin install"
|
||||
abbr --add dkpgls "docker plugin ls"
|
||||
abbr --add dkpgp "docker plugin push"
|
||||
abbr --add dkpgrm "docker plugin rm"
|
||||
abbr --add dkpgs "docker plugin set"
|
||||
abbr --add dkpgug "docker plugin upgrade"
|
||||
|
||||
# Abbreviations for "docker volume"
|
||||
abbr --add dkvlce "docker volume create"
|
||||
abbr --add dkvlis "docker volume inspect"
|
||||
abbr --add dkvlls "docker volume ls"
|
||||
abbr --add dkvlp "docker volume prune"
|
||||
abbr --add dkvlrm "docker volume rm"
|
||||
@@ -1,7 +0,0 @@
|
||||
# Path to Oh My Fish install.
|
||||
set -q XDG_DATA_HOME
|
||||
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
|
||||
or set -gx OMF_PATH "$HOME/.local/share/omf"
|
||||
|
||||
# Load Oh My Fish configuration.
|
||||
source $OMF_PATH/init.fish
|
||||
@@ -1,64 +0,0 @@
|
||||
if status is-interactive
|
||||
# Enable vi-mode
|
||||
fish_vi_key_bindings
|
||||
|
||||
# Set the editor to use vim
|
||||
set --export --global EDITOR nvim
|
||||
|
||||
# Add ruby in the global path for Neovim
|
||||
fish_add_path ~/.local/share/gem/ruby/3.0.0/bin
|
||||
|
||||
# Add Node.js binaries in the global path
|
||||
fish_add_path ~/.local/lib/node_modules/.bin
|
||||
|
||||
# Add local binary in the global path
|
||||
fish_add_path ~/.local/bin
|
||||
|
||||
# Add Go binary path to global path
|
||||
fish_add_path ~/go/bin
|
||||
|
||||
# configuration for Oh My Fish BobTheFish theme
|
||||
set -g theme_display_git yes
|
||||
set -g theme_display_git_dirty yes
|
||||
set -g theme_display_git_untracked yes
|
||||
set -g theme_display_git_ahead_verbose yes
|
||||
set -g theme_display_git_dirty_verbose yes
|
||||
set -g theme_display_git_stashed_verbose yes
|
||||
set -g theme_display_git_default_branch yes
|
||||
set -g theme_git_default_branches development master main
|
||||
set -g theme_git_worktree_support yes
|
||||
set -g theme_use_abbreviated_branch_name yes
|
||||
set -g theme_display_vagrant no
|
||||
set -g theme_display_docker_machine yes
|
||||
set -g theme_display_k8s_context yes
|
||||
set -g theme_display_hg yes
|
||||
set -g theme_display_virtualenv no
|
||||
set -g theme_display_nix no
|
||||
set -g theme_display_ruby no
|
||||
set -g theme_display_node yes
|
||||
set -g theme_display_user ssh
|
||||
set -g theme_display_hostname ssh
|
||||
set -g theme_display_vi yes
|
||||
set -g theme_display_date yes
|
||||
set -g theme_display_cmd_duration yes
|
||||
set -g theme_title_display_process yes
|
||||
set -g theme_title_display_path no
|
||||
set -g theme_title_display_user yes
|
||||
set -g theme_title_use_abbreviated_path no
|
||||
set -g theme_date_format "+%a %H:%M"
|
||||
set -g theme_date_timezone Europe/Paris
|
||||
set -g theme_avoid_ambiguous_glyphs yes
|
||||
set -g theme_powerline_fonts yes
|
||||
set -g theme_nerd_fonts yes
|
||||
set -g theme_show_exit_status yes
|
||||
set -g theme_display_jobs_verbose yes
|
||||
set -g default_user aminnairi
|
||||
set -g theme_color_scheme dark
|
||||
set -g fish_prompt_pwd_dir_length 0
|
||||
set -g theme_project_dir_length 1
|
||||
set -g theme_newline_cursor yes
|
||||
set -g theme_newline_prompt '$ '
|
||||
|
||||
# Run fastfetch on each fish startup
|
||||
fastfetch
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
function cat
|
||||
bat --style full --italic-text always --force-colorization --theme gruvbox-dark $argv
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
function ls
|
||||
eza --icons --long --classify --git --header --created --accessed --modified $argv
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
function pass
|
||||
passbolt get resource --id (passbolt list resource | fzf | cut -d " " -f 1) | grep Password | cut -d " " -f 2 | xclip -selection clipboard
|
||||
end
|
||||
@@ -1,30 +0,0 @@
|
||||
function privateinternetaccess
|
||||
# Store the folder's path leading to the *.ovpn files
|
||||
set openvpn_files_path "/etc/privateinternetaccess"
|
||||
|
||||
# If there are no openvpn configuration files available
|
||||
if not count $openvpn_files_path/* > /dev/null
|
||||
# Bail out and exit with an error
|
||||
echo "Error: no OpenVPN files found in $openvpn_files_path"
|
||||
return 1
|
||||
end
|
||||
|
||||
# Set the OpenVPN file name choosen by the user
|
||||
set selected_file (/usr/bin/ls $openvpn_files_path | fzf)
|
||||
|
||||
# Set the full path to the OpenVPN configuration file
|
||||
set selected_file_path $openvpn_files_path/$selected_file
|
||||
|
||||
# Prevent this script from running if the path is incorrect
|
||||
if not test -f $selected_file_path
|
||||
# Bail out and exit with an error
|
||||
echo "Error: Configuration file not found at $selected_file_path"
|
||||
return 2
|
||||
end
|
||||
|
||||
# Open a new OpenVPN tunnel without caching the credentials by providing the path to a configuration
|
||||
sudo openvpn --auth-nocache --config $selected_file_path
|
||||
|
||||
# Notification
|
||||
notify-send "OpenVPN" "Disconnected from OpenVPN"
|
||||
end
|
||||
@@ -1,4 +0,0 @@
|
||||
function rm
|
||||
# Use GIO in order to move the file to trash instead of deleting it permanently
|
||||
/usr/bin/gio trash $argv
|
||||
end
|
||||
@@ -1,12 +0,0 @@
|
||||
function tmux
|
||||
if test (count $argv) -eq 0
|
||||
# Install Tmux plugins
|
||||
~/.tmux/plugins/tpm/bin/install_plugins
|
||||
|
||||
# Update Tmux plugins
|
||||
~/.tmux/plugins/tpm/bin/update_plugins all
|
||||
end
|
||||
|
||||
# Execute TMUX
|
||||
/usr/bin/tmux -u $argv
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
function vicd
|
||||
cd (vifm --choose-dir - $argv)
|
||||
end
|
||||
@@ -1 +0,0 @@
|
||||
theme agnoster
|
||||
@@ -1 +0,0 @@
|
||||
stable
|
||||
@@ -1 +0,0 @@
|
||||
agnoster
|
||||
@@ -1,84 +0,0 @@
|
||||
---
|
||||
- name: Install Fish (shell)
|
||||
become: true
|
||||
pacman:
|
||||
name: fish
|
||||
state: latest
|
||||
- name: Install Eza (alternative to ls)
|
||||
become: true
|
||||
pacman:
|
||||
name: eza
|
||||
state: latest
|
||||
- name: Install Bat (replacement for cat)
|
||||
become: true
|
||||
pacman:
|
||||
name: bat
|
||||
state: latest
|
||||
- name: Install Fastfetch (operating system informations logger)
|
||||
become: true
|
||||
pacman:
|
||||
name: fastfetch
|
||||
state: latest
|
||||
- name: Install OpenVPN (for openvpn.fish)
|
||||
become: true
|
||||
pacman:
|
||||
name: openvpn
|
||||
state: latest
|
||||
- name: Install FZF (for interacting with the OpenVPN function)
|
||||
become: true
|
||||
pacman:
|
||||
name: fzf
|
||||
state: present
|
||||
- name: Setup Fish for the unprivileged user
|
||||
synchronize:
|
||||
delete: true
|
||||
src: fish
|
||||
dest: "/$HOME/.config"
|
||||
rsync_opts: --exclude=fish_variables
|
||||
- name: Setup Fish for the root user
|
||||
become: true
|
||||
synchronize:
|
||||
delete: true
|
||||
src: fish
|
||||
dest: "/root/.config"
|
||||
- name: Clone Oh My Fish for the unprivileged user
|
||||
git:
|
||||
repo: https://github.com/oh-my-fish/oh-my-fish
|
||||
dest: /$HOME/.local/share/omf
|
||||
depth: 1
|
||||
single_branch: true
|
||||
update: true
|
||||
- name: Clone Oh My Fish for the root user
|
||||
become: true
|
||||
git:
|
||||
repo: https://github.com/oh-my-fish/oh-my-fish
|
||||
dest: /root/.local/share/omf
|
||||
depth: 1
|
||||
single_branch: true
|
||||
update: true
|
||||
- name: Clone Agnoster theme for the unprivileged user
|
||||
git:
|
||||
repo: https://github.com/oh-my-fish/theme-agnoster
|
||||
dest: /$HOME/.local/share/omf/themes/agnoster
|
||||
depth: 1
|
||||
single_branch: true
|
||||
update: true
|
||||
- name: Clone Agnoster theme for the root user
|
||||
become: true
|
||||
git:
|
||||
repo: https://github.com/oh-my-fish/theme-agnoster
|
||||
dest: /root/.local/share/omf/themes/agnoster
|
||||
depth: 1
|
||||
single_branch: true
|
||||
update: true
|
||||
- name: Setup OMF for the unprivileged user
|
||||
synchronize:
|
||||
delete: true
|
||||
src: omf
|
||||
dest: "/$HOME/.config"
|
||||
- name: Setup OMF for the root user
|
||||
become: true
|
||||
synchronize:
|
||||
delete: true
|
||||
src: omf
|
||||
dest: "/root/.config"
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>Noto Emoji</family>
|
||||
<family>DejaVu Sans</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Noto Serif</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>Noto Emoji</family>
|
||||
<family>DejaVu Serif</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Noto Mono</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>Noto Emoji</family>
|
||||
<family>JetBrainsMono Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
- name: Install JetBrains Mono Nerd (IntelliJ font)
|
||||
become: true
|
||||
pacman:
|
||||
name: ttf-jetbrains-mono-nerd
|
||||
state: latest
|
||||
- name: Install Noto fonts
|
||||
become: true
|
||||
pacman:
|
||||
name: noto-fonts
|
||||
state: latest
|
||||
- name: Install Noto Fonts Emoji (for emojis support)
|
||||
become: true
|
||||
pacman:
|
||||
name: noto-fonts-emoji
|
||||
state: latest
|
||||
- name: Install Noto Fonts CJK (for chinese, japanese & korean support)
|
||||
become: true
|
||||
pacman:
|
||||
name: noto-fonts-cjk
|
||||
state: latest
|
||||
- name: Install Noto Fonts AR (for arabic support)
|
||||
kewlfft.aur.aur:
|
||||
name: noto-fonts-ar
|
||||
state: latest
|
||||
- name: Setup Fonts
|
||||
synchronize:
|
||||
src: fontconfig
|
||||
dest: "/$HOME/.config"
|
||||
@@ -1,11 +0,0 @@
|
||||
[user]
|
||||
email = 18418459+aminnairi@users.noreply.github.com
|
||||
name = aminnairi
|
||||
[init]
|
||||
defaultBranch = development
|
||||
[core]
|
||||
editor = nvim
|
||||
[color]
|
||||
ui = true
|
||||
[help]
|
||||
autoCorrect = "prompt"
|
||||
@@ -1,20 +0,0 @@
|
||||
---
|
||||
- name: Install Git
|
||||
become: true
|
||||
pacman:
|
||||
name: git
|
||||
state: latest
|
||||
- name: Install LazyGit (Git TUI)
|
||||
become: true
|
||||
pacman:
|
||||
name: lazygit
|
||||
state: latest
|
||||
- name: Install GitHub's CLI
|
||||
become: true
|
||||
pacman:
|
||||
name: github-cli
|
||||
state: latest
|
||||
- name: Copy the configuration for Git
|
||||
synchronize:
|
||||
src: .gitconfig
|
||||
dest: /$HOME/
|
||||
@@ -1,9 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Exec=/usr/bin/xset r rate 200 50
|
||||
Hidden=true
|
||||
NoDisplay=false
|
||||
X-GNOME-Autostart-enabled=true
|
||||
Name=Keyboard rate
|
||||
Comment=Set the keyboard rate to prevent lag for key repeat
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
---
|
||||
- name: Install Gnome
|
||||
become: true
|
||||
pacman:
|
||||
name: gnome
|
||||
state: latest
|
||||
- name: Install Gnome extra packages
|
||||
become: true
|
||||
pacman:
|
||||
name: gnome-extra
|
||||
state: latest
|
||||
- name: Install Python PSUtil (process and system utilities for Gnome)
|
||||
become: true
|
||||
pacman:
|
||||
name: python-psutil
|
||||
state: latest
|
||||
- name: Enable the GDM service
|
||||
become: true
|
||||
service:
|
||||
name: gdm
|
||||
enabled: true
|
||||
- name: Enable compose key for special characters
|
||||
community.general.dconf:
|
||||
key: /org/gnome/desktop/input-sources/xkb-options
|
||||
value: "['compose:ralt']"
|
||||
state: present
|
||||
- name: Copy the autostart configuration
|
||||
synchronize:
|
||||
src: autostart
|
||||
dest: /$HOME/.config
|
||||
@@ -1,28 +0,0 @@
|
||||
theme = "tokyonight_storm"
|
||||
[editor]
|
||||
mouse = false
|
||||
middle-click-paste = false
|
||||
line-number = "relative"
|
||||
cursorline = false
|
||||
cursorcolumn = false
|
||||
completion-replace = true
|
||||
true-color = true
|
||||
undercurl = true
|
||||
bufferline = "always"
|
||||
color-modes = true
|
||||
popup-border = "popup"
|
||||
|
||||
[editor.auto-pairs]
|
||||
"(" = ")"
|
||||
"{" = "}"
|
||||
"[" = "]"
|
||||
'"' = '"'
|
||||
"`" = "`"
|
||||
"<" = ">"
|
||||
|
||||
[keys.normal]
|
||||
esc = [ "collapse_selection", "keep_primary_selection" ]
|
||||
|
||||
[keys.normal."C-g"]
|
||||
"g" = [ ":new", ":insert-output lazygit", ":buffer-close!", ":redraw" ]
|
||||
"d" = [ ":new", ":insert-output lazydocker", ":buffer-close!", ":redraw" ]
|
||||
@@ -1,17 +0,0 @@
|
||||
[[language]]
|
||||
name = "typescript"
|
||||
language-id = "typescript"
|
||||
scope = "source.ts"
|
||||
injection-regex = "^(ts|typescript)$"
|
||||
file-types = ["ts"]
|
||||
shebangs = ["deno"]
|
||||
roots = ["deno.json", "deno.jsonc", "package.json"]
|
||||
auto-format = true
|
||||
language-servers = ["deno-lsp"]
|
||||
|
||||
[language-server.deno-lsp]
|
||||
command = "deno"
|
||||
args = ["lsp"]
|
||||
|
||||
[language-server.deno-lsp.config.deno]
|
||||
enable = true
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
- name: Install Docker Language Server
|
||||
kewlfft.aur.aur:
|
||||
name: dockerfile-language-server
|
||||
state: latest
|
||||
|
||||
- name: Install VSCode Language Server Extracted
|
||||
kewlfft.aur.aur:
|
||||
name: vscode-langservers-extracted
|
||||
state: latest
|
||||
|
||||
- name: Synchronize the configuration
|
||||
synchronize:
|
||||
src: helix
|
||||
dest: "/$HOME/.config"
|
||||
delete: true
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
- name: Set the host name
|
||||
become: true
|
||||
ansible.builtin.hostname:
|
||||
name: archlinux
|
||||
use: systemd
|
||||
@@ -1,70 +0,0 @@
|
||||
# Tokyo Night color scheme for kitty terminal emulator
|
||||
foreground #a9b1d6
|
||||
background #1a1b26
|
||||
# Black
|
||||
color0 #414868
|
||||
color8 #414868
|
||||
# Red
|
||||
color1 #f7768e
|
||||
color9 #f7768e
|
||||
# Green
|
||||
color2 #73daca
|
||||
color10 #73daca
|
||||
# Yellow
|
||||
color3 #e0af68
|
||||
color11 #e0af68
|
||||
# Blue
|
||||
color4 #7aa2f7
|
||||
color12 #7aa2f7
|
||||
# Magenta
|
||||
color5 #bb9af7
|
||||
color13 #bb9af7
|
||||
# Cyan
|
||||
color6 #7dcfff
|
||||
color14 #7dcfff
|
||||
# White
|
||||
color7 #c0caf5
|
||||
color15 #c0caf5
|
||||
# Cursor
|
||||
cursor #c0caf5
|
||||
cursor_text_color #1a1b26
|
||||
# Selection highlight
|
||||
selection_foreground none
|
||||
selection_background #28344a
|
||||
# The color for highlighting URLs on mouse-over
|
||||
url_color #9ece6a
|
||||
# Window borders
|
||||
active_border_color #3d59a1
|
||||
inactive_border_color #101014
|
||||
bell_border_color #e0af68
|
||||
# Tab bar
|
||||
tab_bar_style fade
|
||||
tab_fade 1
|
||||
active_tab_foreground #3d59a1
|
||||
active_tab_background #16161e
|
||||
active_tab_font_style bold
|
||||
inactive_tab_foreground #787c99
|
||||
inactive_tab_background #16161e
|
||||
inactive_tab_font_style bold
|
||||
tab_bar_background #101014
|
||||
# Title bar
|
||||
macos_titlebar_color #16161e
|
||||
# Storm
|
||||
# background #24283b
|
||||
# cursor_text_color #24283b
|
||||
# active_tab_background #1f2335
|
||||
# inactive_tab_background #1f2335
|
||||
# macos_titlebar_color #1f2335
|
||||
|
||||
# Custom configuration
|
||||
font_family JetBrainsMono NFM
|
||||
bold_font JetBrainsMono NFM Bold
|
||||
italic_font JetBrainsMono NFM Italic
|
||||
bold_italic_font JetBrainsMono NFM BoldItali
|
||||
font_size 18.0
|
||||
force_ltr no
|
||||
font_features +liga
|
||||
disable_ligatures never
|
||||
modify_font cell_height 10px
|
||||
background_opacity 1
|
||||
background_blur 0
|
||||
@@ -1,21 +0,0 @@
|
||||
---
|
||||
- name: Install Kitty (terminal emulator)
|
||||
become: true
|
||||
pacman:
|
||||
name: kitty
|
||||
state: latest
|
||||
- name: Install Viu (simple terminal image viewer)
|
||||
become: true
|
||||
pacman:
|
||||
name: viu
|
||||
state: latest
|
||||
- name: Install ueberzugpp (C++ based terminal image viewer)
|
||||
become: true
|
||||
pacman:
|
||||
name: ueberzugpp
|
||||
state: latest
|
||||
- name: Setup Kitty
|
||||
synchronize:
|
||||
delete: true
|
||||
src: kitty
|
||||
dest: "/$HOME/.config"
|
||||
@@ -1,14 +0,0 @@
|
||||
---
|
||||
- name: Generate the US locale
|
||||
community.general.locale_gen:
|
||||
name: en_US.UTF-8
|
||||
state: present
|
||||
- name: Get the current keymap
|
||||
shell: localectl status | grep "VC Keymap" | cut -d " " -f 7
|
||||
register: localectl_keymap_status_command
|
||||
ignore_errors: true
|
||||
changed_when: false
|
||||
- name: Set the keyboard keymap
|
||||
become: true
|
||||
command: "localectl set-keymap {{ locale }}"
|
||||
when: 'localectl_keymap_status_command.stdout != locale'
|
||||
@@ -1 +0,0 @@
|
||||
locale: us
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
- name: Install Deno
|
||||
become: true
|
||||
pacman:
|
||||
name: deno
|
||||
state: latest
|
||||
|
||||
- name: Clone the repository
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/aminnairi/markdown-table-align
|
||||
dest: /$HOME/Documents/git/github.com/aminnairi/markdown-table-align/
|
||||
register: git_clone_result
|
||||
|
||||
- name: Compile the binary
|
||||
ansible.builtin.command:
|
||||
chdir: /$HOME/Documents/git/github.com/aminnairi/markdown-table-align/
|
||||
cmd: deno compile --allow-read --output $HOME/.local/bin/markdown-table-align index.ts
|
||||
when: git_clone_result.changed
|
||||
@@ -1,4 +0,0 @@
|
||||
require("settings.options")
|
||||
require("settings.keymap")
|
||||
require("settings.autocommands")
|
||||
require("settings.lazy")
|
||||
@@ -1,9 +0,0 @@
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "php",
|
||||
callback = function()
|
||||
vim.bo.tabstop = 4
|
||||
vim.bo.softtabstop = 4
|
||||
vim.bo.shiftwidth = 4
|
||||
vim.bo.expandtab = true
|
||||
end,
|
||||
})
|
||||
@@ -1,37 +0,0 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
local options = {
|
||||
noremap = true,
|
||||
silent = true
|
||||
}
|
||||
|
||||
-- Move the current line down one line in normal mode
|
||||
vim.keymap.set('n', '<A-j>', ":move .+1<CR>==", options)
|
||||
|
||||
-- Move the current line up one line in normal mode
|
||||
vim.keymap.set('n', '<A-k>', ":move .-2<CR>==", options)
|
||||
|
||||
-- Move the character under the cursor one character forward in normal mode
|
||||
vim.keymap.set('n', '<A-l>', "xp", options)
|
||||
|
||||
-- Move the character under the cursor one character backward in normal mode
|
||||
vim.keymap.set('n', '<A-h>', "xhP", options)
|
||||
|
||||
-- Move the current range down one line in visual-line mode
|
||||
vim.keymap.set('x', '<A-j>', ":move '>+1<CR>gv=gv", options)
|
||||
|
||||
-- Move the current range up one line in visual-line mode
|
||||
vim.keymap.set('x', '<A-k>', ":move '<-2<CR>gv=gv", options)
|
||||
|
||||
-- Move the current line down one line in insert mode
|
||||
vim.keymap.set('i', '<A-j>', "<ESC>:move .+1<CR>==gi", options)
|
||||
|
||||
-- Move the current line up one line in insert mode
|
||||
vim.keymap.set('i', '<A-k>', "<ESC>:move .-2<CR>==gi", options)
|
||||
|
||||
-- Move the character under the cursor one character forward in insert mode
|
||||
vim.keymap.set('i', '<A-l>', "<ESC>lxpi", options)
|
||||
|
||||
-- Move the character under the cursor one character backward in insert mode
|
||||
vim.keymap.set('i', '<A-h>', "<ESC>lxhPi", options)
|
||||
@@ -1,16 +0,0 @@
|
||||
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", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup("settings.lazy.plugins")
|
||||
@@ -1,33 +0,0 @@
|
||||
return {
|
||||
"romgrk/barbar.nvim",
|
||||
event = "BufNew",
|
||||
dependencies = {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
init = function()
|
||||
vim.g.barbar_auto_setup = false
|
||||
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
map("n", "<A-,>", "<Cmd>BufferPrevious<CR>", opts)
|
||||
map("n", "<A-.>", "<Cmd>BufferNext<CR>", opts)
|
||||
map("n", "<A-<>", "<Cmd>BufferMovePrevious<CR>", opts)
|
||||
map("n", "<A->>", "<Cmd>BufferMoveNext<CR>", opts)
|
||||
map("n", "<A-1>", "<Cmd>BufferGoto 1<CR>", opts)
|
||||
map("n", "<A-2>", "<Cmd>BufferGoto 2<CR>", opts)
|
||||
map("n", "<A-3>", "<Cmd>BufferGoto 3<CR>", opts)
|
||||
map("n", "<A-4>", "<Cmd>BufferGoto 4<CR>", opts)
|
||||
map("n", "<A-5>", "<Cmd>BufferGoto 5<CR>", opts)
|
||||
map("n", "<A-6>", "<Cmd>BufferGoto 6<CR>", opts)
|
||||
map("n", "<A-7>", "<Cmd>BufferGoto 7<CR>", opts)
|
||||
map("n", "<A-8>", "<Cmd>BufferGoto 8<CR>", opts)
|
||||
map("n", "<A-9>", "<Cmd>BufferGoto 9<CR>", opts)
|
||||
map("n", "<A-0>", "<Cmd>BufferLast<CR>", opts)
|
||||
map("n", "<A-p>", "<Cmd>BufferPin<CR>", opts)
|
||||
map("n", "<A-c>", "<Cmd>BufferClose<CR>", opts)
|
||||
map("n", "<A-p>", "<Cmd>BufferPick<CR>", opts)
|
||||
end,
|
||||
opts = {},
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
return {
|
||||
"utilyre/barbecue.nvim",
|
||||
name = "barbecue",
|
||||
event = "BufEnter",
|
||||
dependencies = {
|
||||
"SmiteshP/nvim-navic",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"folke/tokyonight.nvim",
|
||||
},
|
||||
opts = {
|
||||
theme = "tokyonight",
|
||||
},
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
return {
|
||||
"laytan/cloak.nvim",
|
||||
config = function()
|
||||
require("cloak").setup({
|
||||
enabled = true,
|
||||
cloak_character = "·",
|
||||
-- The applied highlight group (colors) on the cloaking, see `:h highlight`.
|
||||
highlight_group = "Comment",
|
||||
-- Applies the length of the replacement characters for all matched
|
||||
-- patterns, defaults to the length of the matched pattern.
|
||||
cloak_length = nil, -- Provide a number if you want to hide the true length of the value.
|
||||
-- Wether it should try every pattern to find the best fit or stop after the first.
|
||||
try_all_patterns = true,
|
||||
patterns = {
|
||||
{
|
||||
-- Match any file starting with '.env'.
|
||||
-- This can be a table to match multiple file patterns.
|
||||
file_pattern = {
|
||||
".env*",
|
||||
".npmrc"
|
||||
},
|
||||
-- Match an equals sign and any character after it.
|
||||
-- This can also be a table of patterns to cloak,
|
||||
-- example: cloak_pattern = { ':.+', '-.+' } for yaml files.
|
||||
cloak_pattern = {
|
||||
"=.+",
|
||||
":.+"
|
||||
},
|
||||
-- A function, table or string to generate the replacement.
|
||||
-- The actual replacement will contain the 'cloak_character'
|
||||
-- where it doesn't cover the original text.
|
||||
-- If left emtpy the legacy behavior of keeping the first character is retained.
|
||||
replace = nil,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
require("which-key").add({
|
||||
{ "<leader>c", "Cloak", },
|
||||
{ "<leader>ct", ":CloakToggle<CR>", desc = "Toggle" },
|
||||
{ "<leader>cd", ":CloakDisable<CR>", desc = "Disable" },
|
||||
{ "<leader>ce", ":CloakEnable<CR>", desc = "Enable" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
return {
|
||||
"numToStr/Comment.nvim",
|
||||
opts = {
|
||||
---Add a space b/w comment and the line
|
||||
padding = true,
|
||||
---Whether the cursor should stay at its position
|
||||
sticky = true,
|
||||
---Lines to be ignored while (un)comment
|
||||
ignore = nil,
|
||||
---LHS of toggle mappings in NORMAL mode
|
||||
toggler = {
|
||||
---Line-comment toggle keymap
|
||||
line = "gcc",
|
||||
---Block-comment toggle keymap
|
||||
block = "gbc",
|
||||
},
|
||||
---LHS of operator-pending mappings in NORMAL and VISUAL mode
|
||||
opleader = {
|
||||
---Line-comment keymap
|
||||
line = "gc",
|
||||
---Block-comment keymap
|
||||
block = "gb",
|
||||
},
|
||||
---LHS of extra mappings
|
||||
extra = {
|
||||
---Add comment on the line above
|
||||
above = "gcO",
|
||||
---Add comment on the line below
|
||||
below = "gco",
|
||||
---Add comment at the end of line
|
||||
eol = "gcA",
|
||||
},
|
||||
---Enable keybindings
|
||||
---NOTE: If given `false` then the plugin won't create any mappings
|
||||
mappings = {
|
||||
---Operator-pending mapping; `gcc` `gbc` `gc[count]{motion}` `gb[count]{motion}`
|
||||
basic = true,
|
||||
---Extra mapping; `gco`, `gcO`, `gcA`
|
||||
extra = true,
|
||||
},
|
||||
---Function to call before (un)comment
|
||||
pre_hook = nil,
|
||||
---Function to call after (un)comment
|
||||
post_hook = nil,
|
||||
},
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
init = function()
|
||||
local whichKey = require("which-key")
|
||||
local conform = require("conform")
|
||||
|
||||
whichKey.add({
|
||||
{ "<leader>f", group = "Format" },
|
||||
{
|
||||
"<leader>ff",
|
||||
function()
|
||||
local currentFileBufferNumber = vim.fn.bufnr("%")
|
||||
conform.format({ bufnr = currentFileBufferNumber })
|
||||
end,
|
||||
desc = "Current File",
|
||||
},
|
||||
})
|
||||
end,
|
||||
config = function()
|
||||
local conform = require("conform")
|
||||
|
||||
conform.setup({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
javascript = { "eslint_d" },
|
||||
php = { "phpcbf" },
|
||||
elm = { "elm_format" },
|
||||
fish = { "fish_indent" },
|
||||
},
|
||||
})
|
||||
|
||||
conform.formatters.phpcbf = {
|
||||
prepend_args = {
|
||||
"--standard=PSR12",
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
@@ -1,168 +0,0 @@
|
||||
return {
|
||||
"stevearc/dressing.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
input = {
|
||||
-- Set to false to disable the vim.ui.input implementation
|
||||
enabled = true,
|
||||
|
||||
-- Default prompt string
|
||||
default_prompt = "Input:",
|
||||
|
||||
-- Can be 'left', 'right', or 'center'
|
||||
title_pos = "left",
|
||||
|
||||
-- When true, <Esc> will close the modal
|
||||
insert_only = true,
|
||||
|
||||
-- When true, input will start in insert mode.
|
||||
start_in_insert = true,
|
||||
|
||||
-- These are passed to nvim_open_win
|
||||
border = "rounded",
|
||||
-- 'editor' and 'win' will default to being centered
|
||||
relative = "cursor",
|
||||
|
||||
-- These can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
|
||||
prefer_width = 40,
|
||||
width = nil,
|
||||
-- min_width and max_width can be a list of mixed types.
|
||||
-- min_width = {20, 0.2} means "the greater of 20 columns or 20% of total"
|
||||
max_width = { 140, 0.9 },
|
||||
min_width = { 20, 0.2 },
|
||||
|
||||
buf_options = {},
|
||||
win_options = {
|
||||
-- Window transparency (0-100)
|
||||
winblend = 10,
|
||||
-- Disable line wrapping
|
||||
wrap = false,
|
||||
-- Indicator for when text exceeds window
|
||||
list = true,
|
||||
listchars = "precedes:…,extends:…",
|
||||
-- Increase this for more context when text scrolls off the window
|
||||
sidescrolloff = 0,
|
||||
},
|
||||
|
||||
-- Set to `false` to disable
|
||||
mappings = {
|
||||
n = {
|
||||
["<Esc>"] = "Close",
|
||||
["<CR>"] = "Confirm",
|
||||
},
|
||||
i = {
|
||||
["<C-c>"] = "Close",
|
||||
["<CR>"] = "Confirm",
|
||||
["<Up>"] = "HistoryPrev",
|
||||
["<Down>"] = "HistoryNext",
|
||||
},
|
||||
},
|
||||
|
||||
override = function(conf)
|
||||
-- This is the config that will be passed to nvim_open_win.
|
||||
-- Change values here to customize the layout
|
||||
return conf
|
||||
end,
|
||||
|
||||
-- see :help dressing_get_config
|
||||
get_config = nil,
|
||||
},
|
||||
select = {
|
||||
-- Set to false to disable the vim.ui.select implementation
|
||||
enabled = true,
|
||||
|
||||
-- Priority list of preferred vim.select implementations
|
||||
backend = { "telescope", "fzf_lua", "fzf", "builtin", "nui" },
|
||||
|
||||
-- Trim trailing `:` from prompt
|
||||
trim_prompt = true,
|
||||
|
||||
-- Options for telescope selector
|
||||
-- These are passed into the telescope picker directly. Can be used like:
|
||||
-- telescope = require('telescope.themes').get_ivy({...})
|
||||
telescope = nil,
|
||||
|
||||
-- Options for fzf selector
|
||||
fzf = {
|
||||
window = {
|
||||
width = 0.5,
|
||||
height = 0.4,
|
||||
},
|
||||
},
|
||||
|
||||
-- Options for fzf-lua
|
||||
fzf_lua = {
|
||||
-- winopts = {
|
||||
-- height = 0.5,
|
||||
-- width = 0.5,
|
||||
-- },
|
||||
},
|
||||
|
||||
-- Options for nui Menu
|
||||
nui = {
|
||||
position = "50%",
|
||||
size = nil,
|
||||
relative = "editor",
|
||||
border = {
|
||||
style = "rounded",
|
||||
},
|
||||
buf_options = {
|
||||
swapfile = false,
|
||||
filetype = "DressingSelect",
|
||||
},
|
||||
win_options = {
|
||||
winblend = 10,
|
||||
},
|
||||
max_width = 80,
|
||||
max_height = 40,
|
||||
min_width = 40,
|
||||
min_height = 10,
|
||||
},
|
||||
|
||||
-- Options for built-in selector
|
||||
builtin = {
|
||||
-- These are passed to nvim_open_win
|
||||
border = "rounded",
|
||||
-- 'editor' and 'win' will default to being centered
|
||||
relative = "editor",
|
||||
|
||||
buf_options = {},
|
||||
win_options = {
|
||||
-- Window transparency (0-100)
|
||||
winblend = 10,
|
||||
cursorline = true,
|
||||
cursorlineopt = "both",
|
||||
},
|
||||
|
||||
-- These can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
|
||||
-- the min_ and max_ options can be a list of mixed types.
|
||||
-- max_width = {140, 0.8} means "the lesser of 140 columns or 80% of total"
|
||||
width = nil,
|
||||
max_width = { 140, 0.8 },
|
||||
min_width = { 40, 0.2 },
|
||||
height = nil,
|
||||
max_height = 0.9,
|
||||
min_height = { 10, 0.2 },
|
||||
|
||||
-- Set to `false` to disable
|
||||
mappings = {
|
||||
["<Esc>"] = "Close",
|
||||
["<C-c>"] = "Close",
|
||||
["<CR>"] = "Confirm",
|
||||
},
|
||||
|
||||
override = function(conf)
|
||||
-- This is the config that will be passed to nvim_open_win.
|
||||
-- Change values here to customize the layout
|
||||
return conf
|
||||
end,
|
||||
},
|
||||
|
||||
-- Used to override format_item. See :help dressing-format
|
||||
format_item_override = {},
|
||||
|
||||
-- see :help dressing_get_config
|
||||
get_config = nil,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
return {
|
||||
"ziontee113/icon-picker.nvim",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
local iconPicker = require("icon-picker")
|
||||
local whichKey = require("which-key")
|
||||
|
||||
iconPicker.setup({
|
||||
disable_legacy_commands = true
|
||||
})
|
||||
|
||||
whichKey.add({
|
||||
{ "<leader>i", group = "Icon" },
|
||||
{ "<leader>ie", function() vim.cmd("IconPickerInsert emoji") end, group = "Emoji" },
|
||||
{ "<leader>is", function() vim.cmd("IconPickerInsert symbols") end, group = "Symbol" },
|
||||
{ "<leader>in", function() vim.cmd("IconPickerInsert nerd_font") end, group = "Nerd Font Symbol" },
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
return {
|
||||
"xiyaowong/link-visitor.nvim",
|
||||
event = "BufEnter",
|
||||
opts = {
|
||||
open_cmd = nil,
|
||||
silent = true,
|
||||
skip_confirmation = true,
|
||||
border = "rounded",
|
||||
},
|
||||
config = function()
|
||||
local whichKey = require("which-key")
|
||||
local linkVisitor = require("link-visitor");
|
||||
|
||||
whichKey.add({
|
||||
{ "<leader>v", group = "Link", },
|
||||
{ "<leader>vv", function() linkVisitor.visit() end, },
|
||||
{ "<leader>vl", function() linkVisitor.link_under_cursor() end, },
|
||||
{ "<leader>vn", function() linkVisitor.link_near_cursor() end, },
|
||||
{ "<leader>vN", function() linkVisitor.link_nearest() end, },
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
return {
|
||||
"folke/lsp-colors.nvim",
|
||||
dependencies = {
|
||||
"neovim/nvim-lspconfig",
|
||||
},
|
||||
opts = {
|
||||
Error = "#db4b4b",
|
||||
Warning = "#e0af68",
|
||||
Information = "#0db9d7",
|
||||
Hint = "#10B981",
|
||||
},
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
return {
|
||||
"onsails/lspkind.nvim",
|
||||
config = function()
|
||||
require('lspkind').init({
|
||||
mode = 'symbol_text',
|
||||
preset = 'codicons',
|
||||
symbol_map = {
|
||||
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 = "",
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
opts = {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = "tokyonight",
|
||||
component_separators = { left = "", right = "" },
|
||||
section_separators = { left = "", right = "" },
|
||||
disabled_filetypes = {
|
||||
statusline = {},
|
||||
winbar = {},
|
||||
},
|
||||
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_c = { "filename" },
|
||||
lualine_x = { "encoding", "fileformat", "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location" },
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = { "location" },
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
tabline = {},
|
||||
winbar = {},
|
||||
inactive_winbar = {},
|
||||
extensions = {},
|
||||
},
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
return {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
},
|
||||
opts = {
|
||||
automatic_instalation = true,
|
||||
ensure_installed = {
|
||||
"angularls",
|
||||
"ansiblels",
|
||||
"bashls",
|
||||
"biome",
|
||||
"cssls",
|
||||
"denols",
|
||||
"docker_compose_language_service",
|
||||
"dockerls",
|
||||
"elmls",
|
||||
"emmet_language_server",
|
||||
"eslint",
|
||||
"gopls",
|
||||
"graphql",
|
||||
"html",
|
||||
"intelephense",
|
||||
"jsonls",
|
||||
"lua_ls",
|
||||
"marksman",
|
||||
"nginx_language_server",
|
||||
"prismals",
|
||||
"rust_analyzer",
|
||||
"sqlls",
|
||||
"svelte",
|
||||
"templ",
|
||||
"vls",
|
||||
"vuels",
|
||||
"yamlls",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
return {
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
},
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
"luacheck",
|
||||
"stylelint",
|
||||
"shellcheck",
|
||||
"rustfmt",
|
||||
"jq",
|
||||
"jsonlint",
|
||||
"htmlbeautifier",
|
||||
"eslint",
|
||||
"markdownlint",
|
||||
"yamllint",
|
||||
"ansible-lint",
|
||||
"eslint_d",
|
||||
"phpcbf",
|
||||
"phpcs",
|
||||
},
|
||||
auto_update = true,
|
||||
run_on_start = true,
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
return {
|
||||
"williamboman/mason.nvim",
|
||||
opts = {}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
return {
|
||||
"NeogitOrg/neogit",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim", -- required
|
||||
"nvim-telescope/telescope.nvim", -- optional
|
||||
"sindrets/diffview.nvim", -- optional
|
||||
"ibhagwan/fzf-lua", -- optional
|
||||
},
|
||||
config = function()
|
||||
local whichKey = require("which-key")
|
||||
local neogit = require("neogit")
|
||||
|
||||
neogit.setup({})
|
||||
|
||||
whichKey.add({
|
||||
{ "<leader>g", group = "Neogit", },
|
||||
{ "<leader>go", function() neogit.open() end, },
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
return {
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"folke/which-key.nvim",
|
||||
},
|
||||
-- init = function()
|
||||
-- -- Configure the key to use for keybinds used in the "core.keybinds" module
|
||||
-- vim.g.maplocalleader = ","
|
||||
-- end,
|
||||
config = function()
|
||||
require("neorg").setup({
|
||||
load = {
|
||||
-- Default module that imports the core modules necessary for Neorg
|
||||
["core.defaults"] = {},
|
||||
-- Module responsible for enhancing the icons display in Neorg files
|
||||
["core.concealer"] = {
|
||||
-- Configuration for the "core.concealer" module
|
||||
config = {
|
||||
-- Configure icons for concealed items
|
||||
icons = {
|
||||
-- Configure the code blocks
|
||||
code_block = {
|
||||
-- Conceal the "@code" and "@end" completely when in normal modej
|
||||
conceal = true,
|
||||
-- Add padding to a code inside a code block
|
||||
padding = {
|
||||
-- Add 2 spaces before the code inside a code block
|
||||
left = 2
|
||||
}
|
||||
},
|
||||
-- Configure the headings
|
||||
heading = {
|
||||
-- List of icons to use for all headings levels from 1 to 6
|
||||
icons = {
|
||||
"◉",
|
||||
"◎",
|
||||
"○",
|
||||
"◉",
|
||||
"◎",
|
||||
"○",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
["core.dirman"] = {
|
||||
-- Configuration for "core.dirman" module
|
||||
config = {
|
||||
-- Workspaces are folders from where to find Neorg files
|
||||
workspaces = {
|
||||
-- My personal notes
|
||||
notes = "~/git/github.com/aminnairi/notes",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Module for controling the presentation mode for Neorg files
|
||||
["core.presenter"] = {
|
||||
-- Configuration for the presenter module
|
||||
config = {
|
||||
-- Plugin to use, here "folke/zen-mode"
|
||||
zen_mode = "zen-mode",
|
||||
},
|
||||
},
|
||||
-- Module for controling the ability to export Neorg files
|
||||
["core.export"] = {}
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
"karb94/neoscroll.nvim",
|
||||
event = "BufEnter",
|
||||
opts = {},
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
return {
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
override = {
|
||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||
["vim.lsp.util.stylize_markdown"] = true,
|
||||
["cmp.entry.get_documentation"] = true,
|
||||
},
|
||||
},
|
||||
-- you can enable a preset for easier configuration
|
||||
presets = {
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
command_palette = true, -- position the cmdline and popupmenu together
|
||||
long_message_to_split = true, -- long messages will be sent to a split
|
||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"rcarriga/nvim-notify",
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
opts = {},
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
return {
|
||||
"mfussenegger/nvim-lint",
|
||||
dependencies = {
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
},
|
||||
event = { "BufReadPre", "BufWritePost" },
|
||||
init = function()
|
||||
local lint = require("lint")
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
lint.try_lint()
|
||||
end
|
||||
})
|
||||
end,
|
||||
config = function()
|
||||
local lint = require("lint")
|
||||
local phpcs = lint.linters.phpcs
|
||||
|
||||
phpcs.args = {
|
||||
"-q",
|
||||
-- <- Add a new parameter here
|
||||
"--standard=PSR12",
|
||||
"--report=json",
|
||||
"-",
|
||||
}
|
||||
|
||||
lint.linters_by_ft = {
|
||||
lua = { "luacheck" },
|
||||
javascript = { "eslint" },
|
||||
typescript = { "eslint" },
|
||||
javascriptreact = { "eslint" },
|
||||
typescriptreact = { "eslint" },
|
||||
vue = { "eslint" },
|
||||
sh = { "shellcheck" },
|
||||
fish = { "fish" },
|
||||
json = { "jsonlint" },
|
||||
markdown = { "markdownlint" },
|
||||
php = { "php", "phpcs", "phpstan" },
|
||||
css = { "stylelint" },
|
||||
yaml = { "yamllint" },
|
||||
}
|
||||
end,
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"hrsh7th/nvim-cmp",
|
||||
"folke/neodev.nvim"
|
||||
},
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
local whichKey = require("which-key")
|
||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||
end
|
||||
|
||||
local on_attach = function(_, buffer)
|
||||
whichKey.add({
|
||||
{ "<leader>l", group = "LSP" },
|
||||
{ "<leader>lb", group = "LSP Buffer" },
|
||||
{ "<leader>lbD", function() vim.lsp.buf.declaration() end, buffer = 1, desc = "Go to symbol declaration" },
|
||||
{ "<leader>lbR", function() vim.lsp.buf.references() end, buffer = 1, desc = "Go to symbol references" },
|
||||
{ "<leader>lbc", function() vim.lsp.buf.code_action() end, buffer = 1, desc = "LSP code action" },
|
||||
{ "<leader>lbd", function() vim.lsp.buf.definition() end, buffer = 1, desc = "Go to symbol definition" },
|
||||
{ "<leader>lbf", function() vim.lsp.buf.format() end, buffer = 1, desc = "Format file" },
|
||||
{ "<leader>lbh", function() vim.lsp.buf.hover() end, buffer = 1, desc = "Hover symbol documentation" },
|
||||
{ "<leader>lbi", function() vim.lsp.buf.implementation() end, buffer = 1, desc = "Go to symbol implementation" },
|
||||
{ "<leader>lbr", function() vim.lsp.buf.rename() end, buffer = 1, desc = "Rename symbol" },
|
||||
{ "<leader>lbs", function() vim.lsp.buf.signature_help() end, buffer = 1, desc = "Go to symbol signature" },
|
||||
{ "<leader>lbt", function() vim.lsp.buf.type_definition() end, buffer = 1, desc = "Go to symbol type definition" },
|
||||
{ "<leader>ld", group = "LSP Diagnostic" },
|
||||
{ "<leader>ldn", function() vim.diagnostic.goto_next() end, desc = "Next LSP diagnostic" },
|
||||
{ "<leader>ldo", function() vim.diagnostic.open_float() end, desc = "Open LSP diagnostic" },
|
||||
{ "<leader>ldp", function() vim.diagnostic.goto_prev() end, desc = "Previous LSP diagnostic" },
|
||||
})
|
||||
end
|
||||
|
||||
-- Needed in order to get more completion in Lua files for Vim/Neovim
|
||||
require("neodev").setup()
|
||||
|
||||
local languageServers = {
|
||||
"angularls",
|
||||
"ansiblels",
|
||||
"bashls",
|
||||
"biome",
|
||||
"cssls",
|
||||
"denols",
|
||||
"docker_compose_language_service",
|
||||
"dockerls",
|
||||
"elmls",
|
||||
"emmet_language_server",
|
||||
"eslint",
|
||||
"gopls",
|
||||
"graphql",
|
||||
"html",
|
||||
"intelephense",
|
||||
"jsonls",
|
||||
"lua_ls",
|
||||
"marksman",
|
||||
"nginx_language_server",
|
||||
"prismals",
|
||||
"rust_analyzer",
|
||||
"sqlls",
|
||||
"svelte",
|
||||
"templ",
|
||||
"vls",
|
||||
"vuels",
|
||||
"yamlls",
|
||||
}
|
||||
|
||||
for _, languageServerName in pairs(languageServers) do
|
||||
lspconfig[languageServerName].setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach
|
||||
})
|
||||
end
|
||||
end,
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
return {
|
||||
"rcarriga/nvim-notify",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
local notify = require("notify")
|
||||
|
||||
vim.notify = notify
|
||||
|
||||
require("notify.config").setup({
|
||||
enabled = false,
|
||||
stages = "fade_in_slide_out",
|
||||
timeout = 5000,
|
||||
background_colour = "#1e222a",
|
||||
icons = {
|
||||
ERROR = "",
|
||||
WARN = "",
|
||||
INFO = "",
|
||||
DEBUG = "",
|
||||
TRACE = "✎",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
"kylechui/nvim-surround",
|
||||
event = "BufEnter",
|
||||
opts = {},
|
||||
}
|
||||
@@ -1,139 +0,0 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
},
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"c",
|
||||
"css",
|
||||
"csv",
|
||||
"dockerfile",
|
||||
"elm",
|
||||
"fish",
|
||||
"javascript",
|
||||
"jsdoc",
|
||||
"json",
|
||||
"lua",
|
||||
"norg",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"php",
|
||||
"prisma",
|
||||
"query",
|
||||
"regex",
|
||||
"rust",
|
||||
"scss",
|
||||
"sql",
|
||||
"ssh_config",
|
||||
"svelte",
|
||||
"toml",
|
||||
"tsx",
|
||||
"twig",
|
||||
"typescript",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"vue",
|
||||
"xml",
|
||||
"yaml",
|
||||
},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = true,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don"t have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
|
||||
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
|
||||
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on "syntax" being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
-- Configure text objects
|
||||
textobjects = {
|
||||
-- Text objects for selections like inside word (iw) or inside html tag (it)
|
||||
select = {
|
||||
-- Enable text objects selection
|
||||
enable = true,
|
||||
|
||||
-- Automatically jump forward to textobj, similar to targets.vim
|
||||
lookahead = true,
|
||||
|
||||
-- Keymaps to use for using the following selection text objects
|
||||
keymaps = {
|
||||
-- The whole function
|
||||
["af"] = { query = "@function.outer", desc = "Select the whole function" },
|
||||
-- Inside a function
|
||||
["if"] = { query = "@function.inner", desc = "Select inside a function" },
|
||||
-- Inside an assignment
|
||||
["i="] = { query = "@assignment.inner", desc = "Select inside of a statement" },
|
||||
-- Left-hand-side of a statement
|
||||
["l="] = { query = "@assignment.lhs", desc = "Select left-hand-side of a statement" },
|
||||
-- Right-hand-side of a statement
|
||||
["r="] = { query = "@assignment.rhs", desc = "Select right-hand-side of a statement" },
|
||||
-- The whole statement
|
||||
["a="] = { query = "@assignment.outer", desc = "Select the whole statement" },
|
||||
-- Inside of an attribute
|
||||
["ia"] = { query = "@attribute.inner", desc = "Select inside of an attribute" },
|
||||
-- The whole attribute
|
||||
["aa"] = { query = "@attribute.outer", desc = "Select the whole attribute" },
|
||||
-- Inside of a block
|
||||
["ib"] = { query = "@block.inner", desc = "Select inside a block" },
|
||||
-- The whole block
|
||||
["ab"] = { query = "@block.outer", desc = "Select the whole block" },
|
||||
-- Inside of a class
|
||||
["ic"] = { query = "@class.inner", desc = "Select inside of a class" },
|
||||
-- The whole class
|
||||
["ac"] = { query = "@class.outer", desc = "Select the whole class" },
|
||||
-- Inside a comment
|
||||
["iC"] = { query = "@comment.inner", desc = "Select inside of a comment" },
|
||||
-- The whole comment
|
||||
["aC"] = { query = "@comment.outer", desc = "Select the whole comment" },
|
||||
-- Inside of a conditional statement
|
||||
["ii"] = { query = "@conditional.inner", desc = "Select inside of a conditional statement" },
|
||||
-- The whole conditional statement
|
||||
["ai"] = { query = "@conditional.outer", desc = "Select the whole conditional statement" },
|
||||
-- Inside a loop
|
||||
["il"] = { query = "@loop.inner", desc = "Select inside a loop" },
|
||||
-- The whole a loop
|
||||
["al"] = { query = "@loop.outer", desc = "Select the whole loop" },
|
||||
-- Inside a number
|
||||
["in"] = { query = "@number.inner", desc = "Select inside a number" },
|
||||
-- Inside a number
|
||||
["an"] = { query = "@number.inner", desc = "Select the whole number" },
|
||||
-- Inside a parameter
|
||||
["ip"] = { query = "@parameter.inner", desc = "Select inside a parameter" },
|
||||
-- The whole parameter
|
||||
["ap"] = { query = "@parameter.outer", desc = "Select the whole parameter" },
|
||||
-- Inside of a regex
|
||||
["ir"] = { query = "@regex.inner", desc = "Select inside of a regex" },
|
||||
-- The whole regex
|
||||
["ar"] = { query = "@regex.outer", desc = "Select the whole regex" },
|
||||
-- Inside of a return statement
|
||||
["iR"] = { query = "@return.inner", desc = "Select inside of a return statement" },
|
||||
-- The whole return statement
|
||||
["aR"] = { query = "@return.outer", desc = "Select the whole return statement" },
|
||||
},
|
||||
-- Select surrounding white spaces as well as the selected text object
|
||||
include_surrounding_whitespace = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"hrsh7th/cmp-cmdline",
|
||||
'L3MON4D3/LuaSnip',
|
||||
'saadparwaiz1/cmp_luasnip'
|
||||
},
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
local cmp = require("cmp")
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
|
||||
end,
|
||||
},
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
["<C-k>"] = cmp.mapping.select_prev_item(),
|
||||
["<C-j>"] = cmp.mapping.select_next_item(),
|
||||
["<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 }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = "nvim_lsp", group_index = 2 },
|
||||
{ name = "path", group_index = 2 },
|
||||
{ name = 'luasnip' },
|
||||
}, {
|
||||
{ name = "buffer" },
|
||||
}),
|
||||
})
|
||||
|
||||
-- Set configuration for specific filetype.
|
||||
cmp.setup.filetype("gitcommit", {
|
||||
sources = cmp.config.sources({
|
||||
{ name = "git" }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
||||
}, {
|
||||
{ name = "buffer" },
|
||||
}),
|
||||
})
|
||||
|
||||
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won"t work anymore).
|
||||
cmp.setup.cmdline({ "/", "?" }, {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = {
|
||||
{ name = "buffer" },
|
||||
},
|
||||
})
|
||||
|
||||
-- Use cmdline & path source for ":" (if you enabled `native_menu`, this won"t work anymore).
|
||||
cmp.setup.cmdline(":", {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = "path" },
|
||||
}, {
|
||||
{ name = "cmdline" },
|
||||
}),
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,175 +0,0 @@
|
||||
local function use_nvim_tree_width(options)
|
||||
if type(options) ~= "table" then
|
||||
return
|
||||
end
|
||||
|
||||
---@type number
|
||||
local offset = options.offset
|
||||
|
||||
---@type number
|
||||
local initial_width = options.initial_width
|
||||
|
||||
local initial_width_type = type(initial_width)
|
||||
|
||||
local on_width_updated = options.on_width_updated
|
||||
|
||||
if type(on_width_updated) ~= "function" then
|
||||
on_width_updated = function() end
|
||||
end
|
||||
|
||||
if type(offset) ~= "number" then
|
||||
offset = 10
|
||||
end
|
||||
|
||||
if initial_width_type ~= "number" and initial_width_type ~= "table" then
|
||||
initial_width = 30
|
||||
end
|
||||
|
||||
---@type number|table
|
||||
local previous_width = initial_width
|
||||
|
||||
if initial_width_type ~= "number" then
|
||||
previous_width = 30
|
||||
end
|
||||
|
||||
---@type number|table
|
||||
local width = initial_width
|
||||
|
||||
local function get_width()
|
||||
return width
|
||||
end
|
||||
|
||||
local function increment_width()
|
||||
if type(width) == "table" then
|
||||
width = previous_width
|
||||
end
|
||||
|
||||
local new_width = width + offset
|
||||
|
||||
previous_width = new_width
|
||||
width = new_width
|
||||
|
||||
on_width_updated(new_width)
|
||||
end
|
||||
|
||||
local function decrement_width()
|
||||
if type(width) == "table" then
|
||||
width = previous_width
|
||||
end
|
||||
|
||||
local new_width = width - offset
|
||||
|
||||
previous_width = new_width
|
||||
width = new_width
|
||||
|
||||
on_width_updated(new_width)
|
||||
end
|
||||
|
||||
local function dynamic_width()
|
||||
width = {}
|
||||
on_width_updated(width)
|
||||
end
|
||||
|
||||
return get_width, increment_width, decrement_width, dynamic_width
|
||||
end
|
||||
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
local nvimTreeApi = require("nvim-tree.api")
|
||||
|
||||
local get_width, increment_width, decrement_width, dynamic_width = use_nvim_tree_width({
|
||||
offset = 5,
|
||||
initial_width = 30,
|
||||
on_width_updated = function(width)
|
||||
vim.cmd.NvimTreeResize(width)
|
||||
end
|
||||
})
|
||||
|
||||
local function on_nvim_tree_attach(buffer)
|
||||
local function opts(desc)
|
||||
return { desc = "nvim-tree: " .. desc, buffer = buffer, noremap = true, silent = true, nowait = true }
|
||||
end
|
||||
|
||||
-- default mappings
|
||||
nvimTreeApi.config.mappings.default_on_attach(buffer)
|
||||
|
||||
-- custom mappings
|
||||
vim.keymap.set('n', 'l', nvimTreeApi.node.open.edit, opts('Open file/directory'))
|
||||
vim.keymap.set('n', 'h', nvimTreeApi.node.navigate.parent_close, opts('Help'))
|
||||
end
|
||||
|
||||
require("nvim-tree").setup({
|
||||
on_attach = on_nvim_tree_attach,
|
||||
auto_reload_on_write = true,
|
||||
sort_by = "case_sensitive",
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
},
|
||||
notify = {
|
||||
-- Notifies everything from the INFO severity to ERROR
|
||||
threshold = vim.log.levels.INFO,
|
||||
-- Notifies only the relative path instead of the absolute
|
||||
absolute_path = false,
|
||||
},
|
||||
-- Move to the first letter of each folder/files instead of the beginning of the line
|
||||
hijack_cursor = true,
|
||||
-- Disable completely netrw, just in case
|
||||
disable_netrw = true,
|
||||
-- Reload the tree whenever a buffer is opened
|
||||
reload_on_bufenter = true,
|
||||
-- Allows using vim.ui.select for various operation instead of the defaut implementation
|
||||
select_prompts = true,
|
||||
view = {
|
||||
-- dynamically get the width of the tree
|
||||
width = get_width,
|
||||
-- Always open the tree on the left side of the screen
|
||||
side = "left",
|
||||
-- Never display the number line for the tree
|
||||
number = false,
|
||||
},
|
||||
renderer = {
|
||||
-- Never add trailing slashes for folders name
|
||||
add_trailing = false,
|
||||
-- Never group directories in the tree for those that only have one child node
|
||||
group_empty = false,
|
||||
-- Never highlight any files in a special way
|
||||
special_files = {},
|
||||
-- Highlight files that have diagnostics
|
||||
highlight_diagnostics = true
|
||||
},
|
||||
update_focused_file = {
|
||||
-- Focus the file in the tree whenever it is focused in the editor
|
||||
enable = true
|
||||
},
|
||||
diagnostics = {
|
||||
-- Enable diagnostics for the tree
|
||||
enable = true,
|
||||
-- Show diagnostics for the parent folder of the incriminated file
|
||||
show_on_dirs = true
|
||||
}
|
||||
})
|
||||
|
||||
local whichKey = require("which-key")
|
||||
|
||||
whichKey.add({
|
||||
{ "<leader>n", group = "NvimTree" },
|
||||
{ "<leader>nt", function() nvimTreeApi.tree.toggle() end, desc = "Toggle" },
|
||||
{ "<leader>nf", function() nvimTreeApi.tree.focus() end, desc = "Focus" },
|
||||
{ "<leader>ne", function() nvimTreeApi.tree.expand_all() end, desc = "Expand All" },
|
||||
{ "<leader>nc", function() nvimTreeApi.tree.collapse_all() end, desc = "Collapse All" },
|
||||
{ "<leader>nw", group = "Width" },
|
||||
{ "<leader>nwi", increment_width, desc = "Increase" },
|
||||
{ "<leader>nwd", decrement_width, desc = "Decrease" },
|
||||
{ "<leader>nwa", dynamic_width, desc = "Decrease" },
|
||||
{ "<leader>nt", function() nvimTreeApi.tree.toggle() end, desc = "Toggle" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
config = function()
|
||||
local telescope = require("telescope")
|
||||
local telescopeBuiltin = require("telescope.builtin")
|
||||
|
||||
telescope.setup({})
|
||||
|
||||
local whichKey = require("which-key")
|
||||
|
||||
whichKey.add({
|
||||
{ "<leader>t", group = "Telescope" },
|
||||
{ "<leader>th", function() telescopeBuiltin.help_tags() end, desc = "Help Tags" },
|
||||
{ "<leader>tt", function() telescopeBuiltin.treesitter() end, desc = "Treesitter" },
|
||||
{ "<leader>tf", function() telescopeBuiltin.find_files() end, desc = "Files" },
|
||||
{ "<leader>tw", function() telescopeBuiltin.live_grep() end, desc = "Words" },
|
||||
{ "<leader>tc", function() telescopeBuiltin.colorscheme() end, desc = "Colorscheme" },
|
||||
{ "<leader>tg", function() telescopeBuiltin.git_files() end, desc = "Colorscheme" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
init = function()
|
||||
vim.cmd.colorscheme("tokyonight")
|
||||
end,
|
||||
opts = {
|
||||
style = "storm",
|
||||
transparent = false,
|
||||
light_style = "day",
|
||||
terminal_colors = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
return {
|
||||
"RRethy/vim-illuminate",
|
||||
event = "BufEnter",
|
||||
config = function()
|
||||
require("illuminate").configure({
|
||||
-- providers: provider used to get references in the buffer, ordered by priority
|
||||
providers = {
|
||||
"lsp",
|
||||
"treesitter",
|
||||
"regex",
|
||||
},
|
||||
-- delay: delay in milliseconds
|
||||
delay = 100,
|
||||
-- filetype_overrides: filetype specific overrides.
|
||||
-- The keys are strings to represent the filetype while the values are tables that
|
||||
-- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist
|
||||
filetype_overrides = {},
|
||||
-- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist
|
||||
filetypes_denylist = {
|
||||
"dirvish",
|
||||
"fugitive",
|
||||
},
|
||||
-- filetypes_allowlist: filetypes to illuminate, this is overriden by filetypes_denylist
|
||||
filetypes_allowlist = {},
|
||||
-- modes_denylist: modes to not illuminate, this overrides modes_allowlist
|
||||
-- See `:help mode()` for possible values
|
||||
modes_denylist = {},
|
||||
-- modes_allowlist: modes to illuminate, this is overriden by modes_denylist
|
||||
-- See `:help mode()` for possible values
|
||||
modes_allowlist = {},
|
||||
-- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist
|
||||
-- Only applies to the 'regex' provider
|
||||
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
||||
providers_regex_syntax_denylist = {},
|
||||
-- providers_regex_syntax_allowlist: syntax to illuminate, this is overriden by providers_regex_syntax_denylist
|
||||
-- Only applies to the 'regex' provider
|
||||
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
||||
providers_regex_syntax_allowlist = {},
|
||||
-- under_cursor: whether or not to illuminate under the cursor
|
||||
under_cursor = true,
|
||||
-- large_file_cutoff: number of lines at which to use large_file_config
|
||||
-- The `under_cursor` option is disabled when this cutoff is hit
|
||||
large_file_cutoff = nil,
|
||||
-- large_file_config: config to use for large files (based on large_file_cutoff).
|
||||
-- Supports the same keys passed to .configure
|
||||
-- If nil, vim-illuminate will be disabled for large files.
|
||||
large_file_overrides = nil,
|
||||
-- min_count_to_highlight: minimum number of matches required to perform highlighting
|
||||
min_count_to_highlight = 1,
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 0
|
||||
end,
|
||||
config = function()
|
||||
-- Nothing here
|
||||
end
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
return {
|
||||
"folke/zen-mode.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
local opt = vim.opt
|
||||
|
||||
opt.autoindent = true
|
||||
opt.autoread = true
|
||||
opt.backspace = "indent,eol,start"
|
||||
opt.bufhidden = "hide"
|
||||
opt.clipboard:append("unnamedplus")
|
||||
opt.confirm = true
|
||||
opt.copyindent = true
|
||||
opt.emoji = true
|
||||
opt.encoding = "UTF-8"
|
||||
opt.expandtab = true
|
||||
opt.fileignorecase = true
|
||||
opt.hlsearch = true
|
||||
opt.ignorecase = true
|
||||
opt.incsearch = true
|
||||
opt.infercase = true
|
||||
opt.joinspaces = true
|
||||
opt.laststatus = 2
|
||||
opt.lazyredraw = false
|
||||
opt.backup = false
|
||||
opt.breakindent = false
|
||||
opt.compatible = false
|
||||
opt.errorbells = false
|
||||
opt.linebreak = false
|
||||
opt.swapfile = false
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.shiftround = true
|
||||
opt.shiftwidth = 2
|
||||
opt.shiftwidth = 2
|
||||
opt.smartcase = true
|
||||
opt.smartindent = true
|
||||
opt.smarttab = true
|
||||
opt.softtabstop = 2
|
||||
opt.tabstop = 2
|
||||
opt.syntax = "on"
|
||||
opt.wrap = false
|
||||
opt.cursorline = true
|
||||
opt.termguicolors = true
|
||||
opt.signcolumn = "yes"
|
||||
opt.splitright = true
|
||||
opt.splitbelow = true
|
||||
opt.conceallevel = 3
|
||||
@@ -1,104 +0,0 @@
|
||||
---
|
||||
- name: Install Angular Language Server
|
||||
become: true
|
||||
npm:
|
||||
name: "@angular/language-server"
|
||||
global: true
|
||||
state: latest
|
||||
- name: Install VSCode Langservers Extracted
|
||||
become: true
|
||||
npm:
|
||||
name: vscode-langservers-extracted
|
||||
global: true
|
||||
state: latest
|
||||
- name: Install Emmet Language Server
|
||||
become: true
|
||||
npm:
|
||||
name: "@olrtg/emmet-language-server"
|
||||
global: true
|
||||
state: latest
|
||||
- name: Install TypeScript Language Server
|
||||
become: true
|
||||
npm:
|
||||
name: typescript-language-server
|
||||
global: true
|
||||
state: latest
|
||||
- name: Install Biome
|
||||
become: true
|
||||
npm:
|
||||
name: "@biomejs/biome"
|
||||
global: true
|
||||
state: latest
|
||||
- name: Install Lua 5.1
|
||||
become: true
|
||||
pacman:
|
||||
name: lua51
|
||||
state: latest
|
||||
- name: Install Lua JS Regexp
|
||||
become: true
|
||||
pacman:
|
||||
name: lua-jsregexp
|
||||
state: latest
|
||||
- name: Install RipGrep
|
||||
become: true
|
||||
pacman:
|
||||
name: ripgrep
|
||||
state: latest
|
||||
- name: Install Node.js
|
||||
become: true
|
||||
pacman:
|
||||
name: nodejs
|
||||
state: latest
|
||||
- name: Install NPM
|
||||
become: true
|
||||
pacman:
|
||||
name: npm
|
||||
state: latest
|
||||
- name: Install Node.js package for Neovim
|
||||
become: true
|
||||
npm:
|
||||
name: neovim
|
||||
global: true
|
||||
state: latest
|
||||
path: /usr/local/bin/node_modules
|
||||
- name: Install Neovim (command-line text editor)
|
||||
become: true
|
||||
pacman:
|
||||
name: neovim
|
||||
state: latest
|
||||
- name: Install Neovim package for Python
|
||||
become: true
|
||||
pacman:
|
||||
name: python-neovim
|
||||
state: latest
|
||||
- name: Install TreeSitter CLI for Neovim
|
||||
become: true
|
||||
pacman:
|
||||
name: tree-sitter-cli
|
||||
state: latest
|
||||
- name: Install Java SDK for Neovim
|
||||
become: true
|
||||
pacman:
|
||||
name: jdk-openjdk
|
||||
state: latest
|
||||
- name: Install Ruby for Neovim
|
||||
become: true
|
||||
pacman:
|
||||
name: ruby
|
||||
state: latest
|
||||
- name: Install Ruby Gem for Neovim
|
||||
become: true
|
||||
gem:
|
||||
name: neovim
|
||||
state: latest
|
||||
- name: Setup NeoVim for the unprivileged user
|
||||
synchronize:
|
||||
src: nvim
|
||||
dest: "/$HOME/.config"
|
||||
delete: true
|
||||
- name: Setup NeoVim for the administrator user
|
||||
become: true
|
||||
synchronize:
|
||||
src: nvim
|
||||
dest: /root/.config
|
||||
delete: true
|
||||
@@ -1,12 +0,0 @@
|
||||
---
|
||||
- name: Install Network Manager (Wi-Fi & ethernet manager)
|
||||
become: true
|
||||
pacman:
|
||||
name: networkmanager
|
||||
state: latest
|
||||
- name: Start Network Manager service
|
||||
become: true
|
||||
service:
|
||||
enabled: true
|
||||
name: NetworkManager
|
||||
state: started
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
- name: Install Pipewire Alsa
|
||||
become: true
|
||||
pacman:
|
||||
name: pipewire-alsa
|
||||
state: latest
|
||||
- name: Install Pipewire for Pulseaudio
|
||||
become: true
|
||||
pacman:
|
||||
name: pipewire-pulse
|
||||
state: latest
|
||||
- name: Enable Pipewire for Pulseaudio
|
||||
systemd_service:
|
||||
name: pipewire-pulse
|
||||
scope: user
|
||||
enabled: true
|
||||
state: started
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
- name: Ensure the temporary folder is present
|
||||
become: true
|
||||
file:
|
||||
path: /tmp/privateinternetaccess
|
||||
state: directory
|
||||
- name: Download Private Internet Access OpenVPN configuration
|
||||
become: true
|
||||
get_url:
|
||||
url: https://www.privateinternetaccess.com/openvpn/openvpn.zip
|
||||
dest: /tmp/privateinternetaccess/openvpn.zip
|
||||
- name: Ensure the configuration folder for Private Internet Access exists
|
||||
become: true
|
||||
file:
|
||||
path: /etc/privateinternetaccess
|
||||
state: directory
|
||||
- name: Unzip the Private Internet Access OpenVPN configuration
|
||||
become: true
|
||||
unarchive:
|
||||
src: /tmp/privateinternetaccess/openvpn.zip
|
||||
dest: /etc/privateinternetaccess/
|
||||
mode: '0600'
|
||||
@@ -1,26 +0,0 @@
|
||||
---
|
||||
- name: Install Node.js
|
||||
become: true
|
||||
pacman:
|
||||
name: nodejs
|
||||
state: latest
|
||||
- name: Install NPM
|
||||
become: true
|
||||
pacman:
|
||||
name: npm
|
||||
state: latest
|
||||
- name: Install Slidev globally through NPM
|
||||
community.general.npm:
|
||||
path: /$HOME/.local/lib/node_modules
|
||||
name: '@slidev/cli'
|
||||
version: 0.47.5
|
||||
- name: Install Slidev default theme globally through NPM
|
||||
community.general.npm:
|
||||
path: /$HOME/.local/lib/node_modules
|
||||
name: '@slidev/theme-default'
|
||||
version: 0.25.0
|
||||
- name: Install Playwright Chromium for Slidev globally through NPM
|
||||
community.general.npm:
|
||||
path: /$HOME/.local/lib/node_modules
|
||||
name: playwright-chromium
|
||||
version: 1.41.2
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: Set the timezone for Europe/Paris
|
||||
become: true
|
||||
community.general.timezone:
|
||||
name: Europe/Paris
|
||||
@@ -1,90 +0,0 @@
|
||||
# Open in current director# Rebind Ctrl-b to Ctrl-a
|
||||
unbind C-b
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
|
||||
# Start windows at index 1 instead of 0
|
||||
set -g base-index 1
|
||||
|
||||
# Start panes at index 1 instead of 0
|
||||
set -g pane-base-index 1
|
||||
|
||||
# Ensures that panes get reordered correctly when killing panes
|
||||
set-option -g renumber-windows on
|
||||
|
||||
# VI-mode
|
||||
set-window-option -g mode-keys vi
|
||||
set-window-option -g status-keys vi
|
||||
|
||||
# Enable Vi copy commands
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -selection clipboard'
|
||||
|
||||
# Vim keybinding for resizing panes
|
||||
bind -r C-h resize-pane -L # Control-a Control-h
|
||||
bind -r C-j resize-pane -D # Control-a Control-j
|
||||
bind -r C-k resize-pane -U # Control-a Control-k
|
||||
bind -r C-l resize-pane -R # Control-a Control-l
|
||||
|
||||
# Vim keybinding for switching between panes
|
||||
bind h select-pane -l # Control-a h
|
||||
bind j select-pane -D # Control-a j
|
||||
bind k select-pane -U # Control-a k
|
||||
bind l select-pane -R # Control-a l
|
||||
|
||||
# Bind Control-a + X to kill a session
|
||||
bind X kill-session
|
||||
|
||||
# Bind Control-a + C to create a new session
|
||||
bind C new-session
|
||||
|
||||
# split panes using | and - and use the current working directory
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# Create new window with current path
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
|
||||
# Unbinding the old keybind for splitting the pane vertically
|
||||
unbind '"'
|
||||
|
||||
# Unbinding the old keybind for splitting the pane horizontally
|
||||
unbind %
|
||||
|
||||
# Disable completely the mouse
|
||||
set -g mouse off
|
||||
|
||||
# Set the default terminal
|
||||
set -s default-terminal 'tmux-256color'
|
||||
|
||||
# Longer workspace names
|
||||
set -g status-left-length 20
|
||||
|
||||
# Reduce the escape time for Neovim
|
||||
set-option -sg escape-time 10
|
||||
|
||||
# Enable focus event for Neovim
|
||||
set-option -g focus-events on
|
||||
|
||||
# Terminal feature specific to Neovim
|
||||
set-option -sa terminal-overrides ',tmux-256color:Tc'
|
||||
set-option -as terminal-features ',xterm-kitty:RGB'
|
||||
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
|
||||
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
|
||||
|
||||
# Tmux plugin to handle tmux plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
|
||||
# Tmux theme plugin
|
||||
set -g @plugin 'jimeh/tmux-themepack'
|
||||
|
||||
# Tmux plugin to navigate easily between session
|
||||
set -g @plugin 'tmux-plugins/tmux-sessionist'
|
||||
|
||||
# Setting the theme to use with Tmux Themepack
|
||||
# set -g @themepack 'powerline/block/cyan'
|
||||
# set -g @plugin "aminnairi/tokyo-night-tmux#mode-style"
|
||||
set -g @plugin "janoamaral/tokyo-night-tmux"
|
||||
|
||||
# Run the Tmux plugin manager
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
@@ -1,34 +0,0 @@
|
||||
---
|
||||
- name: Install TMUX (terminal multiplexer)
|
||||
become: true
|
||||
pacman:
|
||||
name: tmux
|
||||
state: latest
|
||||
- name: Install TPM for the unprivileged user
|
||||
git:
|
||||
repo: https://github.com/tmux-plugins/tpm
|
||||
dest: /$HOME/.tmux/plugins/tpm
|
||||
update: true
|
||||
force: true
|
||||
clone: true
|
||||
single_branch: true
|
||||
depth: 1
|
||||
- name: Install TPM for the root user
|
||||
become: true
|
||||
git:
|
||||
repo: https://github.com/tmux-plugins/tpm
|
||||
dest: /root/.tmux/plugins/tpm
|
||||
update: true
|
||||
force: true
|
||||
clone: true
|
||||
single_branch: true
|
||||
depth: 1
|
||||
- name: Setup TMUX for the unprivileged user
|
||||
copy:
|
||||
src: tmux/tmux.conf
|
||||
dest: "/$HOME/.tmux.conf"
|
||||
- name: Setup TMUX for the root user
|
||||
become: true
|
||||
copy:
|
||||
src: tmux/tmux.conf
|
||||
dest: "/root/.tmux.conf"
|
||||
@@ -1,29 +0,0 @@
|
||||
" palenight color scheme for vifm
|
||||
|
||||
" Reset all styles first
|
||||
highlight clear
|
||||
|
||||
highlight Border cterm=none ctermfg=default ctermbg=default
|
||||
|
||||
highlight TopLine cterm=none ctermfg=002 ctermbg=default
|
||||
highlight TopLineSel cterm=bold ctermfg=002 ctermbg=default
|
||||
|
||||
highlight Win cterm=none ctermfg=251 ctermbg=default
|
||||
highlight Directory cterm=bold ctermfg=004 ctermbg=default
|
||||
highlight CurrLine cterm=bold,inverse ctermfg=default ctermbg=default
|
||||
highlight OtherLine cterm=bold ctermfg=default ctermbg=default
|
||||
highlight Selected cterm=none ctermfg=003 ctermbg=008
|
||||
|
||||
highlight JobLine cterm=bold ctermfg=251 ctermbg=008
|
||||
highlight StatusLine cterm=none ctermfg=008 ctermbg=default
|
||||
highlight ErrorMsg cterm=bold ctermfg=001 ctermbg=default
|
||||
highlight WildMenu cterm=bold ctermfg=015 ctermbg=008
|
||||
highlight CmdLine cterm=none ctermfg=007 ctermbg=default
|
||||
|
||||
highlight Executable cterm=bold ctermfg=002 ctermbg=default
|
||||
highlight Link cterm=bold ctermfg=006 ctermbg=default
|
||||
highlight BrokenLink cterm=bold ctermfg=001 ctermbg=default
|
||||
highlight Device cterm=bold,standout ctermfg=000 ctermbg=011
|
||||
highlight Fifo cterm=none ctermfg=003 ctermbg=default
|
||||
highlight Socket cterm=bold ctermfg=005 ctermbg=default
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
" palenight color scheme for vifm
|
||||
|
||||
" Reset all styles first
|
||||
highlight clear
|
||||
|
||||
highlight Border cterm=none ctermfg=default ctermbg=default
|
||||
|
||||
highlight TopLine cterm=none ctermfg=002 ctermbg=default
|
||||
highlight TopLineSel cterm=bold ctermfg=002 ctermbg=default
|
||||
|
||||
highlight Win cterm=none ctermfg=251 ctermbg=default
|
||||
highlight Directory cterm=bold ctermfg=004 ctermbg=default
|
||||
highlight CurrLine cterm=bold,inverse ctermfg=default ctermbg=default
|
||||
highlight OtherLine cterm=bold ctermfg=default ctermbg=default
|
||||
highlight Selected cterm=none ctermfg=003 ctermbg=008
|
||||
|
||||
highlight JobLine cterm=bold ctermfg=251 ctermbg=008
|
||||
highlight StatusLine cterm=none ctermfg=008 ctermbg=default
|
||||
highlight ErrorMsg cterm=bold ctermfg=001 ctermbg=default
|
||||
highlight WildMenu cterm=bold ctermfg=015 ctermbg=008
|
||||
highlight CmdLine cterm=none ctermfg=007 ctermbg=default
|
||||
|
||||
highlight Executable cterm=bold ctermfg=002 ctermbg=default
|
||||
highlight Link cterm=bold ctermfg=006 ctermbg=default
|
||||
highlight BrokenLink cterm=bold ctermfg=001 ctermbg=default
|
||||
highlight Device cterm=bold,standout ctermfg=000 ctermbg=011
|
||||
highlight Fifo cterm=none ctermfg=003 ctermbg=default
|
||||
highlight Socket cterm=bold ctermfg=005 ctermbg=default
|
||||
@@ -1,665 +0,0 @@
|
||||
" vim: filetype=vifm :
|
||||
" Sample configuration file for vifm (last updated: 3 April, 2023)
|
||||
" You can edit this file by hand.
|
||||
" The " character at the beginning of a line comments out the line.
|
||||
" Blank lines are ignored.
|
||||
" The basic format for each item is shown with an example.
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" Main settings
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Command used to edit files in various contexts. The default is vim.
|
||||
" If you would like to use another vi clone such as Elvis or Vile
|
||||
" you will need to change this setting.
|
||||
set vicmd=nvim
|
||||
" if executable('vim')
|
||||
" set vicmd=vim
|
||||
" elseif executable('nvim')
|
||||
" set vicmd=nvim
|
||||
" elseif executable('elvis')
|
||||
" set vicmd=elvis\ -G\ termcap
|
||||
" elseif executable('vile')
|
||||
" set vicmd=vile
|
||||
" elseif $EDITOR != ''
|
||||
" echo 'Note: using `'.$EDITOR.'` as an editor'
|
||||
" let &vicmd = $EDITOR
|
||||
" endif
|
||||
|
||||
" This makes vifm perform file operations on its own instead of relying on
|
||||
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
||||
" solution, it's also much slower when processing large amounts of files and
|
||||
" doesn't support progress measuring.
|
||||
set syscalls
|
||||
|
||||
" Trash Directory
|
||||
" The default is to move files that are deleted with dd or :d to
|
||||
" the trash directory. If you change this you will not be able to move
|
||||
" files by deleting them and then using p to put the file in the new location.
|
||||
" I recommend not changing this until you are familiar with vifm.
|
||||
" This probably shouldn't be an option.
|
||||
set trash
|
||||
|
||||
" What should be saved automatically on restarting vifm. Drop "savedirs"
|
||||
" value if you don't want vifm to remember last visited directories for you.
|
||||
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
|
||||
\phistory,fhistory,dirstack,registers,bookmarks,bmarks
|
||||
|
||||
" This is how many directories to store in the directory history.
|
||||
set history=100
|
||||
|
||||
" Automatically resolve symbolic links on l or Enter.
|
||||
set nofollowlinks
|
||||
|
||||
" Natural sort of (version) numbers within text.
|
||||
set sortnumbers
|
||||
|
||||
" Maximum number of changes that can be undone.
|
||||
set undolevels=100
|
||||
|
||||
" Use Vim's format of help file (has highlighting and "hyperlinks").
|
||||
" If you would rather use a plain text help file set novimhelp.
|
||||
set vimhelp
|
||||
|
||||
" If you would like to run an executable file when you
|
||||
" press Enter, l or Right Arrow, set this.
|
||||
set norunexec
|
||||
|
||||
" Format for displaying time in file list. For example:
|
||||
" TIME_STAMP_FORMAT=%m/%d-%H:%M
|
||||
" See man date or man strftime for details.
|
||||
set timefmt='%Y/%m/%d %H:%M'
|
||||
|
||||
" Show list of matches on tab completion in command-line mode
|
||||
set wildmenu
|
||||
|
||||
" Display completions in a form of popup with descriptions of the matches
|
||||
set wildstyle=popup
|
||||
|
||||
" Display suggestions in normal, visual and view modes for keys, marks and
|
||||
" registers (at most 5 files). In other view, when available.
|
||||
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
|
||||
|
||||
" Ignore case in search patterns unless it contains at least one uppercase
|
||||
" letter
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" Don't highlight search results automatically
|
||||
set nohlsearch
|
||||
|
||||
" Use increment searching (search while typing)
|
||||
set incsearch
|
||||
|
||||
" Try to leave some space from cursor to upper/lower border in lists
|
||||
set scrolloff=4
|
||||
|
||||
" Don't do too many requests to slow file systems
|
||||
if !has('win')
|
||||
set slowfs=curlftpfs
|
||||
endif
|
||||
|
||||
" Set custom status line look
|
||||
set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d "
|
||||
|
||||
" List of color schemes to try (picks the first one supported by the terminal)
|
||||
colorscheme Palenight Default
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" Bookmarks
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" :mark mark /full/directory/path [filename]
|
||||
|
||||
mark b ~/bin/
|
||||
mark h ~/
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" Commands
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" :com[mand][!] command_name action
|
||||
"
|
||||
" These are some of the macros that can be used in the action part:
|
||||
" %a for user arguments
|
||||
" %c for current file under the cursor
|
||||
" %C for current file under the cursor of inactive pane
|
||||
" %f for selected file(s)
|
||||
" %F for selected file(s) of inactive pane
|
||||
" %b is the same as %f %F
|
||||
" %d for current directory name
|
||||
" %D for current directory name of inactive pane
|
||||
" %r{x} for list of files in register {x}
|
||||
" %m runs the command in a menu window
|
||||
" %u uses command's output to build a file list
|
||||
" see `:help vifm-macros` and `:help vifm-filename-modifiers` for more
|
||||
|
||||
command! df df -h %m 2> /dev/null
|
||||
command! diff vim -d %f %F
|
||||
command! zip zip -r %c.zip %f
|
||||
command! run !! ./%f
|
||||
command! make !!make %a
|
||||
command! mkcd :mkdir %a | cd %a
|
||||
command! vgrep vim "+grep %a"
|
||||
command! reload :write | restart full
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" File types association
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" :filetype pattern1,pattern2 defaultprogram,program2
|
||||
" :fileviewer pattern1,pattern2 consoleviewer
|
||||
"
|
||||
" The first entry is the default program to be used with a matching file.
|
||||
" The other programs for the file type can be accessed via :file command.
|
||||
" The command macros like %f, %F, %d, %D may be used in the commands.
|
||||
" The %a macro is ignored. To use a % you must put %%.
|
||||
" Spaces in an app name must be escaped, for example: QuickTime\ Player.app
|
||||
|
||||
" For automated FUSE mounts, you must register an extension with :file[x]type
|
||||
" in one of the following formats:
|
||||
"
|
||||
" :filetype patterns FUSE_MOUNT|mount_cmd %SOURCE_FILE %DESTINATION_DIR
|
||||
"
|
||||
" %SOURCE_FILE and %DESTINATION_DIR are filled in at runtime.
|
||||
"
|
||||
" Example:
|
||||
" :filetype *.zip,*.[jwe]ar FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR
|
||||
"
|
||||
" :filetype patterns FUSE_MOUNT2|mount_cmd %PARAM %DESTINATION_DIR
|
||||
"
|
||||
" %PARAM and %DESTINATION_DIR are filled in at runtime.
|
||||
"
|
||||
" Example:
|
||||
" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR
|
||||
"
|
||||
" %PARAM value is the first line of the matched file, example: root@127.0.0.1:/
|
||||
"
|
||||
" You can also add %CLEAR if you want to clear screen before running FUSE
|
||||
" program. There is also %FOREGROUND, which is useful for entering passwords.
|
||||
|
||||
" Pdf
|
||||
filextype {*.pdf},<application/pdf> zathura %c %i, apvlv %c, xpdf %c
|
||||
fileviewer {*.pdf},<application/pdf> pdftotext -nopgbrk %c -
|
||||
|
||||
" PostScript
|
||||
filextype {*.ps,*.eps,*.ps.gz},<application/postscript>
|
||||
\ {View in zathura}
|
||||
\ zathura %f,
|
||||
\ {View in gv}
|
||||
\ gv %c %i,
|
||||
|
||||
" Djvu
|
||||
filextype {*.djvu},<image/vnd.djvu>
|
||||
\ {View in zathura}
|
||||
\ zathura %f,
|
||||
\ {View in apvlv}
|
||||
\ apvlv %f,
|
||||
|
||||
" Midi
|
||||
filetype {*.mid,*.kar}
|
||||
\ {Play using TiMidity++}
|
||||
\ timidity %f,
|
||||
|
||||
" Audio
|
||||
filetype {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,
|
||||
\*.aac,*.mpga},
|
||||
\<audio/*>
|
||||
\ {Play using mpv}
|
||||
\ mpv --no-video %f %s,
|
||||
\ {Play using MPlayer}
|
||||
\ mplayer %f,
|
||||
\ {Play using ffplay}
|
||||
\ ffplay -nodisp -hide_banner -autoexit %c,
|
||||
fileviewer {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,
|
||||
\*.aac,*.mpga},
|
||||
\<audio/*>
|
||||
\ ffprobe -hide_banner -pretty %c 2>&1
|
||||
|
||||
" Video
|
||||
filextype {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||
\*.as[fx],*.unknown_video},
|
||||
\<video/*>
|
||||
\ {Play using mpv}
|
||||
\ mpv %f,
|
||||
\ {View using ffplay}
|
||||
\ ffplay -fs -hide_banner -autoexit %f,
|
||||
\ {View using Dragon}
|
||||
\ dragon %f:p,
|
||||
\ {View using mplayer}
|
||||
\ mplayer %f,
|
||||
fileviewer {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||
\*.as[fx],*.unknown_video},
|
||||
\<video/*>
|
||||
\ ffprobe -hide_banner -pretty %c 2>&1
|
||||
|
||||
" Web
|
||||
filextype {*.xhtml,*.html,*.htm},<text/html>
|
||||
\ {Open with chromium}
|
||||
\ chromium %f,
|
||||
\ {Open with qutebrowser}
|
||||
\ qutebrowser %f %i,
|
||||
\ {Open with firefox}
|
||||
\ firefox %f &,
|
||||
|
||||
filetype {*.xhtml,*.html,*.htm},<text/html> links, lynx
|
||||
|
||||
" Object
|
||||
filetype {*.o},<application/x-object> nm %f | less
|
||||
|
||||
" Man page
|
||||
filetype {*.[1-8]},<text/troff> man ./%c
|
||||
fileviewer {*.[1-8]},<text/troff> man ./%c | col -b
|
||||
|
||||
" Images
|
||||
filextype {*.svg,*.svgz},<image/svg+xml>
|
||||
\ {Edit in Inkscape}
|
||||
\ inkscape %f,
|
||||
\ {View in Inkview}
|
||||
\ inkview %f,
|
||||
filextype {*.cr2}
|
||||
\ {Open in Darktable}
|
||||
\ darktable %f,
|
||||
\ {Open in RawTherapee}
|
||||
\ rawtherapee %f,
|
||||
filextype {*.xcf}
|
||||
\ {Open in GIMP}
|
||||
\ gimp %f,
|
||||
filextype {.kra}
|
||||
\ {Open in Krita}
|
||||
\ krita %f,
|
||||
filextype {.blend}
|
||||
\ {Open in Blender}
|
||||
\ blender %c,
|
||||
fileviewer {*.jpg,*.jpeg,*.png,*.gif}
|
||||
\ kitten icat --silent --transfer-mode=file --place=%pwx%ph@%pxx%py %c >/dev/tty </dev/tty %N
|
||||
\ %pc
|
||||
\ kitten icat --clear --silent >/dev/tty </dev/tty %N
|
||||
filextype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
|
||||
\ {View in sxiv}
|
||||
\ sxiv %f,
|
||||
\ {View in gpicview}
|
||||
\ gpicview %c,
|
||||
\ {View in shotwell}
|
||||
\ shotwell,
|
||||
fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
|
||||
\ identify %f
|
||||
|
||||
" OpenRaster
|
||||
filextype *.ora
|
||||
\ {Edit in MyPaint}
|
||||
\ mypaint %f,
|
||||
|
||||
" Mindmap
|
||||
filextype *.vym
|
||||
\ {Open with VYM}
|
||||
\ vym %f &,
|
||||
|
||||
" MD5
|
||||
filetype *.md5
|
||||
\ {Check MD5 hash sum}
|
||||
\ md5sum -c %f %S,
|
||||
|
||||
" SHA1
|
||||
filetype *.sha1
|
||||
\ {Check SHA1 hash sum}
|
||||
\ sha1sum -c %f %S,
|
||||
|
||||
" SHA256
|
||||
filetype *.sha256
|
||||
\ {Check SHA256 hash sum}
|
||||
\ sha256sum -c %f %S,
|
||||
|
||||
" SHA512
|
||||
filetype *.sha512
|
||||
\ {Check SHA512 hash sum}
|
||||
\ sha512sum -c %f %S,
|
||||
|
||||
" GPG signature
|
||||
filetype {*.asc},<application/pgp-signature>
|
||||
\ {Check signature}
|
||||
\ !!gpg --verify %c,
|
||||
|
||||
" Torrent
|
||||
filetype {*.torrent},<application/x-bittorrent> ktorrent %f &
|
||||
fileviewer {*.torrent},<application/x-bittorrent>
|
||||
\ dumptorrent -v %c,
|
||||
\ transmission-show %c
|
||||
|
||||
" FuseZipMount
|
||||
filetype {*.zip,*.jar,*.war,*.ear,*.oxt,*.apkg},
|
||||
\<application/zip,application/java-archive>
|
||||
\ {Mount with fuse-zip}
|
||||
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
|
||||
\ {View contents}
|
||||
\ unzip -l %f | less,
|
||||
\ {Extract here}
|
||||
\ unzip %c,
|
||||
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt unzip -l %f
|
||||
|
||||
" ArchiveMount
|
||||
filetype {*.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz,*.tar.zst,
|
||||
\*.tzst},
|
||||
\<application/x-tar>
|
||||
\ {Mount with archivemount}
|
||||
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer *.tgz,*.tar.gz tar -tzf %c
|
||||
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
|
||||
fileviewer *.tar.xz,*.txz tar -tJf %c
|
||||
fileviewer *.tar.zst,*.tzst tar -t --zstd -f %c
|
||||
fileviewer {*.tar},<application/x-tar> tar -tf %c
|
||||
|
||||
" Rar2FsMount and rar archives
|
||||
filetype {*.rar},<application/x-rar>
|
||||
\ {Mount with rar2fs}
|
||||
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer {*.rar},<application/x-rar> unrar v %c
|
||||
|
||||
" IsoMount
|
||||
filetype {*.iso},<application/x-iso9660-image>
|
||||
\ {Mount with fuseiso}
|
||||
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
|
||||
|
||||
" SshMount
|
||||
filetype *.ssh
|
||||
\ {Mount with sshfs}
|
||||
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||
|
||||
" FtpMount
|
||||
filetype *.ftp
|
||||
\ {Mount with curlftpfs}
|
||||
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||
|
||||
" Fuse7z and 7z archives
|
||||
filetype {*.7z},<application/x-7z-compressed>
|
||||
\ {Mount with fuse-7z}
|
||||
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer {*.7z},<application/x-7z-compressed> 7z l %c
|
||||
|
||||
" Office files
|
||||
filextype {*.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ppt},
|
||||
\<application/vnd.openxmlformats-officedocument.*,
|
||||
\application/msword,
|
||||
\application/vnd.ms-excel>
|
||||
\ libreoffice %f &
|
||||
fileviewer {*.doc},<application/msword> catdoc %c
|
||||
fileviewer {*.docx},
|
||||
\<application/
|
||||
\vnd.openxmlformats-officedocument.wordprocessingml.document>
|
||||
\ docx2txt.pl %f -
|
||||
|
||||
" TuDu files
|
||||
filetype *.tudu tudu -f %c
|
||||
|
||||
" Qt projects
|
||||
filextype *.pro qtcreator %f &
|
||||
|
||||
" Directories
|
||||
filextype */
|
||||
\ {View in thunar}
|
||||
\ Thunar %f &,
|
||||
|
||||
" Syntax highlighting in preview
|
||||
"
|
||||
" Explicitly set highlight type for some extensions
|
||||
"
|
||||
" 256-color terminal
|
||||
" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c
|
||||
" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c
|
||||
fileviewer * highlight -O xterm256 -s bat %c
|
||||
"
|
||||
" 16-color terminal
|
||||
" fileviewer *.c,*.h highlight -O ansi -s dante %c
|
||||
"
|
||||
" Or leave it for automatic detection
|
||||
" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g
|
||||
|
||||
" Displaying pictures in terminal
|
||||
" fileviewer *.jpg,*.png shellpic %c
|
||||
|
||||
" Open all other files with default system programs (you can also remove all
|
||||
" :file[x]type commands above to ensure they don't interfere with system-wide
|
||||
" settings). By default all unknown files are opened with 'vi[x]cmd'
|
||||
" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option
|
||||
" for unknown file types.
|
||||
" For *nix:
|
||||
" filetype * xdg-open
|
||||
" For OS X:
|
||||
" filetype * open
|
||||
" For Windows:
|
||||
" filetype * explorer %"f &
|
||||
|
||||
" ---------------------------------------------------------------------------------
|
||||
" File type icon configuration
|
||||
" use the following command as an example to set icons for specific file extension
|
||||
" set classify+='icon::*.ext,'
|
||||
" ---------------------------------------------------------------------------------
|
||||
|
||||
" Filetypes/directories
|
||||
set classify=' :dir:/, :exe:, :reg:, :link:,? :?:, ::../::'
|
||||
|
||||
" Specific files
|
||||
set classify+=' ::.Xdefaults,,.Xresources,,.bashprofile,,.bash_profile,,.bashrc,,.dmrc,,.d_store,,.fasd,,.gitconfig,,.gitignore,,.jack-settings,,.mime.types,,.nvidia-settings-rc,,.pam_environment,,.profile,,.recently-used,,.selected_editor,,.xinitpurc,,.zprofile,,.yarnc,,.snclirc,,.tmux.conf,,.urlview,,.config,,.ini,,.user-dirs.dirs,,.mimeapps.list,,.offlineimaprc,,.msmtprc,,.Xauthority,,config::'
|
||||
set classify+=' ::dropbox::'
|
||||
set classify+=' ::favicon.*,,README,,readme::'
|
||||
set classify+=' ::.vim,,.vimrc,,.gvimrc,,.vifm::'
|
||||
set classify+=' ::gruntfile.coffee,,gruntfile.js,,gruntfile.ls::'
|
||||
set classify+=' ::gulpfile.coffee,,gulpfile.js,,gulpfile.ls::'
|
||||
set classify+=' ::ledger::'
|
||||
set classify+=' ::license,,copyright,,copying,,LICENSE,,COPYRIGHT,,COPYING::'
|
||||
set classify+=' ::node_modules::'
|
||||
set classify+=' ::react.jsx::'
|
||||
|
||||
" File extensions
|
||||
set classify+=' ::dockerfile,,*.dockerfile,,docker-compose.yaml,,docker-compose.yml,,docker-compose.*.yaml,,docker-compose.*.yml::'
|
||||
set classify+=' ::*.component.ts,,*.module.ts,,*.service.ts::'
|
||||
set classify+=' ::*.yml,,*.yaml::'
|
||||
set classify+='λ ::*.ml,,*.mli::'
|
||||
set classify+=' ::*.styl::'
|
||||
set classify+=' ::*.scss::'
|
||||
set classify+=' ::*.py,,*.pyc,,*.pyd,,*.pyo::'
|
||||
set classify+=' ::*.blade.php::'
|
||||
set classify+=' ::*.php::'
|
||||
set classify+=' ::*.markdown,,*.md::'
|
||||
set classify+=' ::*.elm,,elm.json::'
|
||||
set classify+=' ::*.ts,,*.cts,,*.tsm,,tsconfig.json,,*.tsconfig.json::'
|
||||
set classify+=' ::package.json,,package-lock.json::'
|
||||
set classify+=' ::yarn-lock.json::'
|
||||
set classify+=' ::*.json::'
|
||||
set classify+=' ::*.js::'
|
||||
set classify+=' ::*.svelte::'
|
||||
set classify+=' ::*.bmp,,*.gif,,*.ico,,*.jpeg,,*.jpg,,*.png,,*.svg,,*.svgz,,*.tga,,*.tiff,,*.xmb,,*.xcf,,*.xpm,,*.xspf,,*.xwd,,*.cr2,,*.dng,,*.3fr,,*.ari,,*.arw,,*.bay,,*.crw,,*.cr3,,*.cap,,*.data,,*.dcs,,*.dcr,,*.drf,,*.eip,,*.erf,,*.fff,,*.gpr,,*.iiq,,*.k25,,*.kdc,,*.mdc,,*.mef,,*.mos,,*.mrw,,*.obm,,*.orf,,*.pef,,*.ptx,,*.pxn,,*.r3d,,*.raf,,*.raw,,*.rwl,,*.rw2,,*.rwz,,*.sr2,,*.srf,,*.srw,,*.tif,,*.x3f,,*.webp,,*.avif,,*.jxl::'
|
||||
set classify+=' ::*.ejs,,*.htm,,*.html,,*.slim,,*.xml::'
|
||||
set classify+=' ::*.mustasche::'
|
||||
set classify+=' ::*.css,,*.less,,*.bat,,*.conf,,*.ini,,*.rc,,*.yml,,*.cfg::'
|
||||
set classify+=' ::*.rss::'
|
||||
set classify+=' ::*.coffee::'
|
||||
set classify+=' ::*.twig::'
|
||||
set classify+=' ::*.c++,,*.cpp,,*.cxx,,*.h::'
|
||||
set classify+=' ::*.cc,,*.c::'
|
||||
set classify+=' ::*.hs,,*.lhs::'
|
||||
set classify+=' ::*.lua::'
|
||||
set classify+=' ::*.jl::'
|
||||
set classify+=' ::*.go::'
|
||||
set classify+=' ::*.db,,*.dump,,*.sql::'
|
||||
set classify+=' ::*.sln,,*.suo::'
|
||||
set classify+=' ::*.exe::'
|
||||
set classify+=' ::*.diff,,*.sum,,*.md5,,*.sha512::'
|
||||
set classify+=' ::*.scala::'
|
||||
set classify+=' ::*.java,,*.jar::'
|
||||
set classify+=' ::*.xul::'
|
||||
set classify+=' ::*.clj,,*.cljc::'
|
||||
set classify+=' ::*.pl,,*.pm,,*.t::'
|
||||
set classify+=' ::*.cljs,,*.edn::'
|
||||
set classify+=' ::*.rb::'
|
||||
set classify+=' ::*.fish::'
|
||||
set classify+=' ::*.sh,,*.bash::'
|
||||
set classify+=' ::*.dart::'
|
||||
set classify+=' ::*.f#,,*.fs,,*.fsi,,*.fsscript,,*.fsx::'
|
||||
set classify+=' ::*.rlib,,*.rs::'
|
||||
set classify+=' ::*.d::'
|
||||
set classify+=' ::*.erl,,*.hrl::'
|
||||
set classify+=' ::*.ai::'
|
||||
set classify+=' ::*.psb,,*.psd::'
|
||||
set classify+=' ::*.jsx,,*.tsx::'
|
||||
set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::'
|
||||
set classify+=' ::*.avi,,*.flv,,*.mkv,,*.mov,,*.mp4,,*.mpeg,,*.mpg,,*.webm,,*.av1::'
|
||||
set classify+=' ::*.epub,,*.pdf,,*.fb2,,*.djvu::'
|
||||
set classify+=' ::*.7z,,*.apk,,*.bz2,,*.cab,,*.cpio,,*.deb,,*.gem,,*.gz,,*.gzip,,*.lh,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.tar,,*.tgz,,*.xz,,*.zip,,*.zst::'
|
||||
set classify+=' ::*.cbr,,*.cbz::'
|
||||
set classify+=' ::*.log::'
|
||||
set classify+=' ::*.doc,,*.docx,,*.adoc::'
|
||||
set classify+=' ::*.xls,,*.xlsmx::'
|
||||
set classify+=' ::*.pptx,,*.ppt::'
|
||||
set classify+=' ::*.vue::'
|
||||
set classify+=' ::.gitlab-ci.yml,,.gitlab-ci.yaml::'
|
||||
set classify+=' ::*.rs::'
|
||||
set classify+=' ::*.go::'
|
||||
set classify+=' ::*.prisma::'
|
||||
set classify+=' ::ssh_config,,sshd_config,,ssh/config::'
|
||||
set classify+=' ::*.toml::'
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" Panel configuration examples
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Customize view columns a bit (enable ellipsis for truncated file names)
|
||||
" set viewcolumns=-{name}..,6{}.
|
||||
|
||||
" Show vertical border
|
||||
" set fillchars=vborder:│
|
||||
|
||||
" Filter-out build and temporary files
|
||||
" filter! {*.lo,*.o,*.d,*.class,*.pyc,*.pyo,.*~}
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" Sample keyboard mappings
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Start shell in current directory
|
||||
nnoremap s :shell<cr>
|
||||
|
||||
" Display sorting dialog
|
||||
nnoremap S :sort<cr>
|
||||
|
||||
" Toggle visibility of preview window
|
||||
nnoremap w :view<cr>
|
||||
vnoremap w :view<cr>gv
|
||||
|
||||
if $DISPLAY && executable('gvim')
|
||||
" Open file in existing instance of gvim
|
||||
nnoremap o :!gvim --remote-tab-silent %f<cr>
|
||||
" Open file in new instance of gvim
|
||||
nnoremap O :!gvim %f<cr>
|
||||
endif
|
||||
|
||||
" Open file in the background using its default program
|
||||
nnoremap gb :file &<cr>l
|
||||
|
||||
" Interaction with system clipboard
|
||||
if has('win')
|
||||
" Yank current directory path to Windows clipboard with forward slashes
|
||||
nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr>
|
||||
" Yank path to current file to Windows clipboard with forward slashes
|
||||
nnoremap yf :!echo %"c:gs!\!/! %i | clip<cr>
|
||||
elseif $WAYLAND_DISPLAY
|
||||
if executable('wl-copy')
|
||||
" Yank current directory path into primary and selection clipboards
|
||||
nnoremap yd :!echo -n %d | wl-copy %i &&
|
||||
\ echo -n %d | wl-copy -p %i<cr>
|
||||
" Yank current file path into into primary and selection clipboards
|
||||
nnoremap yf :!echo -n %c:p | wl-copy %i &&
|
||||
\ echo -n %c:p | wl-copy -p %i<cr>
|
||||
endif
|
||||
elseif $DISPLAY
|
||||
if executable('xclip')
|
||||
" Yank current directory path into the clipboard
|
||||
nnoremap yd :!echo %d | xclip %i<cr>
|
||||
" Yank current file path into the clipboard
|
||||
nnoremap yf :!echo %c:p | xclip %i<cr>
|
||||
elseif executable('xsel')
|
||||
" Yank current directory path into primary and selection clipboards
|
||||
nnoremap yd :!echo -n %d | xsel --input --primary %i &&
|
||||
\ echo -n %d | xsel --clipboard --input %i<cr>
|
||||
" Yank current file path into into primary and selection clipboards
|
||||
nnoremap yf :!echo -n %c:p | xsel --input --primary %i &&
|
||||
\ echo -n %c:p | xsel --clipboard --input %i<cr>
|
||||
endif
|
||||
endif
|
||||
|
||||
" Mappings for faster renaming
|
||||
nnoremap I cw<c-a>
|
||||
nnoremap cc cw<c-u>
|
||||
nnoremap A cw
|
||||
|
||||
" As above, but without the file extension
|
||||
" nnoremap I cW<c-a>
|
||||
" nnoremap cc cW<c-u>
|
||||
" nnoremap A cW
|
||||
|
||||
" Open console in current directory
|
||||
if $DISPLAY && executable('xterm')
|
||||
nnoremap ,t :!xterm &<cr>
|
||||
elseif $TERMINAL
|
||||
nnoremap ,t :!$TERMINAL &<cr>
|
||||
endif
|
||||
|
||||
" Open editor to edit vifmrc and apply settings after returning to vifm
|
||||
nnoremap ,c :write | edit $MYVIFMRC | restart full<cr>
|
||||
|
||||
" Open gvim to edit vifmrc
|
||||
if $DISPLAY && executable('gvim')
|
||||
nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr>
|
||||
endif
|
||||
|
||||
" Toggle wrap setting on ,w key
|
||||
nnoremap ,w :set wrap!<cr>
|
||||
|
||||
" Example of standard two-panel file managers mappings
|
||||
nnoremap <f3> :!less %f<cr>
|
||||
nnoremap <f4> :edit<cr>
|
||||
nnoremap <f5> :copy<cr>
|
||||
nnoremap <f6> :move<cr>
|
||||
nnoremap <f7> :mkdir<space>
|
||||
nnoremap <f8> :delete<cr>
|
||||
|
||||
" Midnight commander alike mappings
|
||||
" Open current directory in the other pane
|
||||
nnoremap <a-i> :sync<cr>
|
||||
" Open directory under cursor in the other pane
|
||||
nnoremap <a-o> :sync %c<cr>
|
||||
" Swap panes
|
||||
nnoremap <c-u> <c-w>x
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" Various customization examples
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Use ag (the silver searcher) instead of grep
|
||||
" set grepprg='ag --line-numbers %i %a %s'
|
||||
|
||||
" Add additional place to look for executables
|
||||
" let $PATH = $HOME.'/bin/fuse:'.$PATH
|
||||
|
||||
" Block particular shortcut
|
||||
" nnoremap <left> <nop>
|
||||
|
||||
" Export IPC name of current instance as environment variable and use it to
|
||||
" communicate with the instance later.
|
||||
"
|
||||
" It can be used in some shell script that gets run from inside vifm, for
|
||||
" example, like this:
|
||||
" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'"
|
||||
"
|
||||
" let $VIFM_SERVER_NAME = v:servername
|
||||
|
||||
" Activate screen/tmux support
|
||||
" screen!
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
" Icon decorations example
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" https://github.com/cirala/vifm_devicons
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
- name: Install Vifm (file manager for the terminal)
|
||||
become: true
|
||||
pacman:
|
||||
name: vifm
|
||||
state: latest
|
||||
- name: Synchronizes the configuration for the unprivileged user
|
||||
synchronize:
|
||||
src: vifm
|
||||
dest: /$HOME/.config
|
||||
delete: true
|
||||
- name: Synchronizes the configuration for the root user
|
||||
become: true
|
||||
synchronize:
|
||||
src: vifm
|
||||
dest: /root/.config
|
||||
delete: true
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
- name: Install Libinput (input devices recognition)
|
||||
become: true
|
||||
pacman:
|
||||
name: libinput
|
||||
state: latest
|
||||
- name: Install Xorg Libinput (input devices bridge)
|
||||
become: true
|
||||
pacman:
|
||||
name: xf86-input-libinput
|
||||
state: latest
|
||||
- name: Install Xorg Xinput (input devices manager)
|
||||
become: true
|
||||
pacman:
|
||||
name: xorg-xinput
|
||||
state: latest
|
||||
Reference in New Issue
Block a user