summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/.alacritty.toml63
-rw-r--r--.config/i3/config174
-rw-r--r--.config/i3blocks/config44
-rwxr-xr-x.config/i3blocks/i3_battery.sh18
-rw-r--r--.config/iamb/config.toml14
-rw-r--r--.config/nvim/after/ftdetect/antlr4.vim1
-rw-r--r--.config/nvim/after/ftdetect/jolie.vim1
-rwxr-xr-x.config/nvim/after/ftdetect/prr.vim1
-rwxr-xr-x.config/nvim/after/ftplugin/dockerfile.vim1
-rwxr-xr-x.config/nvim/after/ftplugin/json.vim1
-rwxr-xr-x.config/nvim/after/ftplugin/markdown.vim1
-rw-r--r--.config/nvim/after/syntax/antlr4.vim93
-rw-r--r--.config/nvim/after/syntax/jolie.vim59
-rwxr-xr-x.config/nvim/after/syntax/prr.vim22
-rw-r--r--.config/nvim/init.lua214
-rw-r--r--.config/nvim/lua/dap_conf.lua52
-rw-r--r--.config/nvim/lua/git.lua65
-rw-r--r--.config/nvim/lua/lsp_conf.lua114
-rw-r--r--.config/redshift.conf21
-rw-r--r--.config/rofi/config.rasi15
-rw-r--r--.config/starship.toml23
21 files changed, 0 insertions, 997 deletions
diff --git a/.config/.alacritty.toml b/.config/.alacritty.toml
deleted file mode 100644
index 23ea7cc..0000000
--- a/.config/.alacritty.toml
+++ /dev/null
@@ -1,63 +0,0 @@
-[colors.bright]
-black = "#6a6a6a"
-blue = "#ffaf00"
-cyan = "#00afaf"
-green = "#afd700"
-magenta = "#ffaf00"
-red = "#e74c3c"
-white = "#5f8787"
-yellow = "#f1c40f"
-
-[colors.cursor]
-cursor = "#808080"
-text = "#424242"
-
-[colors.normal]
-black = "#333333"
-blue = "#5fafd7"
-cyan = "#2ecc71"
-green = "#5faf00"
-magenta = "#808080"
-red = "#af005f"
-white = "#f2f2f2"
-yellow = "#f1c40f"
-
-[colors.primary]
-background = "#000000"
-foreground = "#f1f1f1"
-
-# [colors.primary]
-# background= "#ffffff"
-# foreground= "#1F2328"
-#
-# [colors.normal]
-# black= "#24292f"
-# red= "#cf222e"
-# green= "#116329"
-# yellow= "#4d2d00"
-# blue= "#0969da"
-# magenta= "#8250df"
-# cyan= "#1b7c83"
-# white= "#6e7781"
-#
-# [colors.bright]
-# black= "#57606a"
-# red= "#a40e26"
-# green= "#1a7f37"
-# yellow= "#633c01"
-# blue= "#218bff"
-# magenta= "#8250df"
-# cyan= "#1b7c83"
-# white= "#6e7781"
-
-[font]
-size = 12.5
-
-[font.normal]
-family = "FiraCode"
-style = "Mono"
-
-[shell]
-args = ["new"]
-program = "/usr/bin/tmux"
-# program = "/home/santo/.cargo/bin/zellij"
diff --git a/.config/i3/config b/.config/i3/config
deleted file mode 100644
index bd31c31..0000000
--- a/.config/i3/config
+++ /dev/null
@@ -1,174 +0,0 @@
-# Default modkey
-set $mod Mod4
-
-font pango:Fantasque Sans Mono 11
-
-# Start a terminal
-bindsym $mod+Return exec alacritty --config-file ~/.alacrittyi3.yml
-
-# Kill focused window
-bindsym $mod+Shift+q kill
-
-# Move between windows
-bindsym $mod+h focus left
-bindsym $mod+j focus down
-bindsym $mod+k focus up
-bindsym $mod+l focus right
-
-# Alternatively, you can use the cursor keys:
-bindsym $mod+Left focus left
-bindsym $mod+Down focus down
-bindsym $mod+Up focus up
-bindsym $mod+Right focus right
-
-# Move focused window
-bindsym $mod+Shift+h move left
-bindsym $mod+Shift+j move down
-bindsym $mod+Shift+k move up
-bindsym $mod+Shift+l move right
-
-# Alternatively, you can use the cursor keys:
-bindsym $mod+Shift+Left move left
-bindsym $mod+Shift+Down move down
-bindsym $mod+Shift+Up move up
-bindsym $mod+Shift+Right move right
-
-# Split in horizontal orientation
-bindsym $mod+Mod1+v split h
-
-# Split in vertical orientation
-bindsym $mod+Mod1+h split v
-
-# Enter fullscreen mode for the focused container
-bindsym $mod+f fullscreen toggle
-
-# Change container layout (stacked, tabbed, toggle split)
-bindsym $mod+s layout stacking
-bindsym $mod+w layout tabbed
-bindsym $mod+e layout toggle split
-
-# Toggle tiling / floating
-bindsym $mod+Shift+space floating toggle
-
-# Change focus between tiling / floating windows
-bindsym $mod+space focus mode_toggle
-
-# Focus the parent container
-bindsym $mod+a focus parent
-
-# Open d-menu
-# bindsym $mod+d exec dmenu_run
-bindsym $mod+d exec "rofi -show combi -combi-modi window,drun -matching normal -drun-match-fields name,exec"
-
-set $ws1 "1"
-set $ws2 "2"
-set $ws3 "3"
-set $ws4 "4"
-set $ws5 "5"
-set $ws6 "6"
-set $ws7 "7"
-set $ws8 "8"
-set $ws9 "9"
-set $ws10 "10"
-
-# switch to workspace
-bindsym $mod+1 workspace number $ws1
-bindsym $mod+2 workspace number $ws2
-bindsym $mod+3 workspace number $ws3
-bindsym $mod+4 workspace number $ws4
-bindsym $mod+5 workspace number $ws5
-bindsym $mod+6 workspace number $ws6
-bindsym $mod+7 workspace number $ws7
-bindsym $mod+8 workspace number $ws8
-bindsym $mod+9 workspace number $ws9
-bindsym $mod+0 workspace number $ws10
-
-# move focused container to workspace
-bindsym $mod+Shift+1 move container to workspace number $ws1
-bindsym $mod+Shift+2 move container to workspace number $ws2
-bindsym $mod+Shift+3 move container to workspace number $ws3
-bindsym $mod+Shift+4 move container to workspace number $ws4
-bindsym $mod+Shift+5 move container to workspace number $ws5
-bindsym $mod+Shift+6 move container to workspace number $ws6
-bindsym $mod+Shift+7 move container to workspace number $ws7
-bindsym $mod+Shift+8 move container to workspace number $ws8
-bindsym $mod+Shift+9 move container to workspace number $ws9
-bindsym $mod+Shift+0 move container to workspace number $ws10
-
-
-# Volume
-set $sink `pactl list short sinks | grep RUNNING | cut -f1`
-bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +5%
-bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5%
-bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle
-
-bindsym XF86MonBrightnessUp exec light -A 1 # increase screen brightness
-bindsym XF86MonBrightnessDown exec light -U 1 # decrease screen brightness
-
-# Screenshots
-set $screenshot-name `date +%d%m%Y-%H%M%S.png`
-bindsym Print exec "mate-screenshot -i"
-bindsym Shift+Print exec --no-startup-id mate-screenshot -a
-
-# Reload the configuration file
-bindsym $mod+Shift+c reload
-
-# Restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
-bindsym $mod+Shift+r restart
-
-# Resize window (you can also use the mouse for that)
-mode "resize"
-{
- # Resize with the arrow keys
- bindsym Left resize grow width 1 px or 1 ppt
- bindsym Down resize shrink height 1 px or 1 ppt
- bindsym Up resize grow height 1 px or 1 ppt
- bindsym Right resize shrink width 1 px or 1 ppt
-
- # Back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
-}
-
-bindsym $mod+r mode "resize"
-
-# set primary gruvbox colorscheme colors
-set $bg #282828
-set $red #cc241d
-set $green #98971a
-set $yellow #d79921
-set $blue #458588
-set $purple #b16286
-set $aqua #689d68
-set $gray #a89984
-set $darkgray #1d2021
-set $white #fbf1c7
-
-# Start i3blocks to display a workspace bar
-bar {
- font pango: DejaVuSansMono Nerd Font 9
- i3bar_command i3bar
- position bottom
- strip_workspace_numbers yes
- tray_output nonprimary
- status_command i3blocks
-
- colors {
- # bar background color
- background $bg
- # text color used for blocks that do not have a color specified.
- statusline #fafafa
- # workspaces section
- # border backgr. text
- focused_workspace $aqua $aqua $darkgray
- inactive_workspace $darkgray $darkgray $yellow
- active_workspace $darkgray $darkgray $yellow
- urgent_workspace $red $red $bg
- }
-}
-
-client.focused $darkgray $aqua #000000 $yellow $darkgray
-client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray
-client.unfocused $darkgray $darkgray $yellow $purple $darkgray
-client.urgent $darkgray $red $white $red $red
-
diff --git a/.config/i3blocks/config b/.config/i3blocks/config
deleted file mode 100644
index d099c7c..0000000
--- a/.config/i3blocks/config
+++ /dev/null
@@ -1,44 +0,0 @@
-command=/usr/share/i3blocks/$BLOCK_NAME
-separator_block_width=15
-
-[weather]
-command=curl -Ss 'https://wttr.in/Catania?0&T&Q' | cut -c 16- | head -2 | xargs echo
-interval=3600
-color=#A4C2F4
-
-[cputemp]
-command=sensors | grep edge | cut -d '+' -f 2 | cut -d ' ' -f 1
-interval=10
-label=🌡️
-
-[memory]
-label=MEM
-separator=false
-interval=30
-
-[disk]
-label=DISK
-interval=30
-
-[cpu_usage]
-label=CPU
-interval=10
-min_width=CPU: 100.00%
-
-[wifi]
-command=iwgetid -r | tr '\n' ' ' && grep $(iwgetid -m | awk '{ printf "%s", $1 }') /proc/net/wireless | awk '{ printf "%i%\n", int($3 * 100 / 70) }';exit 0 instance=wlp2s0
-interval=5
-label=
-
-[battery]
-command=i3_battery.sh
-interval=10
-
-[volume]
-command=pulsemixer --get-volume | cut -d " " -f 1; exit 0
-interval=1
-label=
-
-[time]
-command=date
-interval=1
diff --git a/.config/i3blocks/i3_battery.sh b/.config/i3blocks/i3_battery.sh
deleted file mode 100755
index 97ea493..0000000
--- a/.config/i3blocks/i3_battery.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-BAT=$(acpi -b | grep -E -o '[0-9][0-9]?%')
-CHECK_CHARGING=$(acpi -b | grep -E -o 'Charging')
-
-# Full and short texts
-echo "Battery: $BAT"
-echo "BAT: $BAT"
-
-if [ "$CHECK_CHARGING" != "" ]; then
- echo "#1abc9c"
- exit 0
-fi
-# Set urgent flag below 5% or use orange below 20%
-[ ${BAT%?} -le 5 ] && exit 33
-[ ${BAT%?} -le 35 ] && echo "#d35400"
-
-exit 0
diff --git a/.config/iamb/config.toml b/.config/iamb/config.toml
deleted file mode 100644
index 0999ca5..0000000
--- a/.config/iamb/config.toml
+++ /dev/null
@@ -1,14 +0,0 @@
-default_profile = "deb"
-
-[profiles.deb]
-user_id = "@santo:matrix.debian.social"
-url = "https://matrix.debian.social"
-rooms = []
-
-[macros.normal]
-"gc" = ":chats<Enter>"
-"v" = "<C-w>m"
-"ZZ" = "<Esc>:q<Enter>"
-
-[settings.notifications]
-enabled = true
diff --git a/.config/nvim/after/ftdetect/antlr4.vim b/.config/nvim/after/ftdetect/antlr4.vim
deleted file mode 100644
index d4d39a1..0000000
--- a/.config/nvim/after/ftdetect/antlr4.vim
+++ /dev/null
@@ -1 +0,0 @@
-autocmd BufEnter,BufNewFile *.g4 setf antlr4
diff --git a/.config/nvim/after/ftdetect/jolie.vim b/.config/nvim/after/ftdetect/jolie.vim
deleted file mode 100644
index efa43f7..0000000
--- a/.config/nvim/after/ftdetect/jolie.vim
+++ /dev/null
@@ -1 +0,0 @@
-au BufRead,BufNewFile *.ol,*.iol set filetype=jolie
diff --git a/.config/nvim/after/ftdetect/prr.vim b/.config/nvim/after/ftdetect/prr.vim
deleted file mode 100755
index 15a474c..0000000
--- a/.config/nvim/after/ftdetect/prr.vim
+++ /dev/null
@@ -1 +0,0 @@
-au BufNewFile,BufRead *.prr set filetype=prr
diff --git a/.config/nvim/after/ftplugin/dockerfile.vim b/.config/nvim/after/ftplugin/dockerfile.vim
deleted file mode 100755
index b388056..0000000
--- a/.config/nvim/after/ftplugin/dockerfile.vim
+++ /dev/null
@@ -1 +0,0 @@
-let g:indentLine_enabled = 0
diff --git a/.config/nvim/after/ftplugin/json.vim b/.config/nvim/after/ftplugin/json.vim
deleted file mode 100755
index b388056..0000000
--- a/.config/nvim/after/ftplugin/json.vim
+++ /dev/null
@@ -1 +0,0 @@
-let g:indentLine_enabled = 0
diff --git a/.config/nvim/after/ftplugin/markdown.vim b/.config/nvim/after/ftplugin/markdown.vim
deleted file mode 100755
index b388056..0000000
--- a/.config/nvim/after/ftplugin/markdown.vim
+++ /dev/null
@@ -1 +0,0 @@
-let g:indentLine_enabled = 0
diff --git a/.config/nvim/after/syntax/antlr4.vim b/.config/nvim/after/syntax/antlr4.vim
deleted file mode 100644
index 8f6c412..0000000
--- a/.config/nvim/after/syntax/antlr4.vim
+++ /dev/null
@@ -1,93 +0,0 @@
-if exists('b:current_syntax')
- finish
-endif
-
-command -nargs=* HiLink highlight link <args>
-
-syntax match antlr4EventId +[a-zA-Z_][a-zA-Z0-9_]*+ contained
-syntax match antlr4ParName +\<[a-z][a-zA-Z0-9_]*\>+ containedin=antlr4RHS
-syntax match antlr4LexName +\<[A-Z][a-zA-Z0-9_]*\>+ containedin=antlr4RHS
-syntax match antlr4Assign /[a-zA-Z]\++\?=/ containedin=antlr4RHS
-
-if exists('g:antlr4_highlight_punctuation')
- syntax match antlr4Punctuation +[\-():;]+
-endif
-
-syntax include @included syntax/java.vim
-
-syntax region antlr4RHS start=+:+ end=+;+ extend
-
-syntax region antlr4Embed start=+{+ end=+}?\?+ contains=@included,antlr4Variable keepend
- \ containedin=antlr4RHS
-syntax region antlr4Embed start=+\[+ end=+\]+ contains=@included,antlr4Variable keepend
-
-
-syntax match antlr4Repeat +[+*]+ containedin=antlr4RHS
-syntax match antlr4Condition +?+ containedin=antlr4RHS
-syntax match antlr4Option "|" containedin=antlr4RHS
-
-" Use specifically containedin=javaParenT so it will be highlighted inside
-" parens
-syntax match antlr4Variable contained +\$[a-zA-Z_][a-zA-Z0-9_]*+ containedin=javaParenT
-
-syntax match antlr4Keyword /@\(\(parser\|lexer\)::\)\?\(header\|members\)/
-syntax match antlr4Keyword /@after/
-
-syntax match antlr4Escape +\\[nrvt]+
-syntax match antlr4Escape +\\u[0-9a-fA-F]\{4}+
-syntax match antlr4Escape +\\u{[0-9a-fA-F]\{4}}+
-syntax match antlr4Escape +\\p{.\{-}}+
-
-syntax match antlr4SetEscape +\\-+ containedin=antlr4RHS
-
-syntax keyword antlr4Keyword grammar
-syntax keyword antlr4Keyword lexer parser options
-syntax keyword antlr4Keyword fragment tokens
-syntax keyword antlr4Keyword returns locals throws catch finally mode options
-
-syntax keyword antlr4Import import
-
-syntax keyword antlr4Operation skip more popMode mode pushMode type channel
- \ containedin=antlr4RHS
-
-syntax region antlr4Set start=+\[+ end=+\]+ contained
- \ contains=antlr4Escape,antlr4SetEscape containedin=antlr4RHS
-syntax region antlr4Attr start="<" end=">"
- \ containedin=antlr4RHS
-syntax region antlr4String start=+'+ end=+'+ containedin=antlr4RHS contains=antlr4Escape
-
-syntax region antlr4Comment start=+/\*+ end=+\*/+
- \ containedin=antlr4RHS
-syntax region antlr4Comment start=+//+ end=+$+
- \ containedin=antlr4RHS
-
-syntax region antlr4Event start=+#+ end=+$+
- \ containedin=antlr4RHS contains=antlr4EventId
-
-HiLink antlr4Comment Comment
-HiLink antlr4Keyword KeyWord
-HiLink antlr4ParName Type
-HiLink antlr4LexName Macro
-HiLink antlr4Attr Special
-HiLink antlr4Assign Statement
-HiLink antlr4Set Character
-HiLink antlr4String String
-
-if exists('g:antlr4_highlight_punctuation')
- HiLink antlr4Punctuation Operator
-endif
-
-HiLink antlr4Repeat Repeat
-HiLink antlr4Condition Conditional
-HiLink antlr4Option Delimiter
-HiLink antlr4Import PreProc
-HiLink antlr4Escape Special
-HiLink antlr4SetEscape antlr4Escape
-HiLink antlr4Operation Function
-HiLink antlr4EventId Function
-HiLink antlr4Annotation KeyWord
-HiLink antlr4Variable Special
-
-delcommand HiLink
-
-let b:current_syntax = 'antlr4'
diff --git a/.config/nvim/after/syntax/jolie.vim b/.config/nvim/after/syntax/jolie.vim
deleted file mode 100644
index c7b3a21..0000000
--- a/.config/nvim/after/syntax/jolie.vim
+++ /dev/null
@@ -1,59 +0,0 @@
-if exists("b:current_syntax")
- finish
-endif
-
-syn keyword jolieBoolean true false
-syn keyword jolieDefinitionTypes inputPort outputPort interface type define service
-syn keyword jolieKeyword location Location protocol Protocol interfaces Interfaces aggregates Aggregates redirects Redirects class Jolie JavaScript Java OneWay oneWay RequestResponse requestResponse execution
-syn keyword jolieOtherKeyword constants cH instanceof execution comp concurrent nullProcess single sequential main foreign java init cset is_defined embed embedded extender courier forward install undef include synchronized throws throw from import as
-syn keyword jolieConditional if else
-syn keyword jolieRepeat while for foreach until in
-syn keyword jolieException throw
-syn keyword jolieStatement forward scope provide
-syn keyword jolieType void bool int string long double any raw
-syn keyword jolieKeywordModifiers csets global
-syn match jolieOperators "(<<|&&|\|\||+|-|/|*|=|==|++|-|+=|-=|*=|/=|!|%=|%)"
-
-syn match jolieSpecialChar contained "\\."
-
-syn region jolieString start=+"+ end=+"+ contains=jolieSpecialChar
-
-syn match jolieNumber "\<\d\+\>"
-
-syn match jolieMethodInvocation "\<\(\w\+\)@\(\w\+\)\>" contains=jolieMethodName,jolieClassName
-
-syn match jolieMethodName "\w\+@"me=e-1 contained
-syn match jolieClassName "@\w\+\>"ms=s+1 contained
-
-syn match jolieMethodName2 "\(\w\+\)("
-
-syn keyword jolieTodo contained TODO FIXME
-syn region jolieComment start="/\*" end="\*/" contains=jolieTodo
-syn match jolieLineComment "//.*"
-
-let b:current_syntax = "jolie"
-
-hi def link jolieBoolean Boolean
-hi def link jolieComment Comment
-hi def link jolieLineComment Comment
-hi def link jolieDefinitionTypes Keyword
-hi def link jolieKeyword Keyword
-hi def link jolieOtherKeyword Keyword
-
-hi def link jolieOperators Operator
-
-hi def link jolieConditional Conditional
-hi def link jolieRepeat Repeat
-hi def link jolieException Exception
-hi def link jolieStatement Statement
-hi def link jolieType Type
-
-hi def link jolieKeywordModifiers StorageClass
-
-hi def link jolieString String
-
-hi def link jolieNumber Number
-
-hi def link jolieMethodName Function
-hi def link jolieClassName Type
-hi def link jolieMethodName2 Function
diff --git a/.config/nvim/after/syntax/prr.vim b/.config/nvim/after/syntax/prr.vim
deleted file mode 100755
index 43a0557..0000000
--- a/.config/nvim/after/syntax/prr.vim
+++ /dev/null
@@ -1,22 +0,0 @@
-" Vim syntax file
-" Language: prr
-" Maintainer: Daniel Xu <dxu@dxuuu.xyz>
-" Last Change: 2022 Mar 25
-" Credits: Bram Moolenaar <Bram@vim.org>
-"
-" This version is copied and edited from diff.vim
-
-" Check whether an earlier file has defined a syntax already
-if exists("b:current_syntax")
- finish
-endif
-
-syn match diffAdded "^> +.*"
-syn match diffRemoved "^> -.*"
-
-" Define the default highlighting.
-" Only used when an item doesn't have highlighting yet
-hi def link diffAdded Type
-hi def link diffRemoved Statement
-
-let b:current_syntax = "prr"
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
deleted file mode 100644
index 8415c94..0000000
--- a/.config/nvim/init.lua
+++ /dev/null
@@ -1,214 +0,0 @@
--- Auto-reload Neovim configuration on save
-vim.cmd [[
- augroup packer_user_config
- autocmd!
- autocmd BufWritePost init.lua source <afile> | PackerCompile
- augroup end
-]]
-
-require('packer').startup(function(use)
- -- Packer can manage itself
- use 'wbthomason/packer.nvim'
-
- -- use 'cespare/vim-toml' -- TOML syntax highlighting
- use 'rust-lang/rust.vim' -- Rust language support
- use 'nvim-lua/plenary.nvim' -- Lua utilities for plugins
- use 'lewis6991/gitsigns.nvim' -- Git integration (show signs in gutter)
- use 'kyazdani42/nvim-web-devicons'-- File icons
- use 'mg979/vim-visual-multi' -- Multi-cursor support
- use 'tpope/vim-fugitive' -- Git wrapper for commands like :Git
- use 'ap/vim-css-color' -- Show color preview for CSS colors
- -- use 'lukas-reineke/indent-blankline.nvim' -- Display vertical indentation lines
- use 'google/vim-searchindex' -- Show search match count
- use 'numToStr/Comment.nvim' -- Easily comment/uncomment lines
- -- use 'togglebyte/togglerust' -- Rust debugging tools
- -- use 'chriskempson/base16-vim' -- Base16 color schemes
- use 'NLKNguyen/papercolor-theme' -- PaperColor theme
- use 'nvim-telescope/telescope.nvim' -- Fuzzy finder
- use 'neovim/nvim-lspconfig' -- LSP configuration for multiple languages
- use 'hrsh7th/nvim-cmp' -- Autocompletion engine
- use 'hrsh7th/cmp-nvim-lsp' -- LSP source for nvim-cmp
- use 'saadparwaiz1/cmp_luasnip' -- Snippet completion for nvim-cmp
- use 'L3MON4D3/LuaSnip' -- Snippet engine
- use 'kyazdani42/nvim-tree.lua' -- File explorer
- use 'ray-x/lsp_signature.nvim' -- Show function signatures as you type
- use 'folke/todo-comments.nvim' -- Highlight and search TODO comments
- use 'saecki/crates.nvim' -- Rust crate version management
- use {
- 'nvim-treesitter/nvim-treesitter',
- run = ':TSUpdate' -- Update treesitter parsers
- }
- use 'folke/trouble.nvim' -- Diagnostics and references list
- use 'folke/lsp-colors.nvim' -- Adds missing LSP diagnostics highlight groups
- use 'sindrets/diffview.nvim' -- Git diff and history viewer
-
- use 'mfussenegger/nvim-dap' -- Debug Adapter Protocol client implementation
- use 'leoluz/nvim-dap-go' -- Neovim DAP extension for Go
- use 'nvim-neotest/nvim-nio'
- use 'rcarriga/nvim-dap-ui'
-
- -- Automatically set up the configuration after cloning packer.nvim
- if packer_bootstrap then
- require('packer').sync()
- end
-end)
-
--- General Neovim settings
-
--- Configure completion options (menu, menuone, noselect)
-vim.opt.completeopt = "menu,menuone,noselect"
-
--- Enable system clipboard access
-vim.opt.clipboard = "unnamedplus"
-
--- Enable mouse support in all modes
-vim.opt.mouse = "a"
-
--- Enable command-line completion features
-vim.opt.wildmenu = true
-vim.opt.wildmode = { "longest", "list", "full" }
-
--- Ignore certain file types when using wildmenu for file navigation
-vim.opt.wildignore = "*.png,*.jpg,*.gif,*.swp,*.o,*.pyc,vendor"
-
--- Show absolute line numbers
-vim.opt.number = true
-
--- Show relative line numbers
-vim.opt.relativenumber = true
-
--- Set text width to 80 characters
-vim.opt.textwidth = 80
-
--- Highlight a column at 80 characters
-vim.opt.colorcolumn = "80"
-
--- Disable line wrapping
-vim.opt.wrap = false
-
--- Set tab width and shift width to 4 spaces
-vim.opt.tabstop = 4
-vim.opt.shiftwidth = 4
-
--- Use spaces instead of tabs
-vim.opt.expandtab = true
-
--- Automatically indent new lines to match the previous line
-vim.opt.autoindent = true
-
--- Automatically reload files if they are modified outside of Neovim
-vim.opt.autoread = true
-
--- Set UTF-8 as the default encoding
-vim.opt.encoding = "UTF-8"
-
--- Set the history size for command line and search
-vim.opt.history = 1000
-
--- Highlight search matches
-vim.opt.hlsearch = true
-
--- Incrementally search while typing
-vim.opt.incsearch = true
-
--- Disable backup file creation
-vim.opt.backup = false
-
--- Set the status line to always be visible
-vim.opt.laststatus = 2
-
--- Show invisible characters (e.g., tabs, spaces, etc.)
-vim.opt.list = true
-
--- Define characters for different invisible characters
-vim.opt.listchars = { eol = '⏎', tab = '»·', trail = 'ˑ', nbsp = '⎵' }
-
--- Use indent-based folding
-vim.opt.foldmethod = "indent"
-
--- Open vertical splits to the right of the current window
-vim.opt.splitright = true
-
--- Open horizontal splits below the current window
-vim.opt.splitbelow = true
-
--- Optimize screen redrawing for performance
-vim.opt.lazyredraw = true
-
--- Disable swapfile creation
-vim.opt.swapfile = false
-
--- Enable 24-bit RGB color in the terminal
-vim.opt.termguicolors = true
-
--- Set background to dark mode
-vim.opt.background = "dark"
-
--- Highlight the current line
-vim.opt.cursorline = true
-
--- **Highlight settings**
--- Set custom highlights for various UI components
-vim.cmd('colorscheme PaperColor')
-vim.cmd [[
- highlight Normal guibg=#000000
- highlight NonText guibg=#000000
- highlight LineNr guibg=#000000
- highlight CursorLine guibg=#000000
- highlight CursorLineNr guibg=#000000 guifg=Yellow
- highlight StatusLine guibg=#000000 guifg=Yellow
- highlight StatusLineNC guibg=#000000 guifg=Yellow
- highlight SignColumn guibg=#000000
- highlight GitGutterChange guibg=#000000
- highlight GitGutterAdd guibg=#000000
- highlight GitGutterDelete guibg=#000000
-]]
-
--- Keybindings
-vim.g.mapleader = "," -- Set the leader key to ","
-vim.api.nvim_set_keymap('n', 'j', 'gj', { noremap = true }) -- Move down visually wrapped lines
-vim.api.nvim_set_keymap('n', 'k', 'gk', { noremap = true }) -- Move up visually wrapped lines
-
----- Buffers
-vim.api.nvim_set_keymap('n', ']b', ':bnext<CR>', { noremap = true, silent = true }) -- Move to the next buffer
-vim.api.nvim_set_keymap('n', '[b', ':bprev<CR>', { noremap = true, silent = true }) -- Move to the previous buffer
-vim.api.nvim_set_keymap('n', '<leader>b', '<cmd>Telescope buffers<CR>', { noremap = true, silent = true }) -- List and switch to buffers using Telescope
-
----- Tabs
-vim.api.nvim_set_keymap('n', 'tn', ':tabnew<CR>', { noremap = true, silent = true })
-vim.api.nvim_set_keymap('n', ']t', ':tabn<CR>', { noremap = true, silent = true }) -- Move to the next tab
-vim.api.nvim_set_keymap('n', '[t', ':tabp<CR>', { noremap = true, silent = true }) -- Move to the previous tab
-
-vim.api.nvim_set_keymap('n', '<leader>o', ':only<CR>', { noremap = true }) -- Close all other windows
-vim.api.nvim_set_keymap('n', '<C-t>', ':NvimTreeToggle<CR>', { noremap = true }) -- Toggle NvimTree file explorer
-vim.api.nvim_set_keymap('n', '<leader>pa', ':set paste<CR>', { noremap = true }) -- Enable paste mode
-vim.api.nvim_set_keymap('n', '<leader>npa', ':set nopaste<CR>', { noremap = true }) -- Disable paste mode
-vim.api.nvim_set_keymap('n', '<leader>cr', ':Cargo run<CR>', { noremap = true }) -- Run `cargo run` for Rust projects
-vim.api.nvim_set_keymap('n', '<leader>xx', '<cmd>TroubleToggle<cr>', { noremap = true }) -- Toggle Trouble diagnostic window
-vim.api.nvim_set_keymap('n', '<leader>ff', '<cmd>Telescope find_files<cr>', { noremap = true }) -- Find files with Telescope
-vim.api.nvim_set_keymap('n', '<leader>fg', '<cmd>Telescope live_grep<cr>', { noremap = true }) -- Live grep with Telescope
-vim.api.nvim_set_keymap('n', '<leader>fh', '<cmd>Telescope help_tags<cr>', { noremap = true }) -- Search help tags with Telescope
-vim.api.nvim_set_keymap('n', '<C-i>', ':lua vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())<CR>', { noremap = true })
-
--- Custom command aliases for Diffview
-vim.api.nvim_create_user_command('Do', 'DiffviewOpen', {})
-vim.api.nvim_create_user_command('Dc', 'DiffviewClose', {})
-vim.api.nvim_create_user_command('Dh', 'DiffviewFileHistory', {})
-
-
--- Plugin configuration
-require('nvim-tree').setup { actions = { open_file = { quit_on_open = true } } }
-require('todo-comments').setup {}
-require('crates').setup {}
-require('nvim-treesitter.configs').setup { highlight = { enable = true } }
-require('lsp-colors').setup {}
--- require("ibl").setup { indent = {char = "¦"} }
--- vim.cmd.highlight('clear @ibl.scope.underline.1')
-
--- General settings
-require('git') -- Load git-related settings
-require('lsp_conf') -- Load LSP configuration
-require('dap_conf')
-
--- Set up language client for Go
-vim.g.LanguageClient_serverCommands = { go = { 'gopls' } }
diff --git a/.config/nvim/lua/dap_conf.lua b/.config/nvim/lua/dap_conf.lua
deleted file mode 100644
index b3cee89..0000000
--- a/.config/nvim/lua/dap_conf.lua
+++ /dev/null
@@ -1,52 +0,0 @@
-local dap, dapui = require('dap'), require('dapui')
-local dapgo = require('dap-go')
-dapui.setup()
-dapgo.setup()
-dap.listeners.before.attach.dapui_config = function()
- dapui.open()
-end
-dap.listeners.before.launch.dapui_config = function()
- dapui.open()
-end
-
-dap.adapters.gdb = {
- type = "executable",
- command = "gdb",
- args = { "--interpreter=dap", "--eval-command", "set print pretty on" }
-}
-
-local configurations = {'c', 'cpp', 'rust'}
-
-for _, conf in ipairs(configurations) do
- dap.configurations[conf] = {
- {
- name = "Launch",
- type = "gdb",
- request = "launch",
- program = function()
- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
- end,
- cwd = "${workspaceFolder}",
- stopAtBeginningOfMainSubprogram = false,
- },
- }
-end
-
--- Include the next few lines until the comment only if you feel you need it
-dap.listeners.before.event_terminated.dapui_config = function()
- dapui.close()
-end
-dap.listeners.before.event_exited.dapui_config = function()
- dapui.close()
-end
--- Include everything after this
-
-
-vim.keymap.set('n', '<F5>', function() require('dap').continue() end)
-vim.keymap.set('n', '<F10>', function() require('dap').step_over() end)
-vim.keymap.set('n', '<F11>', function() require('dap').step_into() end)
-vim.keymap.set('n', '<F12>', function() require('dap').step_out() end)
-vim.keymap.set('n', '<C-K>', function() require('dap').toggle_breakpoint() end)
-vim.api.nvim_create_user_command('DapRepeat',function() require('dap').run_last() end, {})
-vim.api.nvim_create_user_command('DapOpen',function() dapui.open() end, {})
-vim.api.nvim_create_user_command('DapClose',function() dapui.close() end, {})
diff --git a/.config/nvim/lua/git.lua b/.config/nvim/lua/git.lua
deleted file mode 100644
index da6bbdd..0000000
--- a/.config/nvim/lua/git.lua
+++ /dev/null
@@ -1,65 +0,0 @@
-require('gitsigns').setup {
- signs = {
- add = { text = '+' },
- change = { text = '~' },
- delete = { text = '-' },
- topdelete = { text = '-' },
- changedelete = { text = '~' },
- untracked = { text = '┆' },
- },
- signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
- numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
- linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
- word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
- watch_gitdir = {
- follow_files = true
- },
- attach_to_untracked = true,
- current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
- current_line_blame_opts = {
- virt_text = true,
- virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
- delay = 1000,
- ignore_whitespace = false,
- },
- current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
- sign_priority = 6,
- update_debounce = 100,
- status_formatter = nil, -- Use default
- max_file_length = 40000, -- Disable if file is longer than this (in lines)
- preview_config = {
- -- Options passed to nvim_open_win
- border = 'single',
- style = 'minimal',
- relative = 'cursor',
- row = 0,
- col = 1
- },
- on_attach = function(bufnr)
- local gs = package.loaded.gitsigns
- local function map(mode, l, r, opts)
- opts = opts or {}
- opts.buffer = bufnr
- vim.keymap.set(mode, l, r, opts)
- end
-
- map('n', ']c', function()
- if vim.wo.diff then return ']c' end
- vim.schedule(function() gs.next_hunk() end)
- return '<Ignore>'
- end, {expr=true})
-
- map('n', '[c', function()
- if vim.wo.diff then return '[c' end
- vim.schedule(function() gs.prev_hunk() end)
- return '<Ignore>'
- end, {expr=true})
-
- map('n', 'hs', gs.stage_hunk)
- map('v', 'hs', function() gs.stage_hunk {vim.fn.line('.'), vim.fn.line('v')} end)
- map('n', 'hS', gs.stage_buffer)
- map('n', 'hu', gs.undo_stage_hunk)
- map('n', 'hp', gs.preview_hunk)
- map('n', 'hB', gs.blame_line)
- end
-}
diff --git a/.config/nvim/lua/lsp_conf.lua b/.config/nvim/lua/lsp_conf.lua
deleted file mode 100644
index a93dc5b..0000000
--- a/.config/nvim/lua/lsp_conf.lua
+++ /dev/null
@@ -1,114 +0,0 @@
-local nvim_lsp = require('lspconfig')
-local trouble = require("trouble")
-
-local capabilities = require("cmp_nvim_lsp").default_capabilities()
-
--- Redefine LSP diagnostic signs
-local signs = { Error = 'E', Warning = 'W', Hint = 'H', Information = 'I' }
-
-for type, icon in pairs(signs) do
- local hl = 'DiagnosticSign' .. type
- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = '' })
-end
-
-local opts = { noremap=true, silent=true }
-
--- Setup lsp_signature for function signature help
-require "lsp_signature".setup()
-
--- Common on_attach function to handle keymaps and settings for all LSPs
-local common_on_attach = function(client, bufnr)
- -- Key mappings
- vim.api.nvim_buf_set_keymap(bufnr, "n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>", opts)
- vim.api.nvim_buf_set_keymap(bufnr, "n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts)
- vim.api.nvim_buf_set_keymap(bufnr, "n", "ga", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
- vim.api.nvim_buf_set_keymap(bufnr, "n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts)
- vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts)
- -- Use vim.diagnostic.open_float for showing line diagnostics (replacing deprecated call)
- vim.api.nvim_buf_set_keymap(bufnr, "n", "<space>e", "<cmd>lua vim.diagnostic.open_float()<CR>", opts)
- vim.keymap.set('n', '<A-f>', '<cmd>lua vim.lsp.buf.format {async = true}<cr>', opts)
-
- -- Autoformat on save
- vim.cmd("autocmd BufWritePre <buffer> lua vim.lsp.buf.format {async = true}")
-end
-
--- LSP servers setup
-local servers = {
- 'clangd',
- 'gopls',
- 'jdtls',
- 'metals',
- 'ocamllsp',
- 'ruff_lsp',
- 'rust_analyzer',
-}
-
-capabilities.offsetEncoding = { "utf-16" }
-
-for _, lsp in ipairs(servers) do
- nvim_lsp[lsp].setup {
- capabilities = capabilities,
- on_attach = common_on_attach,
- flags = {
- debounce_text_changes = 150,
- }
- }
-end
-
-nvim_lsp.ts_ls.setup {
- capabilities = capabilities,
- on_attach = common_on_attach,
- filetypes = { "typescript", "typescriptreact", "typescript.tsx" },
- cmd = { "typescript-language-server", "--stdio" }
-}
-
-vim.lsp.inlay_hint.enable(true, { 0 })
-
--- Trouble setup
-trouble.setup({
- use_diagnostic_signs = true,
- auto_close = true,
- auto_open = false
-})
-
--- nvim-cmp setup for autocompletion
-local luasnip = require 'luasnip'
-local cmp = require 'cmp'
-cmp.setup {
- snippet = {
- expand = function(args)
- luasnip.lsp_expand(args.body)
- end,
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-d>'] = cmp.mapping.scroll_docs(-4),
- ['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-Space>'] = cmp.mapping.complete(),
- ['<CR>'] = cmp.mapping.confirm {
- behavior = cmp.ConfirmBehavior.Replace,
- select = true,
- },
- ['<Tab>'] = cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_next_item()
- elseif luasnip.expand_or_jumpable() then
- luasnip.expand_or_jump()
- else
- fallback()
- end
- end, { 'i', 's' }),
- ['<S-Tab>'] = cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_prev_item()
- elseif luasnip.jumpable(-1) then
- luasnip.jump(-1)
- else
- fallback()
- end
- end, { 'i', 's' }),
- }),
- sources = {
- { name = 'nvim_lsp' },
- { name = 'luasnip' },
- },
-}
diff --git a/.config/redshift.conf b/.config/redshift.conf
deleted file mode 100644
index 7d76847..0000000
--- a/.config/redshift.conf
+++ /dev/null
@@ -1,21 +0,0 @@
-[redshift]
-
-temp-day=5700
-temp-night=4500
-
-fade=1
-
-; Custom dawn/dusk intervals.
-dawn-time=6:00-7:45
-dusk-time=20:00-21:00
-
-gamma-day=1
-gamma-night=0.8
-
-location-provider=manual
-
-adjustment-method=randr
-
-[manual]
-lat=37.46
-lon=15.05
diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi
deleted file mode 100644
index 55fb62d..0000000
--- a/.config/rofi/config.rasi
+++ /dev/null
@@ -1,15 +0,0 @@
-configuration {
- modi: "run,combi";
- cycle: true;
- show-icons: true;
- matching: "glob";
- width: 40;
- columns: 1;
- location: 0;
- padding: 50;
- font: "UbuntuMono Mono 12";
- hide-scrollbar: true;
- sidebar-mode: true;
-}
-
-@theme "gruvbox-dark-hard"
diff --git a/.config/starship.toml b/.config/starship.toml
deleted file mode 100644
index 344b069..0000000
--- a/.config/starship.toml
+++ /dev/null
@@ -1,23 +0,0 @@
-add_newline = false
-
-[directory]
-truncation_length = 15
-style = "cyan"
-
-[line_break]
-disabled = true
-
-[custom.docker]
-description = "Shows the docker symbol if the current directory has Dockerfile or docker-compose.yml files"
-command = "echo 🐳"
-files = ["Dockerfile", "docker-compose.yml", "docker-compose.yaml"]
-when = """ command -v docker &> /dev/null; exit (echo $?); """
-
-[custom.ssh_keys]
-description = "SSH key count"
-when = "ssh-add -l | grep -v -q 'no identities'"
-command = "ssh-add -l | grep -v 'no identities' | wc -l"
-format = "$symbol[$output]($style) "
-shell = ["bash", "--noprofile", "--norc"]
-symbol = "🔑"
-style = "bold fg:green"