Compare commits
19 Commits
b192718027
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4def2c96e7 | ||
|
|
bfe91a5a67 | ||
|
|
b4235351fa | ||
|
|
aeeb00aaa9 | ||
|
|
46c48602f6 | ||
|
|
56ae2cd201 | ||
|
|
0b238f52ef | ||
|
|
221c1b1593 | ||
|
|
77e14274ae | ||
|
|
a94698038c | ||
|
|
399f3ef876 | ||
|
|
d66f51c324 | ||
|
|
a45295db1c | ||
| 627ec37f12 | |||
| 3208450045 | |||
| 1b864affa6 | |||
|
|
7fe71f1113 | ||
| 80974aa9dc | |||
|
|
b8f825ea80 |
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,6 +1,3 @@
|
|||||||
[submodule "tmux/.tmux"]
|
[submodule "tmux/.tmux"]
|
||||||
path = tmux/.tmux
|
path = tmux/.tmux
|
||||||
url = https://github.com/gpakosz/.tmux.git
|
url = https://github.com/gpakosz/.tmux.git
|
||||||
[submodule "neovim/kickstart"]
|
|
||||||
path = neovim/kickstart
|
|
||||||
url = https://github.com/nvim-lua/kickstart.nvim.git
|
|
||||||
|
|||||||
120
fuzzel.ini
Normal file
120
fuzzel.ini
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
# output=<not set>
|
||||||
|
font=NotoSans Nerd Font
|
||||||
|
# dpi-aware=auto
|
||||||
|
# use-bold=no
|
||||||
|
# prompt="> "
|
||||||
|
# placeholder=
|
||||||
|
# icon-theme=hicolor
|
||||||
|
# icons-enabled=yes
|
||||||
|
# hide-before-typing=no
|
||||||
|
# fields=filename,name,generic
|
||||||
|
# password-character=*
|
||||||
|
# filter-desktop=no
|
||||||
|
# match-mode=fzf
|
||||||
|
# sort-result=yes
|
||||||
|
# match-counter=no
|
||||||
|
# delayed-filter-ms=300
|
||||||
|
# delayed-filter-limit=20000
|
||||||
|
# show-actions=no
|
||||||
|
# terminal=$TERMINAL -e # Note: you cannot actually use environment variables here
|
||||||
|
# launch-prefix=<not set>
|
||||||
|
# list-executables-in-path=no
|
||||||
|
|
||||||
|
# anchor=center
|
||||||
|
# x-margin=0
|
||||||
|
# y-margin=0
|
||||||
|
# lines=15
|
||||||
|
width=80
|
||||||
|
# tabs=8
|
||||||
|
# horizontal-pad=40
|
||||||
|
# vertical-pad=8
|
||||||
|
# inner-pad=0
|
||||||
|
|
||||||
|
# image-size-ratio=0.5
|
||||||
|
|
||||||
|
# line-height=<use font metrics>
|
||||||
|
# letter-spacing=0
|
||||||
|
|
||||||
|
# layer=overlay
|
||||||
|
# keyboard-focus=on-demand
|
||||||
|
# exit-on-keyboard-focus-loss=yes
|
||||||
|
|
||||||
|
# cache=<not set>
|
||||||
|
|
||||||
|
# render-workers=<number of logical CPUs>
|
||||||
|
# match-workers=<number of logical CPUs>
|
||||||
|
|
||||||
|
# import catppuccin
|
||||||
|
include=~/.config/fuzzel/themes/catppuccin-macchiato/sky.ini
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
# background=fdf6e3ff
|
||||||
|
# text=657b83ff
|
||||||
|
# prompt=586e75ff
|
||||||
|
# placeholder=93a1a1ff
|
||||||
|
# input=657b83ff
|
||||||
|
# match=cb4b16ff
|
||||||
|
# selection=eee8d5ff
|
||||||
|
# selection-text=586e75ff
|
||||||
|
# selection-match=cb4b16ff
|
||||||
|
# counter=93a1a1ff
|
||||||
|
# border=002b36ff
|
||||||
|
|
||||||
|
[border]
|
||||||
|
width=4
|
||||||
|
# radius=10
|
||||||
|
|
||||||
|
[dmenu]
|
||||||
|
# mode=text # text|index
|
||||||
|
# exit-immediately-if-empty=no
|
||||||
|
|
||||||
|
[key-bindings]
|
||||||
|
# cancel=Escape Control+g Control+c Control+bracketleft
|
||||||
|
# execute=Return KP_Enter Control+y
|
||||||
|
# execute-or-next=Tab
|
||||||
|
# execute-input=Shift+Return Shift+KP_Enter
|
||||||
|
# cursor-left=Left Control+b
|
||||||
|
# cursor-left-word=Control+Left Mod1+b
|
||||||
|
# cursor-right=Right Control+f
|
||||||
|
# cursor-right-word=Control+Right Mod1+f
|
||||||
|
# cursor-home=Home Control+a
|
||||||
|
# cursor-end=End Control+e
|
||||||
|
# delete-prev=BackSpace Control+h
|
||||||
|
# delete-prev-word=Mod1+BackSpace Control+BackSpace Control+w
|
||||||
|
# delete-line-backward=Control+u
|
||||||
|
# delete-next=Delete KP_Delete Control+d
|
||||||
|
# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
|
||||||
|
# delete-line-forward=Control+k
|
||||||
|
# prev=Up Control+p
|
||||||
|
# prev-with-wrap=ISO_Left_Tab
|
||||||
|
# prev-page=Page_Up KP_Page_Up
|
||||||
|
# next=Down Control+n
|
||||||
|
# next-with-wrap=none
|
||||||
|
# next-page=Page_Down KP_Page_Down
|
||||||
|
# expunge=Shift+Delete
|
||||||
|
# clipboard-paste=Control+v XF86Paste
|
||||||
|
# primary-paste=Shift+Insert Shift+KP_Insert
|
||||||
|
|
||||||
|
# custom-N: *dmenu mode only*. Like execute, but with a non-zero
|
||||||
|
# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
|
||||||
|
# with 12, and so on.
|
||||||
|
|
||||||
|
# custom-1=Mod1+1
|
||||||
|
# custom-2=Mod1+2
|
||||||
|
# custom-3=Mod1+3
|
||||||
|
# custom-4=Mod1+4
|
||||||
|
# custom-5=Mod1+5
|
||||||
|
# custom-6=Mod1+6
|
||||||
|
# custom-7=Mod1+7
|
||||||
|
# custom-8=Mod1+8
|
||||||
|
# custom-9=Mod1+9
|
||||||
|
# custom-10=Mod1+0
|
||||||
|
# custom-11=Mod1+exclam
|
||||||
|
# custom-12=Mod1+at
|
||||||
|
# custom-13=Mod1+numbersign
|
||||||
|
# custom-14=Mod1+dollar
|
||||||
|
# custom-15=Mod1+percent
|
||||||
|
# custom-16=Mod1+dead_circumflex
|
||||||
|
# custom-17=Mod1+ampersand
|
||||||
|
# custom-18=Mod1+asterix
|
||||||
|
# custom-19=Mod1+parentleft
|
||||||
120
fuzzel/fuzzel.ini
Normal file
120
fuzzel/fuzzel.ini
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
# output=<not set>
|
||||||
|
font=NotoSans Nerd Font
|
||||||
|
# dpi-aware=auto
|
||||||
|
# use-bold=no
|
||||||
|
# prompt="> "
|
||||||
|
# placeholder=
|
||||||
|
# icon-theme=hicolor
|
||||||
|
# icons-enabled=yes
|
||||||
|
# hide-before-typing=no
|
||||||
|
# fields=filename,name,generic
|
||||||
|
# password-character=*
|
||||||
|
# filter-desktop=no
|
||||||
|
# match-mode=fzf
|
||||||
|
# sort-result=yes
|
||||||
|
# match-counter=no
|
||||||
|
# delayed-filter-ms=300
|
||||||
|
# delayed-filter-limit=20000
|
||||||
|
# show-actions=no
|
||||||
|
# terminal=$TERMINAL -e # Note: you cannot actually use environment variables here
|
||||||
|
# launch-prefix=<not set>
|
||||||
|
# list-executables-in-path=no
|
||||||
|
|
||||||
|
# anchor=center
|
||||||
|
# x-margin=0
|
||||||
|
# y-margin=0
|
||||||
|
# lines=15
|
||||||
|
width=80
|
||||||
|
# tabs=8
|
||||||
|
# horizontal-pad=40
|
||||||
|
# vertical-pad=8
|
||||||
|
# inner-pad=0
|
||||||
|
|
||||||
|
# image-size-ratio=0.5
|
||||||
|
|
||||||
|
# line-height=<use font metrics>
|
||||||
|
# letter-spacing=0
|
||||||
|
|
||||||
|
# layer=overlay
|
||||||
|
# keyboard-focus=on-demand
|
||||||
|
# exit-on-keyboard-focus-loss=yes
|
||||||
|
|
||||||
|
# cache=<not set>
|
||||||
|
|
||||||
|
# render-workers=<number of logical CPUs>
|
||||||
|
# match-workers=<number of logical CPUs>
|
||||||
|
|
||||||
|
# import catppuccin
|
||||||
|
include=~/.config/fuzzel/themes/catppuccin-macchiato/sky.ini
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
# background=fdf6e3ff
|
||||||
|
# text=657b83ff
|
||||||
|
# prompt=586e75ff
|
||||||
|
# placeholder=93a1a1ff
|
||||||
|
# input=657b83ff
|
||||||
|
# match=cb4b16ff
|
||||||
|
# selection=eee8d5ff
|
||||||
|
# selection-text=586e75ff
|
||||||
|
# selection-match=cb4b16ff
|
||||||
|
# counter=93a1a1ff
|
||||||
|
# border=002b36ff
|
||||||
|
|
||||||
|
[border]
|
||||||
|
width=4
|
||||||
|
# radius=10
|
||||||
|
|
||||||
|
[dmenu]
|
||||||
|
# mode=text # text|index
|
||||||
|
# exit-immediately-if-empty=no
|
||||||
|
|
||||||
|
[key-bindings]
|
||||||
|
# cancel=Escape Control+g Control+c Control+bracketleft
|
||||||
|
# execute=Return KP_Enter Control+y
|
||||||
|
# execute-or-next=Tab
|
||||||
|
# execute-input=Shift+Return Shift+KP_Enter
|
||||||
|
# cursor-left=Left Control+b
|
||||||
|
# cursor-left-word=Control+Left Mod1+b
|
||||||
|
# cursor-right=Right Control+f
|
||||||
|
# cursor-right-word=Control+Right Mod1+f
|
||||||
|
# cursor-home=Home Control+a
|
||||||
|
# cursor-end=End Control+e
|
||||||
|
# delete-prev=BackSpace Control+h
|
||||||
|
# delete-prev-word=Mod1+BackSpace Control+BackSpace Control+w
|
||||||
|
# delete-line-backward=Control+u
|
||||||
|
# delete-next=Delete KP_Delete Control+d
|
||||||
|
# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
|
||||||
|
# delete-line-forward=Control+k
|
||||||
|
# prev=Up Control+p
|
||||||
|
# prev-with-wrap=ISO_Left_Tab
|
||||||
|
# prev-page=Page_Up KP_Page_Up
|
||||||
|
# next=Down Control+n
|
||||||
|
# next-with-wrap=none
|
||||||
|
# next-page=Page_Down KP_Page_Down
|
||||||
|
# expunge=Shift+Delete
|
||||||
|
# clipboard-paste=Control+v XF86Paste
|
||||||
|
# primary-paste=Shift+Insert Shift+KP_Insert
|
||||||
|
|
||||||
|
# custom-N: *dmenu mode only*. Like execute, but with a non-zero
|
||||||
|
# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
|
||||||
|
# with 12, and so on.
|
||||||
|
|
||||||
|
# custom-1=Mod1+1
|
||||||
|
# custom-2=Mod1+2
|
||||||
|
# custom-3=Mod1+3
|
||||||
|
# custom-4=Mod1+4
|
||||||
|
# custom-5=Mod1+5
|
||||||
|
# custom-6=Mod1+6
|
||||||
|
# custom-7=Mod1+7
|
||||||
|
# custom-8=Mod1+8
|
||||||
|
# custom-9=Mod1+9
|
||||||
|
# custom-10=Mod1+0
|
||||||
|
# custom-11=Mod1+exclam
|
||||||
|
# custom-12=Mod1+at
|
||||||
|
# custom-13=Mod1+numbersign
|
||||||
|
# custom-14=Mod1+dollar
|
||||||
|
# custom-15=Mod1+percent
|
||||||
|
# custom-16=Mod1+dead_circumflex
|
||||||
|
# custom-17=Mod1+ampersand
|
||||||
|
# custom-18=Mod1+asterix
|
||||||
|
# custom-19=Mod1+parentleft
|
||||||
12
fuzzel/themes/catppuccin-frappe/blue.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/blue.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=8caaeeff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=8caaeeff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=8caaeeff
|
||||||
12
fuzzel/themes/catppuccin-frappe/flamingo.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/flamingo.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=eebebeff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=eebebeff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=eebebeff
|
||||||
12
fuzzel/themes/catppuccin-frappe/green.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/green.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=a6d189ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=a6d189ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=a6d189ff
|
||||||
12
fuzzel/themes/catppuccin-frappe/lavender.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/lavender.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=babbf1ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=babbf1ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=babbf1ff
|
||||||
12
fuzzel/themes/catppuccin-frappe/maroon.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/maroon.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=ea999cff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=ea999cff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=ea999cff
|
||||||
12
fuzzel/themes/catppuccin-frappe/mauve.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/mauve.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=ca9ee6ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=ca9ee6ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=ca9ee6ff
|
||||||
12
fuzzel/themes/catppuccin-frappe/peach.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/peach.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=ef9f76ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=ef9f76ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=ef9f76ff
|
||||||
12
fuzzel/themes/catppuccin-frappe/pink.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/pink.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=f4b8e4ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=f4b8e4ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=f4b8e4ff
|
||||||
12
fuzzel/themes/catppuccin-frappe/red.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/red.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=e78284ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=e78284ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=e78284ff
|
||||||
12
fuzzel/themes/catppuccin-frappe/rosewater.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/rosewater.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=f2d5cfff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=f2d5cfff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=f2d5cfff
|
||||||
12
fuzzel/themes/catppuccin-frappe/sapphire.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/sapphire.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=85c1dcff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=85c1dcff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=85c1dcff
|
||||||
12
fuzzel/themes/catppuccin-frappe/sky.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/sky.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=99d1dbff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=99d1dbff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=99d1dbff
|
||||||
12
fuzzel/themes/catppuccin-frappe/teal.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/teal.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=81c8beff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=81c8beff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=81c8beff
|
||||||
12
fuzzel/themes/catppuccin-frappe/yellow.ini
Normal file
12
fuzzel/themes/catppuccin-frappe/yellow.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=e5c890ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=e5c890ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=e5c890ff
|
||||||
12
fuzzel/themes/catppuccin-latte/blue.ini
Normal file
12
fuzzel/themes/catppuccin-latte/blue.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=1e66f5ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=1e66f5ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=1e66f5ff
|
||||||
12
fuzzel/themes/catppuccin-latte/flamingo.ini
Normal file
12
fuzzel/themes/catppuccin-latte/flamingo.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=dd7878ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=dd7878ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=dd7878ff
|
||||||
12
fuzzel/themes/catppuccin-latte/green.ini
Normal file
12
fuzzel/themes/catppuccin-latte/green.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=40a02bff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=40a02bff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=40a02bff
|
||||||
12
fuzzel/themes/catppuccin-latte/lavender.ini
Normal file
12
fuzzel/themes/catppuccin-latte/lavender.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=7287fdff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=7287fdff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=7287fdff
|
||||||
12
fuzzel/themes/catppuccin-latte/maroon.ini
Normal file
12
fuzzel/themes/catppuccin-latte/maroon.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=e64553ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=e64553ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=e64553ff
|
||||||
12
fuzzel/themes/catppuccin-latte/mauve.ini
Normal file
12
fuzzel/themes/catppuccin-latte/mauve.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=8839efff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=8839efff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=8839efff
|
||||||
12
fuzzel/themes/catppuccin-latte/peach.ini
Normal file
12
fuzzel/themes/catppuccin-latte/peach.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=fe640bff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=fe640bff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=fe640bff
|
||||||
12
fuzzel/themes/catppuccin-latte/pink.ini
Normal file
12
fuzzel/themes/catppuccin-latte/pink.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=ea76cbff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=ea76cbff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=ea76cbff
|
||||||
12
fuzzel/themes/catppuccin-latte/red.ini
Normal file
12
fuzzel/themes/catppuccin-latte/red.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=d20f39ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=d20f39ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=d20f39ff
|
||||||
12
fuzzel/themes/catppuccin-latte/rosewater.ini
Normal file
12
fuzzel/themes/catppuccin-latte/rosewater.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=dc8a78ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=dc8a78ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=dc8a78ff
|
||||||
12
fuzzel/themes/catppuccin-latte/sapphire.ini
Normal file
12
fuzzel/themes/catppuccin-latte/sapphire.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=209fb5ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=209fb5ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=209fb5ff
|
||||||
12
fuzzel/themes/catppuccin-latte/sky.ini
Normal file
12
fuzzel/themes/catppuccin-latte/sky.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=04a5e5ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=04a5e5ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=04a5e5ff
|
||||||
12
fuzzel/themes/catppuccin-latte/teal.ini
Normal file
12
fuzzel/themes/catppuccin-latte/teal.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=179299ff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=179299ff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=179299ff
|
||||||
12
fuzzel/themes/catppuccin-latte/yellow.ini
Normal file
12
fuzzel/themes/catppuccin-latte/yellow.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=eff1f5dd
|
||||||
|
text=4c4f69ff
|
||||||
|
prompt=5c5f77ff
|
||||||
|
placeholder=8c8fa1ff
|
||||||
|
input=4c4f69ff
|
||||||
|
match=df8e1dff
|
||||||
|
selection=acb0beff
|
||||||
|
selection-text=4c4f69ff
|
||||||
|
selection-match=df8e1dff
|
||||||
|
counter=8c8fa1ff
|
||||||
|
border=df8e1dff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/blue.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/blue.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=8aadf4ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=8aadf4ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=8aadf4ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/flamingo.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/flamingo.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=f0c6c6ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=f0c6c6ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=f0c6c6ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/green.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/green.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=a6da95ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=a6da95ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=a6da95ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/lavender.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/lavender.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=b7bdf8ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=b7bdf8ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=b7bdf8ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/maroon.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/maroon.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=ee99a0ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=ee99a0ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=ee99a0ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/mauve.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/mauve.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=c6a0f6ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=c6a0f6ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=c6a0f6ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/peach.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/peach.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=f5a97fff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=f5a97fff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=f5a97fff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/pink.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/pink.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=f5bde6ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=f5bde6ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=f5bde6ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/red.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/red.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=ed8796ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=ed8796ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=ed8796ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/rosewater.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/rosewater.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=f4dbd6ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=f4dbd6ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=f4dbd6ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/sapphire.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/sapphire.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=7dc4e4ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=7dc4e4ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=7dc4e4ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/sky.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/sky.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=91d7e3ff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=91d7e3ff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=91d7e3ff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/teal.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/teal.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=8bd5caff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=8bd5caff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=8bd5caff
|
||||||
12
fuzzel/themes/catppuccin-macchiato/yellow.ini
Normal file
12
fuzzel/themes/catppuccin-macchiato/yellow.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=24273add
|
||||||
|
text=cad3f5ff
|
||||||
|
prompt=b8c0e0ff
|
||||||
|
placeholder=8087a2ff
|
||||||
|
input=cad3f5ff
|
||||||
|
match=eed49fff
|
||||||
|
selection=5b6078ff
|
||||||
|
selection-text=cad3f5ff
|
||||||
|
selection-match=eed49fff
|
||||||
|
counter=8087a2ff
|
||||||
|
border=eed49fff
|
||||||
12
fuzzel/themes/catppuccin-mocha/blue.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/blue.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=89b4faff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=89b4faff
|
||||||
|
counter=7f849cff
|
||||||
|
border=89b4faff
|
||||||
12
fuzzel/themes/catppuccin-mocha/flamingo.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/flamingo.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=f2cdcdff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=f2cdcdff
|
||||||
|
counter=7f849cff
|
||||||
|
border=f2cdcdff
|
||||||
12
fuzzel/themes/catppuccin-mocha/green.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/green.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=a6e3a1ff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=a6e3a1ff
|
||||||
|
counter=7f849cff
|
||||||
|
border=a6e3a1ff
|
||||||
12
fuzzel/themes/catppuccin-mocha/lavender.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/lavender.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=b4befeff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=b4befeff
|
||||||
|
counter=7f849cff
|
||||||
|
border=b4befeff
|
||||||
12
fuzzel/themes/catppuccin-mocha/maroon.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/maroon.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=eba0acff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=eba0acff
|
||||||
|
counter=7f849cff
|
||||||
|
border=eba0acff
|
||||||
12
fuzzel/themes/catppuccin-mocha/mauve.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/mauve.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=cba6f7ff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=cba6f7ff
|
||||||
|
counter=7f849cff
|
||||||
|
border=cba6f7ff
|
||||||
12
fuzzel/themes/catppuccin-mocha/peach.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/peach.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=fab387ff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=fab387ff
|
||||||
|
counter=7f849cff
|
||||||
|
border=fab387ff
|
||||||
12
fuzzel/themes/catppuccin-mocha/pink.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/pink.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=f5c2e7ff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=f5c2e7ff
|
||||||
|
counter=7f849cff
|
||||||
|
border=f5c2e7ff
|
||||||
12
fuzzel/themes/catppuccin-mocha/red.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/red.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=f38ba8ff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=f38ba8ff
|
||||||
|
counter=7f849cff
|
||||||
|
border=f38ba8ff
|
||||||
12
fuzzel/themes/catppuccin-mocha/rosewater.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/rosewater.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=f5e0dcff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=f5e0dcff
|
||||||
|
counter=7f849cff
|
||||||
|
border=f5e0dcff
|
||||||
12
fuzzel/themes/catppuccin-mocha/sapphire.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/sapphire.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=74c7ecff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=74c7ecff
|
||||||
|
counter=7f849cff
|
||||||
|
border=74c7ecff
|
||||||
12
fuzzel/themes/catppuccin-mocha/sky.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/sky.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=89dcebff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=89dcebff
|
||||||
|
counter=7f849cff
|
||||||
|
border=89dcebff
|
||||||
12
fuzzel/themes/catppuccin-mocha/teal.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/teal.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=94e2d5ff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=94e2d5ff
|
||||||
|
counter=7f849cff
|
||||||
|
border=94e2d5ff
|
||||||
12
fuzzel/themes/catppuccin-mocha/yellow.ini
Normal file
12
fuzzel/themes/catppuccin-mocha/yellow.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=1e1e2edd
|
||||||
|
text=cdd6f4ff
|
||||||
|
prompt=bac2deff
|
||||||
|
placeholder=7f849cff
|
||||||
|
input=cdd6f4ff
|
||||||
|
match=f9e2afff
|
||||||
|
selection=585b70ff
|
||||||
|
selection-text=cdd6f4ff
|
||||||
|
selection-match=f9e2afff
|
||||||
|
counter=7f849cff
|
||||||
|
border=f9e2afff
|
||||||
2
ghostty/config
Normal file
2
ghostty/config
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
theme = catppuccin-macchiato
|
||||||
|
background-opacity = 0.7
|
||||||
Submodule neovim/kickstart deleted from 2ba39c6973
28
neovim/kickstart/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
28
neovim/kickstart/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- Any bug report not following this template will be immediately closed. Thanks -->
|
||||||
|
|
||||||
|
## Describe the bug
|
||||||
|
<!-- A clear and concise description of what the bug is. -->
|
||||||
|
|
||||||
|
## To Reproduce
|
||||||
|
<!-- Steps to reproduce the behavior. -->
|
||||||
|
1. ...
|
||||||
|
|
||||||
|
## Desktop
|
||||||
|
<!-- please complete the following information. -->
|
||||||
|
- OS:
|
||||||
|
- Terminal:
|
||||||
|
|
||||||
|
## Neovim Version
|
||||||
|
<!-- Output of running `:version` from inside of neovim. -->
|
||||||
|
|
||||||
|
```
|
||||||
|
```
|
||||||
8
neovim/kickstart/.github/pull_request_template.md
vendored
Normal file
8
neovim/kickstart/.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
***************************************************************************
|
||||||
|
**NOTE**
|
||||||
|
Please verify that the `base repository` above has the intended destination!
|
||||||
|
Github by default opens Pull Requests against the parent of a forked repository.
|
||||||
|
If this is your personal fork and you didn't intend to open a PR for contribution
|
||||||
|
to the original project then adjust the `base repository` accordingly.
|
||||||
|
**************************************************************************
|
||||||
|
|
||||||
21
neovim/kickstart/.github/workflows/stylua.yml
vendored
Normal file
21
neovim/kickstart/.github/workflows/stylua.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Check Lua Formatting
|
||||||
|
name: Check Lua Formatting
|
||||||
|
on: pull_request_target
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stylua-check:
|
||||||
|
if: github.repository == 'nvim-lua/kickstart.nvim'
|
||||||
|
name: Stylua Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
- name: Stylua Check
|
||||||
|
uses: JohnnyMorganz/stylua-action@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
version: latest
|
||||||
|
args: --check .
|
||||||
|
|
||||||
7
neovim/kickstart/.gitignore
vendored
Normal file
7
neovim/kickstart/.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
tags
|
||||||
|
test.sh
|
||||||
|
.luarc.json
|
||||||
|
nvim
|
||||||
|
|
||||||
|
spell/
|
||||||
|
lazy-lock.json
|
||||||
6
neovim/kickstart/.stylua.toml
Normal file
6
neovim/kickstart/.stylua.toml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
column_width = 160
|
||||||
|
line_endings = "Unix"
|
||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
quote_style = "AutoPreferSingle"
|
||||||
|
call_parentheses = "None"
|
||||||
19
neovim/kickstart/LICENSE.md
Normal file
19
neovim/kickstart/LICENSE.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
233
neovim/kickstart/README.md
Normal file
233
neovim/kickstart/README.md
Normal file
@@ -0,0 +1,233 @@
|
|||||||
|
# kickstart.nvim
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
A starting point for Neovim that is:
|
||||||
|
|
||||||
|
* Small
|
||||||
|
* Single-file
|
||||||
|
* Completely Documented
|
||||||
|
|
||||||
|
**NOT** a Neovim distribution, but instead a starting point for your configuration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Install Neovim
|
||||||
|
|
||||||
|
Kickstart.nvim targets *only* the latest
|
||||||
|
['stable'](https://github.com/neovim/neovim/releases/tag/stable) and latest
|
||||||
|
['nightly'](https://github.com/neovim/neovim/releases/tag/nightly) of Neovim.
|
||||||
|
If you are experiencing issues, please make sure you have the latest versions.
|
||||||
|
|
||||||
|
### Install External Dependencies
|
||||||
|
|
||||||
|
External Requirements:
|
||||||
|
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
|
||||||
|
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation)
|
||||||
|
- Clipboard tool (xclip/xsel/win32yank or other depending on platform)
|
||||||
|
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
|
||||||
|
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true
|
||||||
|
- Language Setup:
|
||||||
|
- If you want to write Typescript, you need `npm`
|
||||||
|
- If you want to write Golang, you will need `go`
|
||||||
|
- etc.
|
||||||
|
|
||||||
|
> **NOTE**
|
||||||
|
> See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes
|
||||||
|
> and quick install snippets
|
||||||
|
|
||||||
|
### Install Kickstart
|
||||||
|
|
||||||
|
> **NOTE**
|
||||||
|
> [Backup](#FAQ) your previous configuration (if any exists)
|
||||||
|
|
||||||
|
Neovim's configurations are located under the following paths, depending on your OS:
|
||||||
|
|
||||||
|
| OS | PATH |
|
||||||
|
| :- | :--- |
|
||||||
|
| Linux, MacOS | `$XDG_CONFIG_HOME/nvim`, `~/.config/nvim` |
|
||||||
|
| Windows (cmd)| `%localappdata%\nvim\` |
|
||||||
|
| Windows (powershell)| `$env:LOCALAPPDATA\nvim\` |
|
||||||
|
|
||||||
|
#### Recommended Step
|
||||||
|
|
||||||
|
[Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repo
|
||||||
|
so that you have your own copy that you can modify, then install by cloning the
|
||||||
|
fork to your machine using one of the commands below, depending on your OS.
|
||||||
|
|
||||||
|
> **NOTE**
|
||||||
|
> Your fork's url will be something like this:
|
||||||
|
> `https://github.com/<your_github_username>/kickstart.nvim.git`
|
||||||
|
|
||||||
|
You likely want to remove `lazy-lock.json` from your fork's `.gitignore` file
|
||||||
|
too - it's ignored in the kickstart repo to make maintenance easier, but it's
|
||||||
|
[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
|
||||||
|
|
||||||
|
#### Clone kickstart.nvim
|
||||||
|
> **NOTE**
|
||||||
|
> If following the recommended step above (i.e., forking the repo), replace
|
||||||
|
> `nvim-lua` with `<your_github_username>` in the commands below
|
||||||
|
|
||||||
|
<details><summary> Linux and Mac </summary>
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details><summary> Windows </summary>
|
||||||
|
|
||||||
|
If you're using `cmd.exe`:
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/nvim-lua/kickstart.nvim.git "%localappdata%\nvim"
|
||||||
|
```
|
||||||
|
|
||||||
|
If you're using `powershell.exe`
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/nvim-lua/kickstart.nvim.git "${env:LOCALAPPDATA}\nvim"
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Post Installation
|
||||||
|
|
||||||
|
Start Neovim
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nvim
|
||||||
|
```
|
||||||
|
|
||||||
|
That's it! Lazy will install all the plugins you have. Use `:Lazy` to view
|
||||||
|
current plugin status. Hit `q` to close the window.
|
||||||
|
|
||||||
|
Read through the `init.lua` file in your configuration folder for more
|
||||||
|
information about extending and exploring Neovim. That also includes
|
||||||
|
examples of adding popularly requested plugins.
|
||||||
|
|
||||||
|
|
||||||
|
### Getting Started
|
||||||
|
|
||||||
|
[The Only Video You Need to Get Started with Neovim](https://youtu.be/m8C0Cq9Uv9o)
|
||||||
|
|
||||||
|
### FAQ
|
||||||
|
|
||||||
|
* What should I do if I already have a pre-existing neovim configuration?
|
||||||
|
* You should back it up and then delete all associated files.
|
||||||
|
* This includes your existing init.lua and the neovim files in `~/.local`
|
||||||
|
which can be deleted with `rm -rf ~/.local/share/nvim/`
|
||||||
|
* Can I keep my existing configuration in parallel to kickstart?
|
||||||
|
* Yes! You can use [NVIM_APPNAME](https://neovim.io/doc/user/starting.html#%24NVIM_APPNAME)`=nvim-NAME`
|
||||||
|
to maintain multiple configurations. For example, you can install the kickstart
|
||||||
|
configuration in `~/.config/nvim-kickstart` and create an alias:
|
||||||
|
```
|
||||||
|
alias nvim-kickstart='NVIM_APPNAME="nvim-kickstart" nvim'
|
||||||
|
```
|
||||||
|
When you run Neovim using `nvim-kickstart` alias it will use the alternative
|
||||||
|
config directory and the matching local directory
|
||||||
|
`~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim
|
||||||
|
distribution that you would like to try out.
|
||||||
|
* What if I want to "uninstall" this configuration:
|
||||||
|
* See [lazy.nvim uninstall](https://lazy.folke.io/usage#-uninstalling) information
|
||||||
|
* Why is the kickstart `init.lua` a single file? Wouldn't it make sense to split it into multiple files?
|
||||||
|
* The main purpose of kickstart is to serve as a teaching tool and a reference
|
||||||
|
configuration that someone can easily use to `git clone` as a basis for their own.
|
||||||
|
As you progress in learning Neovim and Lua, you might consider splitting `init.lua`
|
||||||
|
into smaller parts. A fork of kickstart that does this while maintaining the
|
||||||
|
same functionality is available here:
|
||||||
|
* [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim)
|
||||||
|
* Discussions on this topic can be found here:
|
||||||
|
* [Restructure the configuration](https://github.com/nvim-lua/kickstart.nvim/issues/218)
|
||||||
|
* [Reorganize init.lua into a multi-file setup](https://github.com/nvim-lua/kickstart.nvim/pull/473)
|
||||||
|
|
||||||
|
### Install Recipes
|
||||||
|
|
||||||
|
Below you can find OS specific install instructions for Neovim and dependencies.
|
||||||
|
|
||||||
|
After installing all the dependencies continue with the [Install Kickstart](#Install-Kickstart) step.
|
||||||
|
|
||||||
|
#### Windows Installation
|
||||||
|
|
||||||
|
<details><summary>Windows with Microsoft C++ Build Tools and CMake</summary>
|
||||||
|
Installation may require installing build tools and updating the run command for `telescope-fzf-native`
|
||||||
|
|
||||||
|
See `telescope-fzf-native` documentation for [more details](https://github.com/nvim-telescope/telescope-fzf-native.nvim#installation)
|
||||||
|
|
||||||
|
This requires:
|
||||||
|
|
||||||
|
- Install CMake and the Microsoft C++ Build Tools on Windows
|
||||||
|
|
||||||
|
```lua
|
||||||
|
{'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
<details><summary>Windows with gcc/make using chocolatey</summary>
|
||||||
|
Alternatively, one can install gcc and make which don't require changing the config,
|
||||||
|
the easiest way is to use choco:
|
||||||
|
|
||||||
|
1. install [chocolatey](https://chocolatey.org/install)
|
||||||
|
either follow the instructions on the page or use winget,
|
||||||
|
run in cmd as **admin**:
|
||||||
|
```
|
||||||
|
winget install --accept-source-agreements chocolatey.chocolatey
|
||||||
|
```
|
||||||
|
|
||||||
|
2. install all requirements using choco, exit previous cmd and
|
||||||
|
open a new one so that choco path is set, and run in cmd as **admin**:
|
||||||
|
```
|
||||||
|
choco install -y neovim git ripgrep wget fd unzip gzip mingw make
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
<details><summary>WSL (Windows Subsystem for Linux)</summary>
|
||||||
|
|
||||||
|
```
|
||||||
|
wsl --install
|
||||||
|
wsl
|
||||||
|
sudo add-apt-repository ppa:neovim-ppa/unstable -y
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install make gcc ripgrep unzip git xclip neovim
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
#### Linux Install
|
||||||
|
<details><summary>Ubuntu Install Steps</summary>
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo add-apt-repository ppa:neovim-ppa/unstable -y
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install make gcc ripgrep unzip git xclip neovim
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
<details><summary>Debian Install Steps</summary>
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install make gcc ripgrep unzip git xclip curl
|
||||||
|
|
||||||
|
# Now we install nvim
|
||||||
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
|
||||||
|
sudo rm -rf /opt/nvim-linux64
|
||||||
|
sudo mkdir -p /opt/nvim-linux64
|
||||||
|
sudo chmod a+rX /opt/nvim-linux64
|
||||||
|
sudo tar -C /opt -xzf nvim-linux64.tar.gz
|
||||||
|
|
||||||
|
# make it available in /usr/local/bin, distro installs to /usr/bin
|
||||||
|
sudo ln -sf /opt/nvim-linux64/bin/nvim /usr/local/bin/
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
<details><summary>Fedora Install Steps</summary>
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo dnf install -y gcc make git ripgrep fd-find unzip neovim
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details><summary>Arch Install Steps</summary>
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
24
neovim/kickstart/doc/kickstart.txt
Normal file
24
neovim/kickstart/doc/kickstart.txt
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
================================================================================
|
||||||
|
INTRODUCTION *kickstart.nvim*
|
||||||
|
|
||||||
|
Kickstart.nvim is a project to help you get started on your neovim journey.
|
||||||
|
|
||||||
|
*kickstart-is-not*
|
||||||
|
It is not:
|
||||||
|
- Complete framework for every plugin under the sun
|
||||||
|
- Place to add every plugin that could ever be useful
|
||||||
|
|
||||||
|
*kickstart-is*
|
||||||
|
It is:
|
||||||
|
- Somewhere that has a good start for the most common "IDE" type features:
|
||||||
|
- autocompletion
|
||||||
|
- goto-definition
|
||||||
|
- find references
|
||||||
|
- fuzzy finding
|
||||||
|
- and hinting at what more can be done :)
|
||||||
|
- A place to _kickstart_ your journey.
|
||||||
|
- You should fork this project and use/modify it so that it matches your
|
||||||
|
style and preferences. If you don't want to do that, there are probably
|
||||||
|
other projects that would fit much better for you (and that's great!)!
|
||||||
|
|
||||||
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
987
neovim/kickstart/init.lua
Normal file
987
neovim/kickstart/init.lua
Normal file
@@ -0,0 +1,987 @@
|
|||||||
|
--[[
|
||||||
|
|
||||||
|
=====================================================================
|
||||||
|
==================== READ THIS BEFORE CONTINUING ====================
|
||||||
|
=====================================================================
|
||||||
|
======== .-----. ========
|
||||||
|
======== .----------------------. | === | ========
|
||||||
|
======== |.-""""""""""""""""""-.| |-----| ========
|
||||||
|
======== || || | === | ========
|
||||||
|
======== || KICKSTART.NVIM || |-----| ========
|
||||||
|
======== || || | === | ========
|
||||||
|
======== || || |-----| ========
|
||||||
|
======== ||:Tutor || |:::::| ========
|
||||||
|
======== |'-..................-'| |____o| ========
|
||||||
|
======== `"")----------------(""` ___________ ========
|
||||||
|
======== /::::::::::| |::::::::::\ \ no mouse \ ========
|
||||||
|
======== /:::========| |==hjkl==:::\ \ required \ ========
|
||||||
|
======== '""""""""""""' '""""""""""""' '""""""""""' ========
|
||||||
|
======== ========
|
||||||
|
=====================================================================
|
||||||
|
=====================================================================
|
||||||
|
|
||||||
|
What is Kickstart?
|
||||||
|
|
||||||
|
Kickstart.nvim is *not* a distribution.
|
||||||
|
|
||||||
|
Kickstart.nvim is a starting point for your own configuration.
|
||||||
|
The goal is that you can read every line of code, top-to-bottom, understand
|
||||||
|
what your configuration is doing, and modify it to suit your needs.
|
||||||
|
|
||||||
|
Once you've done that, you can start exploring, configuring and tinkering to
|
||||||
|
make Neovim your own! That might mean leaving Kickstart just the way it is for a while
|
||||||
|
or immediately breaking it into modular pieces. It's up to you!
|
||||||
|
|
||||||
|
If you don't know anything about Lua, I recommend taking some time to read through
|
||||||
|
a guide. One possible example which will only take 10-15 minutes:
|
||||||
|
- https://learnxinyminutes.com/docs/lua/
|
||||||
|
|
||||||
|
After understanding a bit more about Lua, you can use `:help lua-guide` as a
|
||||||
|
reference for how Neovim integrates Lua.
|
||||||
|
- :help lua-guide
|
||||||
|
- (or HTML version): https://neovim.io/doc/user/lua-guide.html
|
||||||
|
|
||||||
|
Kickstart Guide:
|
||||||
|
|
||||||
|
TODO: The very first thing you should do is to run the command `:Tutor` in Neovim.
|
||||||
|
|
||||||
|
If you don't know what this means, type the following:
|
||||||
|
- <escape key>
|
||||||
|
- :
|
||||||
|
- Tutor
|
||||||
|
- <enter key>
|
||||||
|
|
||||||
|
(If you already know the Neovim basics, you can skip this step.)
|
||||||
|
|
||||||
|
Once you've completed that, you can continue working through **AND READING** the rest
|
||||||
|
of the kickstart init.lua.
|
||||||
|
|
||||||
|
Next, run AND READ `:help`.
|
||||||
|
This will open up a help window with some basic information
|
||||||
|
about reading, navigating and searching the builtin help documentation.
|
||||||
|
|
||||||
|
This should be the first place you go to look when you're stuck or confused
|
||||||
|
with something. It's one of my favorite Neovim features.
|
||||||
|
|
||||||
|
MOST IMPORTANTLY, we provide a keymap "<space>sh" to [s]earch the [h]elp documentation,
|
||||||
|
which is very useful when you're not exactly sure of what you're looking for.
|
||||||
|
|
||||||
|
I have left several `:help X` comments throughout the init.lua
|
||||||
|
These are hints about where to find more information about the relevant settings,
|
||||||
|
plugins or Neovim features used in Kickstart.
|
||||||
|
|
||||||
|
NOTE: Look for lines like this
|
||||||
|
|
||||||
|
Throughout the file. These are for you, the reader, to help you understand what is happening.
|
||||||
|
Feel free to delete them once you know what you're doing, but they should serve as a guide
|
||||||
|
for when you are first encountering a few different constructs in your Neovim config.
|
||||||
|
|
||||||
|
If you experience any errors while trying to install kickstart, run `:checkhealth` for more info.
|
||||||
|
|
||||||
|
I hope you enjoy your Neovim journey,
|
||||||
|
- TJ
|
||||||
|
|
||||||
|
P.S. You can delete this when you're done too. It's your config now! :)
|
||||||
|
--]]
|
||||||
|
|
||||||
|
-- Set <space> as the leader key
|
||||||
|
-- See `:help mapleader`
|
||||||
|
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
|
||||||
|
vim.g.mapleader = ' '
|
||||||
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||||
|
vim.g.have_nerd_font = false
|
||||||
|
|
||||||
|
-- [[ Setting options ]]
|
||||||
|
-- See `:help vim.opt`
|
||||||
|
-- NOTE: You can change these options as you wish!
|
||||||
|
-- For more options, you can see `:help option-list`
|
||||||
|
|
||||||
|
-- Make line numbers default
|
||||||
|
vim.opt.number = true
|
||||||
|
-- You can also add relative line numbers, to help with jumping.
|
||||||
|
-- Experiment for yourself to see if you like it!
|
||||||
|
-- vim.opt.relativenumber = true
|
||||||
|
|
||||||
|
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||||
|
vim.opt.mouse = 'a'
|
||||||
|
|
||||||
|
-- Don't show the mode, since it's already in the status line
|
||||||
|
vim.opt.showmode = false
|
||||||
|
|
||||||
|
-- Sync clipboard between OS and Neovim.
|
||||||
|
-- Schedule the setting after `UiEnter` because it can increase startup-time.
|
||||||
|
-- Remove this option if you want your OS clipboard to remain independent.
|
||||||
|
-- See `:help 'clipboard'`
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.opt.clipboard = 'unnamedplus'
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Enable break indent
|
||||||
|
vim.opt.breakindent = true
|
||||||
|
|
||||||
|
-- Save undo history
|
||||||
|
vim.opt.undofile = true
|
||||||
|
|
||||||
|
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
|
||||||
|
vim.opt.ignorecase = true
|
||||||
|
vim.opt.smartcase = true
|
||||||
|
|
||||||
|
-- Keep signcolumn on by default
|
||||||
|
vim.opt.signcolumn = 'yes'
|
||||||
|
|
||||||
|
-- Decrease update time
|
||||||
|
vim.opt.updatetime = 250
|
||||||
|
|
||||||
|
-- Decrease mapped sequence wait time
|
||||||
|
-- Displays which-key popup sooner
|
||||||
|
vim.opt.timeoutlen = 300
|
||||||
|
|
||||||
|
-- Configure how new splits should be opened
|
||||||
|
vim.opt.splitright = true
|
||||||
|
vim.opt.splitbelow = true
|
||||||
|
|
||||||
|
-- Sets how neovim will display certain whitespace characters in the editor.
|
||||||
|
-- See `:help 'list'`
|
||||||
|
-- and `:help 'listchars'`
|
||||||
|
vim.opt.list = true
|
||||||
|
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
||||||
|
|
||||||
|
-- Preview substitutions live, as you type!
|
||||||
|
vim.opt.inccommand = 'split'
|
||||||
|
|
||||||
|
-- Show which line your cursor is on
|
||||||
|
vim.opt.cursorline = true
|
||||||
|
|
||||||
|
-- Minimal number of screen lines to keep above and below the cursor.
|
||||||
|
vim.opt.scrolloff = 10
|
||||||
|
|
||||||
|
-- [[ Basic Keymaps ]]
|
||||||
|
-- See `:help vim.keymap.set()`
|
||||||
|
|
||||||
|
-- Clear highlights on search when pressing <Esc> in normal mode
|
||||||
|
-- See `:help hlsearch`
|
||||||
|
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||||
|
|
||||||
|
-- Diagnostic keymaps
|
||||||
|
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||||
|
|
||||||
|
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
|
||||||
|
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
|
||||||
|
-- is not what someone will guess without a bit more experience.
|
||||||
|
--
|
||||||
|
-- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping
|
||||||
|
-- or just use <C-\><C-n> to exit terminal mode
|
||||||
|
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
|
||||||
|
|
||||||
|
-- TIP: Disable arrow keys in normal mode
|
||||||
|
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
|
||||||
|
-- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
|
||||||
|
-- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
|
||||||
|
-- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
|
||||||
|
|
||||||
|
-- Keybinds to make split navigation easier.
|
||||||
|
-- Use CTRL+<hjkl> to switch between windows
|
||||||
|
--
|
||||||
|
-- See `:help wincmd` for a list of all window commands
|
||||||
|
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
|
||||||
|
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
|
||||||
|
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||||
|
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||||
|
|
||||||
|
-- [[ Basic Autocommands ]]
|
||||||
|
-- See `:help lua-guide-autocommands`
|
||||||
|
|
||||||
|
-- Highlight when yanking (copying) text
|
||||||
|
-- Try it with `yap` in normal mode
|
||||||
|
-- See `:help vim.highlight.on_yank()`
|
||||||
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
|
desc = 'Highlight when yanking (copying) text',
|
||||||
|
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
|
||||||
|
callback = function()
|
||||||
|
vim.highlight.on_yank()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- [[ Install `lazy.nvim` plugin manager ]]
|
||||||
|
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
|
||||||
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||||
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
|
||||||
|
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
|
||||||
|
if vim.v.shell_error ~= 0 then
|
||||||
|
error('Error cloning lazy.nvim:\n' .. out)
|
||||||
|
end
|
||||||
|
end ---@diagnostic disable-next-line: undefined-field
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
-- [[ Configure and install plugins ]]
|
||||||
|
--
|
||||||
|
-- To check the current status of your plugins, run
|
||||||
|
-- :Lazy
|
||||||
|
--
|
||||||
|
-- You can press `?` in this menu for help. Use `:q` to close the window
|
||||||
|
--
|
||||||
|
-- To update plugins you can run
|
||||||
|
-- :Lazy update
|
||||||
|
--
|
||||||
|
-- NOTE: Here is where you install your plugins.
|
||||||
|
require('lazy').setup({
|
||||||
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||||
|
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
||||||
|
|
||||||
|
-- NOTE: Plugins can also be added by using a table,
|
||||||
|
-- with the first argument being the link and the following
|
||||||
|
-- keys can be used to configure plugin behavior/loading/etc.
|
||||||
|
--
|
||||||
|
-- Use `opts = {}` to force a plugin to be loaded.
|
||||||
|
--
|
||||||
|
|
||||||
|
-- Here is a more advanced example where we pass configuration
|
||||||
|
-- options to `gitsigns.nvim`. This is equivalent to the following Lua:
|
||||||
|
-- require('gitsigns').setup({ ... })
|
||||||
|
--
|
||||||
|
-- See `:help gitsigns` to understand what the configuration keys do
|
||||||
|
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
opts = {
|
||||||
|
signs = {
|
||||||
|
add = { text = '+' },
|
||||||
|
change = { text = '~' },
|
||||||
|
delete = { text = '_' },
|
||||||
|
topdelete = { text = '‾' },
|
||||||
|
changedelete = { text = '~' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
|
||||||
|
--
|
||||||
|
-- This is often very useful to both group configuration, as well as handle
|
||||||
|
-- lazy loading plugins that don't need to be loaded immediately at startup.
|
||||||
|
--
|
||||||
|
-- For example, in the following configuration, we use:
|
||||||
|
-- event = 'VimEnter'
|
||||||
|
--
|
||||||
|
-- which loads which-key before all the UI elements are loaded. Events can be
|
||||||
|
-- normal autocommands events (`:help autocmd-events`).
|
||||||
|
--
|
||||||
|
-- Then, because we use the `config` key, the configuration only runs
|
||||||
|
-- after the plugin has been loaded:
|
||||||
|
-- config = function() ... end
|
||||||
|
|
||||||
|
{ -- Useful plugin to show you pending keybinds.
|
||||||
|
'folke/which-key.nvim',
|
||||||
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
||||||
|
opts = {
|
||||||
|
icons = {
|
||||||
|
-- set icon mappings to true if you have a Nerd Font
|
||||||
|
mappings = vim.g.have_nerd_font,
|
||||||
|
-- If you are using a Nerd Font: set icons.keys to an empty table which will use the
|
||||||
|
-- default whick-key.nvim defined Nerd Font icons, otherwise define a string table
|
||||||
|
keys = vim.g.have_nerd_font and {} or {
|
||||||
|
Up = '<Up> ',
|
||||||
|
Down = '<Down> ',
|
||||||
|
Left = '<Left> ',
|
||||||
|
Right = '<Right> ',
|
||||||
|
C = '<C-…> ',
|
||||||
|
M = '<M-…> ',
|
||||||
|
D = '<D-…> ',
|
||||||
|
S = '<S-…> ',
|
||||||
|
CR = '<CR> ',
|
||||||
|
Esc = '<Esc> ',
|
||||||
|
ScrollWheelDown = '<ScrollWheelDown> ',
|
||||||
|
ScrollWheelUp = '<ScrollWheelUp> ',
|
||||||
|
NL = '<NL> ',
|
||||||
|
BS = '<BS> ',
|
||||||
|
Space = '<Space> ',
|
||||||
|
Tab = '<Tab> ',
|
||||||
|
F1 = '<F1>',
|
||||||
|
F2 = '<F2>',
|
||||||
|
F3 = '<F3>',
|
||||||
|
F4 = '<F4>',
|
||||||
|
F5 = '<F5>',
|
||||||
|
F6 = '<F6>',
|
||||||
|
F7 = '<F7>',
|
||||||
|
F8 = '<F8>',
|
||||||
|
F9 = '<F9>',
|
||||||
|
F10 = '<F10>',
|
||||||
|
F11 = '<F11>',
|
||||||
|
F12 = '<F12>',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Document existing key chains
|
||||||
|
spec = {
|
||||||
|
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
|
||||||
|
{ '<leader>d', group = '[D]ocument' },
|
||||||
|
{ '<leader>r', group = '[R]ename' },
|
||||||
|
{ '<leader>s', group = '[S]earch' },
|
||||||
|
{ '<leader>w', group = '[W]orkspace' },
|
||||||
|
{ '<leader>t', group = '[T]oggle' },
|
||||||
|
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- NOTE: Plugins can specify dependencies.
|
||||||
|
--
|
||||||
|
-- The dependencies are proper plugin specifications as well - anything
|
||||||
|
-- you do for a plugin at the top level, you can do for a dependency.
|
||||||
|
--
|
||||||
|
-- Use the `dependencies` key to specify the dependencies of a particular plugin
|
||||||
|
|
||||||
|
{ -- Fuzzy Finder (files, lsp, etc)
|
||||||
|
'nvim-telescope/telescope.nvim',
|
||||||
|
event = 'VimEnter',
|
||||||
|
branch = '0.1.x',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
{ -- If encountering errors, see telescope-fzf-native README for installation instructions
|
||||||
|
'nvim-telescope/telescope-fzf-native.nvim',
|
||||||
|
|
||||||
|
-- `build` is used to run some command when the plugin is installed/updated.
|
||||||
|
-- This is only run then, not every time Neovim starts up.
|
||||||
|
build = 'make',
|
||||||
|
|
||||||
|
-- `cond` is a condition used to determine whether this plugin should be
|
||||||
|
-- installed and loaded.
|
||||||
|
cond = function()
|
||||||
|
return vim.fn.executable 'make' == 1
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
||||||
|
|
||||||
|
-- Useful for getting pretty icons, but requires a Nerd Font.
|
||||||
|
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Telescope is a fuzzy finder that comes with a lot of different things that
|
||||||
|
-- it can fuzzy find! It's more than just a "file finder", it can search
|
||||||
|
-- many different aspects of Neovim, your workspace, LSP, and more!
|
||||||
|
--
|
||||||
|
-- The easiest way to use Telescope, is to start by doing something like:
|
||||||
|
-- :Telescope help_tags
|
||||||
|
--
|
||||||
|
-- After running this command, a window will open up and you're able to
|
||||||
|
-- type in the prompt window. You'll see a list of `help_tags` options and
|
||||||
|
-- a corresponding preview of the help.
|
||||||
|
--
|
||||||
|
-- Two important keymaps to use while in Telescope are:
|
||||||
|
-- - Insert mode: <c-/>
|
||||||
|
-- - Normal mode: ?
|
||||||
|
--
|
||||||
|
-- This opens a window that shows you all of the keymaps for the current
|
||||||
|
-- Telescope picker. This is really useful to discover what Telescope can
|
||||||
|
-- do as well as how to actually do it!
|
||||||
|
|
||||||
|
-- [[ Configure Telescope ]]
|
||||||
|
-- See `:help telescope` and `:help telescope.setup()`
|
||||||
|
require('telescope').setup {
|
||||||
|
-- You can put your default mappings / updates / etc. in here
|
||||||
|
-- All the info you're looking for is in `:help telescope.setup()`
|
||||||
|
--
|
||||||
|
-- defaults = {
|
||||||
|
-- mappings = {
|
||||||
|
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- pickers = {}
|
||||||
|
extensions = {
|
||||||
|
['ui-select'] = {
|
||||||
|
require('telescope.themes').get_dropdown(),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Enable Telescope extensions if they are installed
|
||||||
|
pcall(require('telescope').load_extension, 'fzf')
|
||||||
|
pcall(require('telescope').load_extension, 'ui-select')
|
||||||
|
|
||||||
|
-- See `:help telescope.builtin`
|
||||||
|
local builtin = require 'telescope.builtin'
|
||||||
|
vim.keymap.set('n', '<leader>sh', builtin.help_tags, { desc = '[S]earch [H]elp' })
|
||||||
|
vim.keymap.set('n', '<leader>sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' })
|
||||||
|
vim.keymap.set('n', '<leader>sf', builtin.find_files, { desc = '[S]earch [F]iles' })
|
||||||
|
vim.keymap.set('n', '<leader>ss', builtin.builtin, { desc = '[S]earch [S]elect Telescope' })
|
||||||
|
vim.keymap.set('n', '<leader>sw', builtin.grep_string, { desc = '[S]earch current [W]ord' })
|
||||||
|
vim.keymap.set('n', '<leader>sg', builtin.live_grep, { desc = '[S]earch by [G]rep' })
|
||||||
|
vim.keymap.set('n', '<leader>sd', builtin.diagnostics, { desc = '[S]earch [D]iagnostics' })
|
||||||
|
vim.keymap.set('n', '<leader>sr', builtin.resume, { desc = '[S]earch [R]esume' })
|
||||||
|
vim.keymap.set('n', '<leader>s.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
|
||||||
|
vim.keymap.set('n', '<leader><leader>', builtin.buffers, { desc = '[ ] Find existing buffers' })
|
||||||
|
|
||||||
|
-- Slightly advanced example of overriding default behavior and theme
|
||||||
|
vim.keymap.set('n', '<leader>/', function()
|
||||||
|
-- You can pass additional configuration to Telescope to change the theme, layout, etc.
|
||||||
|
builtin.current_buffer_fuzzy_find(require('telescope.themes').get_dropdown {
|
||||||
|
winblend = 10,
|
||||||
|
previewer = false,
|
||||||
|
})
|
||||||
|
end, { desc = '[/] Fuzzily search in current buffer' })
|
||||||
|
|
||||||
|
-- It's also possible to pass additional configuration options.
|
||||||
|
-- See `:help telescope.builtin.live_grep()` for information about particular keys
|
||||||
|
vim.keymap.set('n', '<leader>s/', function()
|
||||||
|
builtin.live_grep {
|
||||||
|
grep_open_files = true,
|
||||||
|
prompt_title = 'Live Grep in Open Files',
|
||||||
|
}
|
||||||
|
end, { desc = '[S]earch [/] in Open Files' })
|
||||||
|
|
||||||
|
-- Shortcut for searching your Neovim configuration files
|
||||||
|
vim.keymap.set('n', '<leader>sn', function()
|
||||||
|
builtin.find_files { cwd = vim.fn.stdpath 'config' }
|
||||||
|
end, { desc = '[S]earch [N]eovim files' })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- LSP Plugins
|
||||||
|
{
|
||||||
|
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
|
||||||
|
-- used for completion, annotations and signatures of Neovim apis
|
||||||
|
'folke/lazydev.nvim',
|
||||||
|
ft = 'lua',
|
||||||
|
opts = {
|
||||||
|
library = {
|
||||||
|
-- Load luvit types when the `vim.uv` word is found
|
||||||
|
{ path = 'luvit-meta/library', words = { 'vim%.uv' } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{ 'Bilal2453/luvit-meta', lazy = true },
|
||||||
|
{
|
||||||
|
-- Main LSP Configuration
|
||||||
|
'neovim/nvim-lspconfig',
|
||||||
|
dependencies = {
|
||||||
|
-- Automatically install LSPs and related tools to stdpath for Neovim
|
||||||
|
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
|
||||||
|
'williamboman/mason-lspconfig.nvim',
|
||||||
|
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||||
|
|
||||||
|
-- Useful status updates for LSP.
|
||||||
|
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
||||||
|
{ 'j-hui/fidget.nvim', opts = {} },
|
||||||
|
|
||||||
|
-- Allows extra capabilities provided by nvim-cmp
|
||||||
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- Brief aside: **What is LSP?**
|
||||||
|
--
|
||||||
|
-- LSP is an initialism you've probably heard, but might not understand what it is.
|
||||||
|
--
|
||||||
|
-- LSP stands for Language Server Protocol. It's a protocol that helps editors
|
||||||
|
-- and language tooling communicate in a standardized fashion.
|
||||||
|
--
|
||||||
|
-- In general, you have a "server" which is some tool built to understand a particular
|
||||||
|
-- language (such as `gopls`, `lua_ls`, `rust_analyzer`, etc.). These Language Servers
|
||||||
|
-- (sometimes called LSP servers, but that's kind of like ATM Machine) are standalone
|
||||||
|
-- processes that communicate with some "client" - in this case, Neovim!
|
||||||
|
--
|
||||||
|
-- LSP provides Neovim with features like:
|
||||||
|
-- - Go to definition
|
||||||
|
-- - Find references
|
||||||
|
-- - Autocompletion
|
||||||
|
-- - Symbol Search
|
||||||
|
-- - and more!
|
||||||
|
--
|
||||||
|
-- Thus, Language Servers are external tools that must be installed separately from
|
||||||
|
-- Neovim. This is where `mason` and related plugins come into play.
|
||||||
|
--
|
||||||
|
-- If you're wondering about lsp vs treesitter, you can check out the wonderfully
|
||||||
|
-- and elegantly composed help section, `:help lsp-vs-treesitter`
|
||||||
|
|
||||||
|
-- This function gets run when an LSP attaches to a particular buffer.
|
||||||
|
-- That is to say, every time a new file is opened that is associated with
|
||||||
|
-- an lsp (for example, opening `main.rs` is associated with `rust_analyzer`) this
|
||||||
|
-- function will be executed to configure the current buffer
|
||||||
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
|
group = vim.api.nvim_create_augroup('kickstart-lsp-attach', { clear = true }),
|
||||||
|
callback = function(event)
|
||||||
|
-- NOTE: Remember that Lua is a real programming language, and as such it is possible
|
||||||
|
-- to define small helper and utility functions so you don't have to repeat yourself.
|
||||||
|
--
|
||||||
|
-- In this case, we create a function that lets us more easily define mappings specific
|
||||||
|
-- for LSP related items. It sets the mode, buffer and description for us each time.
|
||||||
|
local map = function(keys, func, desc, mode)
|
||||||
|
mode = mode or 'n'
|
||||||
|
vim.keymap.set(mode, keys, func, { buffer = event.buf, desc = 'LSP: ' .. desc })
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Jump to the definition of the word under your cursor.
|
||||||
|
-- This is where a variable was first declared, or where a function is defined, etc.
|
||||||
|
-- To jump back, press <C-t>.
|
||||||
|
map('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
|
||||||
|
|
||||||
|
-- Find references for the word under your cursor.
|
||||||
|
map('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
|
||||||
|
|
||||||
|
-- Jump to the implementation of the word under your cursor.
|
||||||
|
-- Useful when your language has ways of declaring types without an actual implementation.
|
||||||
|
map('gI', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation')
|
||||||
|
|
||||||
|
-- Jump to the type of the word under your cursor.
|
||||||
|
-- Useful when you're not sure what type a variable is and you want to see
|
||||||
|
-- the definition of its *type*, not where it was *defined*.
|
||||||
|
map('<leader>D', require('telescope.builtin').lsp_type_definitions, 'Type [D]efinition')
|
||||||
|
|
||||||
|
-- Fuzzy find all the symbols in your current document.
|
||||||
|
-- Symbols are things like variables, functions, types, etc.
|
||||||
|
map('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
|
||||||
|
|
||||||
|
-- Fuzzy find all the symbols in your current workspace.
|
||||||
|
-- Similar to document symbols, except searches over your entire project.
|
||||||
|
map('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
|
||||||
|
|
||||||
|
-- Rename the variable under your cursor.
|
||||||
|
-- Most Language Servers support renaming across files, etc.
|
||||||
|
map('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
|
||||||
|
|
||||||
|
-- Execute a code action, usually your cursor needs to be on top of an error
|
||||||
|
-- or a suggestion from your LSP for this to activate.
|
||||||
|
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
|
||||||
|
|
||||||
|
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
||||||
|
-- For example, in C this would take you to the header.
|
||||||
|
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
|
||||||
|
|
||||||
|
-- The following two autocommands are used to highlight references of the
|
||||||
|
-- word under your cursor when your cursor rests there for a little while.
|
||||||
|
-- See `:help CursorHold` for information about when this is executed
|
||||||
|
--
|
||||||
|
-- When you move your cursor, the highlights will be cleared (the second autocommand).
|
||||||
|
local client = vim.lsp.get_client_by_id(event.data.client_id)
|
||||||
|
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then
|
||||||
|
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
|
||||||
|
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
|
||||||
|
buffer = event.buf,
|
||||||
|
group = highlight_augroup,
|
||||||
|
callback = vim.lsp.buf.document_highlight,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd({ 'CursorMoved', 'CursorMovedI' }, {
|
||||||
|
buffer = event.buf,
|
||||||
|
group = highlight_augroup,
|
||||||
|
callback = vim.lsp.buf.clear_references,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('LspDetach', {
|
||||||
|
group = vim.api.nvim_create_augroup('kickstart-lsp-detach', { clear = true }),
|
||||||
|
callback = function(event2)
|
||||||
|
vim.lsp.buf.clear_references()
|
||||||
|
vim.api.nvim_clear_autocmds { group = 'kickstart-lsp-highlight', buffer = event2.buf }
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- The following code creates a keymap to toggle inlay hints in your
|
||||||
|
-- code, if the language server you are using supports them
|
||||||
|
--
|
||||||
|
-- This may be unwanted, since they displace some of your code
|
||||||
|
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
|
||||||
|
map('<leader>th', function()
|
||||||
|
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf })
|
||||||
|
end, '[T]oggle Inlay [H]ints')
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Change diagnostic symbols in the sign column (gutter)
|
||||||
|
-- if vim.g.have_nerd_font then
|
||||||
|
-- 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
|
||||||
|
-- end
|
||||||
|
|
||||||
|
-- LSP servers and clients are able to communicate to each other what features they support.
|
||||||
|
-- By default, Neovim doesn't support everything that is in the LSP specification.
|
||||||
|
-- When you add nvim-cmp, luasnip, etc. Neovim now has *more* capabilities.
|
||||||
|
-- So, we create new capabilities with nvim cmp, and then broadcast that to the servers.
|
||||||
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
|
capabilities = vim.tbl_deep_extend('force', capabilities, require('cmp_nvim_lsp').default_capabilities())
|
||||||
|
|
||||||
|
-- Enable the following language servers
|
||||||
|
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
|
||||||
|
--
|
||||||
|
-- Add any additional override configuration in the following tables. Available keys are:
|
||||||
|
-- - cmd (table): Override the default command used to start the server
|
||||||
|
-- - filetypes (table): Override the default list of associated filetypes for the server
|
||||||
|
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
|
||||||
|
-- - settings (table): Override the default settings passed when initializing the server.
|
||||||
|
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||||
|
local servers = {
|
||||||
|
-- clangd = {},
|
||||||
|
-- gopls = {},
|
||||||
|
-- pyright = {},
|
||||||
|
-- rust_analyzer = {},
|
||||||
|
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
|
||||||
|
--
|
||||||
|
-- Some languages (like typescript) have entire language plugins that can be useful:
|
||||||
|
-- https://github.com/pmizio/typescript-tools.nvim
|
||||||
|
--
|
||||||
|
-- But for many setups, the LSP (`ts_ls`) will work just fine
|
||||||
|
-- ts_ls = {},
|
||||||
|
--
|
||||||
|
|
||||||
|
lua_ls = {
|
||||||
|
-- cmd = {...},
|
||||||
|
-- filetypes = { ...},
|
||||||
|
-- capabilities = {},
|
||||||
|
settings = {
|
||||||
|
Lua = {
|
||||||
|
completion = {
|
||||||
|
callSnippet = 'Replace',
|
||||||
|
},
|
||||||
|
-- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
|
||||||
|
-- diagnostics = { disable = { 'missing-fields' } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Ensure the servers and tools above are installed
|
||||||
|
-- To check the current status of installed tools and/or manually install
|
||||||
|
-- other tools, you can run
|
||||||
|
-- :Mason
|
||||||
|
--
|
||||||
|
-- You can press `g?` for help in this menu.
|
||||||
|
require('mason').setup()
|
||||||
|
|
||||||
|
-- You can add other tools here that you want Mason to install
|
||||||
|
-- for you, so that they are available from within Neovim.
|
||||||
|
local ensure_installed = vim.tbl_keys(servers or {})
|
||||||
|
vim.list_extend(ensure_installed, {
|
||||||
|
'stylua', -- Used to format Lua code
|
||||||
|
})
|
||||||
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
|
require('mason-lspconfig').setup {
|
||||||
|
handlers = {
|
||||||
|
function(server_name)
|
||||||
|
local server = servers[server_name] or {}
|
||||||
|
-- This handles overriding only values explicitly passed
|
||||||
|
-- by the server configuration above. Useful when disabling
|
||||||
|
-- certain features of an LSP (for example, turning off formatting for ts_ls)
|
||||||
|
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
|
||||||
|
require('lspconfig')[server_name].setup(server)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
{ -- Autoformat
|
||||||
|
'stevearc/conform.nvim',
|
||||||
|
event = { 'BufWritePre' },
|
||||||
|
cmd = { 'ConformInfo' },
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
'<leader>f',
|
||||||
|
function()
|
||||||
|
require('conform').format { async = true, lsp_format = 'fallback' }
|
||||||
|
end,
|
||||||
|
mode = '',
|
||||||
|
desc = '[F]ormat buffer',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
notify_on_error = false,
|
||||||
|
format_on_save = function(bufnr)
|
||||||
|
-- Disable "format_on_save lsp_fallback" for languages that don't
|
||||||
|
-- have a well standardized coding style. You can add additional
|
||||||
|
-- languages here or re-enable it for the disabled ones.
|
||||||
|
local disable_filetypes = { c = true, cpp = true }
|
||||||
|
local lsp_format_opt
|
||||||
|
if disable_filetypes[vim.bo[bufnr].filetype] then
|
||||||
|
lsp_format_opt = 'never'
|
||||||
|
else
|
||||||
|
lsp_format_opt = 'fallback'
|
||||||
|
end
|
||||||
|
return {
|
||||||
|
timeout_ms = 500,
|
||||||
|
lsp_format = lsp_format_opt,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
formatters_by_ft = {
|
||||||
|
lua = { 'stylua' },
|
||||||
|
-- Conform can also run multiple formatters sequentially
|
||||||
|
-- python = { "isort", "black" },
|
||||||
|
--
|
||||||
|
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||||
|
-- javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
{ -- Autocompletion
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
event = 'InsertEnter',
|
||||||
|
dependencies = {
|
||||||
|
-- Snippet Engine & its associated nvim-cmp source
|
||||||
|
{
|
||||||
|
'L3MON4D3/LuaSnip',
|
||||||
|
build = (function()
|
||||||
|
-- Build Step is needed for regex support in snippets.
|
||||||
|
-- This step is not supported in many windows environments.
|
||||||
|
-- Remove the below condition to re-enable on windows.
|
||||||
|
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
return 'make install_jsregexp'
|
||||||
|
end)(),
|
||||||
|
dependencies = {
|
||||||
|
-- `friendly-snippets` contains a variety of premade snippets.
|
||||||
|
-- See the README about individual language/framework/plugin snippets:
|
||||||
|
-- https://github.com/rafamadriz/friendly-snippets
|
||||||
|
-- {
|
||||||
|
-- 'rafamadriz/friendly-snippets',
|
||||||
|
-- config = function()
|
||||||
|
-- require('luasnip.loaders.from_vscode').lazy_load()
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
|
||||||
|
-- Adds other completion capabilities.
|
||||||
|
-- nvim-cmp does not ship with all sources by default. They are split
|
||||||
|
-- into multiple repos for maintenance purposes.
|
||||||
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
|
'hrsh7th/cmp-path',
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
-- See `:help cmp`
|
||||||
|
local cmp = require 'cmp'
|
||||||
|
local luasnip = require 'luasnip'
|
||||||
|
luasnip.config.setup {}
|
||||||
|
|
||||||
|
cmp.setup {
|
||||||
|
snippet = {
|
||||||
|
expand = function(args)
|
||||||
|
luasnip.lsp_expand(args.body)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
completion = { completeopt = 'menu,menuone,noinsert' },
|
||||||
|
|
||||||
|
-- For an understanding of why these mappings were
|
||||||
|
-- chosen, you will need to read `:help ins-completion`
|
||||||
|
--
|
||||||
|
-- No, but seriously. Please read `:help ins-completion`, it is really good!
|
||||||
|
mapping = cmp.mapping.preset.insert {
|
||||||
|
-- Select the [n]ext item
|
||||||
|
['<C-n>'] = cmp.mapping.select_next_item(),
|
||||||
|
-- Select the [p]revious item
|
||||||
|
['<C-p>'] = cmp.mapping.select_prev_item(),
|
||||||
|
|
||||||
|
-- Scroll the documentation window [b]ack / [f]orward
|
||||||
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
|
|
||||||
|
-- Accept ([y]es) the completion.
|
||||||
|
-- This will auto-import if your LSP supports it.
|
||||||
|
-- This will expand snippets if the LSP sent a snippet.
|
||||||
|
['<C-y>'] = cmp.mapping.confirm { select = true },
|
||||||
|
|
||||||
|
-- If you prefer more traditional completion keymaps,
|
||||||
|
-- you can uncomment the following lines
|
||||||
|
['<CR>'] = cmp.mapping.confirm { select = true },
|
||||||
|
['<Tab>'] = cmp.mapping.select_next_item(),
|
||||||
|
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
||||||
|
|
||||||
|
-- Manually trigger a completion from nvim-cmp.
|
||||||
|
-- Generally you don't need this, because nvim-cmp will display
|
||||||
|
-- completions whenever it has completion options available.
|
||||||
|
['<C-Space>'] = cmp.mapping.complete {},
|
||||||
|
|
||||||
|
-- Think of <c-l> as moving to the right of your snippet expansion.
|
||||||
|
-- So if you have a snippet that's like:
|
||||||
|
-- function $name($args)
|
||||||
|
-- $body
|
||||||
|
-- end
|
||||||
|
--
|
||||||
|
-- <c-l> will move you to the right of each of the expansion locations.
|
||||||
|
-- <c-h> is similar, except moving you backwards.
|
||||||
|
['<C-l>'] = cmp.mapping(function()
|
||||||
|
if luasnip.expand_or_locally_jumpable() then
|
||||||
|
luasnip.expand_or_jump()
|
||||||
|
end
|
||||||
|
end, { 'i', 's' }),
|
||||||
|
['<C-h>'] = cmp.mapping(function()
|
||||||
|
if luasnip.locally_jumpable(-1) then
|
||||||
|
luasnip.jump(-1)
|
||||||
|
end
|
||||||
|
end, { 'i', 's' }),
|
||||||
|
|
||||||
|
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
|
||||||
|
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
{
|
||||||
|
name = 'lazydev',
|
||||||
|
-- set group index to 0 to skip loading LuaLS completions as lazydev recommends it
|
||||||
|
group_index = 0,
|
||||||
|
},
|
||||||
|
{ name = 'nvim_lsp' },
|
||||||
|
{ name = 'luasnip' },
|
||||||
|
{ name = 'path' },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
--[[{ -- You can easily change to a different colorscheme.
|
||||||
|
-- Change the name of the colorscheme plugin below, and then
|
||||||
|
-- change the command in the config to whatever the name of that colorscheme is.
|
||||||
|
--
|
||||||
|
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
|
||||||
|
'folke/tokyonight.nvim',
|
||||||
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
||||||
|
init = function()
|
||||||
|
-- Load the colorscheme here.
|
||||||
|
-- Like many other themes, this one has different styles, and you could load
|
||||||
|
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
||||||
|
vim.cmd.colorscheme 'tokyonight-night'
|
||||||
|
|
||||||
|
-- You can configure highlights by doing something like:
|
||||||
|
vim.cmd.hi 'Comment gui=none'
|
||||||
|
end,
|
||||||
|
},]]
|
||||||
|
|
||||||
|
{
|
||||||
|
--Catppuccin
|
||||||
|
'catppuccin/nvim',
|
||||||
|
name = 'catppuccin',
|
||||||
|
priority = 1000,
|
||||||
|
init = function()
|
||||||
|
vim.cmd.colorscheme 'catppuccin-macchiato'
|
||||||
|
-- set up catppuccin
|
||||||
|
require('catppuccin').setup {
|
||||||
|
transparent_background = false,
|
||||||
|
integrations = {
|
||||||
|
nvimtree = true,
|
||||||
|
mason = true,
|
||||||
|
treesitter = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
-- Highlight todo, notes, etc in comments
|
||||||
|
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
|
||||||
|
|
||||||
|
{ -- Collection of various small independent plugins/modules
|
||||||
|
'echasnovski/mini.nvim',
|
||||||
|
config = function()
|
||||||
|
-- Better Around/Inside textobjects
|
||||||
|
--
|
||||||
|
-- Examples:
|
||||||
|
-- - va) - [V]isually select [A]round [)]paren
|
||||||
|
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
||||||
|
-- - ci' - [C]hange [I]nside [']quote
|
||||||
|
require('mini.ai').setup { n_lines = 500 }
|
||||||
|
|
||||||
|
-- Add/delete/replace surroundings (brackets, quotes, etc.)
|
||||||
|
--
|
||||||
|
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
|
||||||
|
-- - sd' - [S]urround [D]elete [']quotes
|
||||||
|
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||||
|
require('mini.surround').setup()
|
||||||
|
|
||||||
|
-- Simple and easy statusline.
|
||||||
|
-- You could remove this setup call if you don't like it,
|
||||||
|
-- and try some other statusline plugin
|
||||||
|
local statusline = require 'mini.statusline'
|
||||||
|
-- set use_icons to true if you have a Nerd Font
|
||||||
|
statusline.setup { use_icons = vim.g.have_nerd_font }
|
||||||
|
|
||||||
|
-- You can configure sections in the statusline by overriding their
|
||||||
|
-- default behavior. For example, here we set the section for
|
||||||
|
-- cursor location to LINE:COLUMN
|
||||||
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
|
statusline.section_location = function()
|
||||||
|
return '%2l:%-2v'
|
||||||
|
end
|
||||||
|
|
||||||
|
-- ... and there is more!
|
||||||
|
-- Check out: https://github.com/echasnovski/mini.nvim
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ -- Highlight, edit, and navigate code
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
build = ':TSUpdate',
|
||||||
|
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||||
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||||
|
opts = {
|
||||||
|
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
|
||||||
|
-- Autoinstall languages that are not installed
|
||||||
|
auto_install = true,
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
-- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
|
||||||
|
-- If you are experiencing weird indenting issues, add the language to
|
||||||
|
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
|
||||||
|
additional_vim_regex_highlighting = { 'ruby' },
|
||||||
|
},
|
||||||
|
indent = { enable = true, disable = { 'ruby' } },
|
||||||
|
},
|
||||||
|
-- There are additional nvim-treesitter modules that you can use to interact
|
||||||
|
-- with nvim-treesitter. You should go explore a few and see what interests you:
|
||||||
|
--
|
||||||
|
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
|
||||||
|
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
|
||||||
|
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
||||||
|
},
|
||||||
|
|
||||||
|
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||||
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
||||||
|
-- place them in the correct locations.
|
||||||
|
|
||||||
|
-- NOTE: Next step on your Neovim journey: Add/Configure additional plugins for Kickstart
|
||||||
|
--
|
||||||
|
-- Here are some example plugins that I've included in the Kickstart repository.
|
||||||
|
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
|
||||||
|
--
|
||||||
|
-- require 'kickstart.plugins.debug',
|
||||||
|
-- require 'kickstart.plugins.indent_line',
|
||||||
|
-- require 'kickstart.plugins.lint',
|
||||||
|
-- require 'kickstart.plugins.autopairs',
|
||||||
|
-- require 'kickstart.plugins.neo-tree',
|
||||||
|
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||||
|
|
||||||
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||||
|
-- This is the easiest way to modularize your config.
|
||||||
|
--
|
||||||
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||||
|
{ import = 'custom.plugins' },
|
||||||
|
--
|
||||||
|
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
|
||||||
|
-- Or use telescope!
|
||||||
|
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
|
||||||
|
-- you can continue same window with `<space>sr` which resumes last telescope search
|
||||||
|
}, {
|
||||||
|
ui = {
|
||||||
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||||
|
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
||||||
|
icons = vim.g.have_nerd_font and {} or {
|
||||||
|
cmd = '⌘',
|
||||||
|
config = '🛠',
|
||||||
|
event = '📅',
|
||||||
|
ft = '📂',
|
||||||
|
init = '⚙',
|
||||||
|
keys = '🗝',
|
||||||
|
plugin = '🔌',
|
||||||
|
runtime = '💻',
|
||||||
|
require = '🌙',
|
||||||
|
source = '📄',
|
||||||
|
start = '🚀',
|
||||||
|
task = '📌',
|
||||||
|
lazy = '💤 ',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
9
neovim/kickstart/lua/custom/plugins/auto-save.lua
Normal file
9
neovim/kickstart/lua/custom/plugins/auto-save.lua
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
"okuuva/auto-save.nvim",
|
||||||
|
cmd = "ASToggle", -- optional for lazy loading on command
|
||||||
|
event = { "InsertLeave", "TextChanged" }, -- optional for lazy loading on trigger events
|
||||||
|
opts = {
|
||||||
|
-- your config goes here
|
||||||
|
-- or just leave it empty :)
|
||||||
|
},
|
||||||
|
}
|
||||||
95
neovim/kickstart/lua/custom/plugins/flutter-tools.lua
Normal file
95
neovim/kickstart/lua/custom/plugins/flutter-tools.lua
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
return {
|
||||||
|
'akinsho/flutter-tools.nvim',
|
||||||
|
lazy = false,
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'stevearc/dressing.nvim', -- optional for vim.ui.select
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local flutterConfig = require("flutter-tools")
|
||||||
|
|
||||||
|
flutterConfig.setup {
|
||||||
|
ui = {
|
||||||
|
border = "rounded",
|
||||||
|
notification_style = 'native'
|
||||||
|
},
|
||||||
|
decorations = {
|
||||||
|
statusline = {
|
||||||
|
-- set to true to be able use the 'flutter_tools_decorations.app_version' in your statusline
|
||||||
|
-- this will show the current version of the flutter app from the pubspec.yaml file
|
||||||
|
app_version = true,
|
||||||
|
-- set to true to be able use the 'flutter_tools_decorations.device' in your statusline
|
||||||
|
-- this will show the currently running device if an application was started with a specific
|
||||||
|
-- device
|
||||||
|
device = true,
|
||||||
|
-- set to true to be able use the 'flutter_tools_decorations.project_config' in your statusline
|
||||||
|
-- this will show the currently selected project configuration
|
||||||
|
project_config = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
debugger = { -- integrate with nvim dap + install dart code debugger
|
||||||
|
enabled = false,
|
||||||
|
run_via_dap = false, -- use dap instead of a plenary job to run flutter apps
|
||||||
|
-- if empty dap will not stop on any exceptions, otherwise it will stop on those specified
|
||||||
|
-- see |:help dap.set_exception_breakpoints()| for more info
|
||||||
|
exception_breakpoints = {}
|
||||||
|
},
|
||||||
|
root_patterns = { ".git", "pubspec.yaml" }, -- patterns to find the root of your flutter project
|
||||||
|
fvm = true, -- takes priority over path, uses <workspace>/.fvm/flutter_sdk if enabled
|
||||||
|
widget_guides = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
|
closing_tags = {
|
||||||
|
highlight = "Comment", -- highlight for the closing tag
|
||||||
|
prefix = "//", -- character to use for close tag e.g. > Widget
|
||||||
|
enabled = true -- set to false to disable
|
||||||
|
},
|
||||||
|
dev_log = {
|
||||||
|
enabled = true,
|
||||||
|
notify_errors = false, -- if there is an error whilst running then notify the user
|
||||||
|
open_cmd = "tabedit", -- command to us
|
||||||
|
},
|
||||||
|
dev_tools = {
|
||||||
|
autostart = false, -- autostart devtools server if not detected
|
||||||
|
auto_open_browser = false, -- Automatically opens devtools in the browser
|
||||||
|
},
|
||||||
|
outline = {
|
||||||
|
open_cmd = "30vnew", -- command to use to open the outline buffer
|
||||||
|
auto_open = false -- if true this will open the outline automatically when it is first populated
|
||||||
|
},
|
||||||
|
lsp = {
|
||||||
|
color = { -- show the derived colours for dart variables
|
||||||
|
enabled = false, -- whether or not to highlight color variables at all, only supported on flutter >= 2.10
|
||||||
|
background = false, -- highlight the background
|
||||||
|
background_color = nil, -- required, when background is transparent (i.e. background_color = { r = 19, g = 17, b = 24},)
|
||||||
|
foreground = false, -- highlight the foreground
|
||||||
|
virtual_text = true, -- show the highlight using virtual text
|
||||||
|
virtual_text_str = "■", -- the virtual text character to highlight
|
||||||
|
},
|
||||||
|
--- OR you can specify a function to deactivate or change or control how the config is created
|
||||||
|
capabilities = function(config)
|
||||||
|
config.specificThingIDontWant = false
|
||||||
|
return config
|
||||||
|
end,
|
||||||
|
analysisExcludedFolders = { "./fvm/" },
|
||||||
|
-- see the link below for details on each option:
|
||||||
|
-- https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/lsp_spec/README.md#client-workspace-configuration
|
||||||
|
settings = {
|
||||||
|
showTodos = true,
|
||||||
|
completeFunctionCalls = true,
|
||||||
|
renameFilesWithClasses = "prompt", -- "always"
|
||||||
|
-- enableSnippets = true,
|
||||||
|
updateImportsOnRename = true, -- Whether to update imports and other directives when files are renamed. Required for `FlutterRename` command.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-- [[ Configure Flutter tools]]
|
||||||
|
vim.keymap.set('n', '<leader>r', require('telescope').extensions.flutter.commands, { desc = 'Open command Flutter' })
|
||||||
|
vim.keymap.set('n', '<leader>br', function()
|
||||||
|
vim.cmd('20new')
|
||||||
|
vim.cmd('te fvm flutter packages pub run build_runner build --delete-conflicting-outputs')
|
||||||
|
vim.cmd('2sleep | normal G')
|
||||||
|
end)
|
||||||
|
-- '<Cmd>20new | te fvm flutter pub get && fvm flutter packages pub run build_runner build --delete-conflicting-outputs<CR> | $')
|
||||||
|
end
|
||||||
|
};
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"lukoshkin/highlight-whitespace",
|
||||||
|
config=true,
|
||||||
|
}
|
||||||
|
}
|
||||||
5
neovim/kickstart/lua/custom/plugins/init.lua
Normal file
5
neovim/kickstart/lua/custom/plugins/init.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-- You can add your own plugins here or in other files in this directory!
|
||||||
|
-- I promise not to create any merge conflicts in this directory :)
|
||||||
|
--
|
||||||
|
-- See the kickstart.nvim README for more information
|
||||||
|
return {}
|
||||||
20
neovim/kickstart/lua/custom/plugins/kiwi.lua
Normal file
20
neovim/kickstart/lua/custom/plugins/kiwi.lua
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
return {
|
||||||
|
'serenevoid/kiwi.nvim',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
|
opts = {
|
||||||
|
{
|
||||||
|
name = "work",
|
||||||
|
path = "/home/danmac/Nextcloud/Notes/Work"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "personal",
|
||||||
|
path = "/home/danmac/Nextcloud/Notes/Personal"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>ww", ":lua require(\"kiwi\").open_wiki_index()<cr>", desc = "Open Wiki index" },
|
||||||
|
{ "<leader>wp", ":lua require(\"kiwi\").open_wiki_index(\"personal\")<cr>", desc = "Open index of personal wiki" },
|
||||||
|
{ "T", ":lua require(\"kiwi\").todo.toggle()<cr>", desc = "Toggle Markdown Task" }
|
||||||
|
},
|
||||||
|
lazy = true
|
||||||
|
}
|
||||||
7
neovim/kickstart/lua/custom/plugins/markdown-preview.lua
Normal file
7
neovim/kickstart/lua/custom/plugins/markdown-preview.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||||
|
ft = { "markdown" },
|
||||||
|
build = function() vim.fn["mkdp#util#install"]() end,
|
||||||
|
vim.keymap.set('n', '<leader>mp', ':MarkdownPreviewToggle<cr>', { desc = '[M]arkdown[P]reviewToggle' })
|
||||||
|
}
|
||||||
13
neovim/kickstart/lua/custom/plugins/nvim-tree.lua
Normal file
13
neovim/kickstart/lua/custom/plugins/nvim-tree.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
return {
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
version = "*",
|
||||||
|
lazy = false,
|
||||||
|
dependencies = {
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("nvim-tree").setup {}
|
||||||
|
end,
|
||||||
|
vim.keymap.set('n', '<leader>nt', ':NvimTreeToggle<cr>', { desc = '[N]vimTree [T]oggle' })
|
||||||
|
}
|
||||||
|
|
||||||
4
neovim/kickstart/lua/custom/plugins/scratch.lua
Normal file
4
neovim/kickstart/lua/custom/plugins/scratch.lua
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
"LintaoAmons/scratch.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
}
|
||||||
18
neovim/kickstart/lua/custom/plugins/venv-selector.lua
Normal file
18
neovim/kickstart/lua/custom/plugins/venv-selector.lua
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"linux-cultist/venv-selector.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap-python", --optional
|
||||||
|
{ "nvim-telescope/telescope.nvim", branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim" } },
|
||||||
|
},
|
||||||
|
lazy = false,
|
||||||
|
branch = "regexp", -- This is the regexp branch, use this for the new version
|
||||||
|
config = function()
|
||||||
|
require("venv-selector").setup()
|
||||||
|
end,
|
||||||
|
keys = {
|
||||||
|
{ ",v", "<cmd>VenvSelect<cr>" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
"christoomey/vim-tmux-navigator",
|
||||||
|
lazy = false,
|
||||||
|
vim.keymap.set('n', '<C-h>', ':TmuxNavigateLeft<cr>', { desc = 'Tmux Navigate Left' }),
|
||||||
|
vim.keymap.set('n', '<C-l>', ':TmuxNavigateRight<cr>', { desc = 'Tmux Navigate Right' }),
|
||||||
|
vim.keymap.set('n', '<C-j>', ':TmuxNavigateDown<cr>', { desc = 'Tmux Navigate Down' }),
|
||||||
|
vim.keymap.set('n', '<C-k>', ':TmuxNavigateUp<cr>', { desc = 'Tmux Navigate Up' }),
|
||||||
|
}
|
||||||
52
neovim/kickstart/lua/kickstart/health.lua
Normal file
52
neovim/kickstart/lua/kickstart/health.lua
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
--[[
|
||||||
|
--
|
||||||
|
-- This file is not required for your own configuration,
|
||||||
|
-- but helps people determine if their system is setup correctly.
|
||||||
|
--
|
||||||
|
--]]
|
||||||
|
|
||||||
|
local check_version = function()
|
||||||
|
local verstr = tostring(vim.version())
|
||||||
|
if not vim.version.ge then
|
||||||
|
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if vim.version.ge(vim.version(), '0.10-dev') then
|
||||||
|
vim.health.ok(string.format("Neovim version is: '%s'", verstr))
|
||||||
|
else
|
||||||
|
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local check_external_reqs = function()
|
||||||
|
-- Basic utils: `git`, `make`, `unzip`
|
||||||
|
for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do
|
||||||
|
local is_executable = vim.fn.executable(exe) == 1
|
||||||
|
if is_executable then
|
||||||
|
vim.health.ok(string.format("Found executable: '%s'", exe))
|
||||||
|
else
|
||||||
|
vim.health.warn(string.format("Could not find executable: '%s'", exe))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
check = function()
|
||||||
|
vim.health.start 'kickstart.nvim'
|
||||||
|
|
||||||
|
vim.health.info [[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
|
||||||
|
|
||||||
|
Fix only warnings for plugins and languages you intend to use.
|
||||||
|
Mason will give warnings for languages that are not installed.
|
||||||
|
You do not need to install, unless you want to use those languages!]]
|
||||||
|
|
||||||
|
local uv = vim.uv or vim.loop
|
||||||
|
vim.health.info('System Information: ' .. vim.inspect(uv.os_uname()))
|
||||||
|
|
||||||
|
check_version()
|
||||||
|
check_external_reqs()
|
||||||
|
end,
|
||||||
|
}
|
||||||
16
neovim/kickstart/lua/kickstart/plugins/autopairs.lua
Normal file
16
neovim/kickstart/lua/kickstart/plugins/autopairs.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
-- autopairs
|
||||||
|
-- https://github.com/windwp/nvim-autopairs
|
||||||
|
|
||||||
|
return {
|
||||||
|
'windwp/nvim-autopairs',
|
||||||
|
event = 'InsertEnter',
|
||||||
|
-- Optional dependency
|
||||||
|
dependencies = { 'hrsh7th/nvim-cmp' },
|
||||||
|
config = function()
|
||||||
|
require('nvim-autopairs').setup {}
|
||||||
|
-- If you want to automatically add `(` after selecting a function or method
|
||||||
|
local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
|
||||||
|
local cmp = require 'cmp'
|
||||||
|
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done())
|
||||||
|
end,
|
||||||
|
}
|
||||||
117
neovim/kickstart/lua/kickstart/plugins/debug.lua
Normal file
117
neovim/kickstart/lua/kickstart/plugins/debug.lua
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
-- debug.lua
|
||||||
|
--
|
||||||
|
-- Shows how to use the DAP plugin to debug your code.
|
||||||
|
--
|
||||||
|
-- Primarily focused on configuring the debugger for Go, but can
|
||||||
|
-- be extended to other languages as well. That's why it's called
|
||||||
|
-- kickstart.nvim and not kitchen-sink.nvim ;)
|
||||||
|
|
||||||
|
return {
|
||||||
|
-- NOTE: Yes, you can install new plugins here!
|
||||||
|
'mfussenegger/nvim-dap',
|
||||||
|
-- NOTE: And you can specify dependencies as well
|
||||||
|
dependencies = {
|
||||||
|
-- Creates a beautiful debugger UI
|
||||||
|
'rcarriga/nvim-dap-ui',
|
||||||
|
|
||||||
|
-- Required dependency for nvim-dap-ui
|
||||||
|
'nvim-neotest/nvim-nio',
|
||||||
|
|
||||||
|
-- Installs the debug adapters for you
|
||||||
|
'williamboman/mason.nvim',
|
||||||
|
'jay-babu/mason-nvim-dap.nvim',
|
||||||
|
|
||||||
|
-- Add your own debuggers here
|
||||||
|
'leoluz/nvim-dap-go',
|
||||||
|
},
|
||||||
|
keys = function(_, keys)
|
||||||
|
local dap = require 'dap'
|
||||||
|
local dapui = require 'dapui'
|
||||||
|
return {
|
||||||
|
-- Basic debugging keymaps, feel free to change to your liking!
|
||||||
|
{ '<F5>', dap.continue, desc = 'Debug: Start/Continue' },
|
||||||
|
{ '<F1>', dap.step_into, desc = 'Debug: Step Into' },
|
||||||
|
{ '<F2>', dap.step_over, desc = 'Debug: Step Over' },
|
||||||
|
{ '<F3>', dap.step_out, desc = 'Debug: Step Out' },
|
||||||
|
{ '<leader>b', dap.toggle_breakpoint, desc = 'Debug: Toggle Breakpoint' },
|
||||||
|
{
|
||||||
|
'<leader>B',
|
||||||
|
function()
|
||||||
|
dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ')
|
||||||
|
end,
|
||||||
|
desc = 'Debug: Set Breakpoint',
|
||||||
|
},
|
||||||
|
-- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception.
|
||||||
|
{ '<F7>', dapui.toggle, desc = 'Debug: See last session result.' },
|
||||||
|
unpack(keys),
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
config = function()
|
||||||
|
local dap = require 'dap'
|
||||||
|
local dapui = require 'dapui'
|
||||||
|
|
||||||
|
require('mason-nvim-dap').setup {
|
||||||
|
-- Makes a best effort to setup the various debuggers with
|
||||||
|
-- reasonable debug configurations
|
||||||
|
automatic_installation = true,
|
||||||
|
|
||||||
|
-- You can provide additional configuration to the handlers,
|
||||||
|
-- see mason-nvim-dap README for more information
|
||||||
|
handlers = {},
|
||||||
|
|
||||||
|
-- You'll need to check that you have the required things installed
|
||||||
|
-- online, please don't ask me how to install them :)
|
||||||
|
ensure_installed = {
|
||||||
|
-- Update this to ensure that you have the debuggers for the langs you want
|
||||||
|
'delve',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Dap UI setup
|
||||||
|
-- For more information, see |:help nvim-dap-ui|
|
||||||
|
dapui.setup {
|
||||||
|
-- Set icons to characters that are more likely to work in every terminal.
|
||||||
|
-- Feel free to remove or use ones that you like more! :)
|
||||||
|
-- Don't feel like these are good choices.
|
||||||
|
icons = { expanded = '▾', collapsed = '▸', current_frame = '*' },
|
||||||
|
controls = {
|
||||||
|
icons = {
|
||||||
|
pause = '⏸',
|
||||||
|
play = '▶',
|
||||||
|
step_into = '⏎',
|
||||||
|
step_over = '⏭',
|
||||||
|
step_out = '⏮',
|
||||||
|
step_back = 'b',
|
||||||
|
run_last = '▶▶',
|
||||||
|
terminate = '⏹',
|
||||||
|
disconnect = '⏏',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Change breakpoint icons
|
||||||
|
-- vim.api.nvim_set_hl(0, 'DapBreak', { fg = '#e51400' })
|
||||||
|
-- vim.api.nvim_set_hl(0, 'DapStop', { fg = '#ffcc00' })
|
||||||
|
-- local breakpoint_icons = vim.g.have_nerd_font
|
||||||
|
-- and { Breakpoint = '', BreakpointCondition = '', BreakpointRejected = '', LogPoint = '', Stopped = '' }
|
||||||
|
-- or { Breakpoint = '●', BreakpointCondition = '⊜', BreakpointRejected = '⊘', LogPoint = '◆', Stopped = '⭔' }
|
||||||
|
-- for type, icon in pairs(breakpoint_icons) do
|
||||||
|
-- local tp = 'Dap' .. type
|
||||||
|
-- local hl = (type == 'Stopped') and 'DapStop' or 'DapBreak'
|
||||||
|
-- vim.fn.sign_define(tp, { text = icon, texthl = hl, numhl = hl })
|
||||||
|
-- end
|
||||||
|
|
||||||
|
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
|
||||||
|
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
|
||||||
|
dap.listeners.before.event_exited['dapui_config'] = dapui.close
|
||||||
|
|
||||||
|
-- Install golang specific config
|
||||||
|
require('dap-go').setup {
|
||||||
|
delve = {
|
||||||
|
-- On Windows delve must be run attached or it crashes.
|
||||||
|
-- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring
|
||||||
|
detached = vim.fn.has 'win32' == 0,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
||||||
61
neovim/kickstart/lua/kickstart/plugins/gitsigns.lua
Normal file
61
neovim/kickstart/lua/kickstart/plugins/gitsigns.lua
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
-- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||||
|
-- NOTE: gitsigns is already included in init.lua but contains only the base
|
||||||
|
-- config. This will add also the recommended keymaps.
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
opts = {
|
||||||
|
on_attach = function(bufnr)
|
||||||
|
local gitsigns = require 'gitsigns'
|
||||||
|
|
||||||
|
local function map(mode, l, r, opts)
|
||||||
|
opts = opts or {}
|
||||||
|
opts.buffer = bufnr
|
||||||
|
vim.keymap.set(mode, l, r, opts)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Navigation
|
||||||
|
map('n', ']c', function()
|
||||||
|
if vim.wo.diff then
|
||||||
|
vim.cmd.normal { ']c', bang = true }
|
||||||
|
else
|
||||||
|
gitsigns.nav_hunk 'next'
|
||||||
|
end
|
||||||
|
end, { desc = 'Jump to next git [c]hange' })
|
||||||
|
|
||||||
|
map('n', '[c', function()
|
||||||
|
if vim.wo.diff then
|
||||||
|
vim.cmd.normal { '[c', bang = true }
|
||||||
|
else
|
||||||
|
gitsigns.nav_hunk 'prev'
|
||||||
|
end
|
||||||
|
end, { desc = 'Jump to previous git [c]hange' })
|
||||||
|
|
||||||
|
-- Actions
|
||||||
|
-- visual mode
|
||||||
|
map('v', '<leader>hs', function()
|
||||||
|
gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
|
||||||
|
end, { desc = 'stage git hunk' })
|
||||||
|
map('v', '<leader>hr', function()
|
||||||
|
gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
|
||||||
|
end, { desc = 'reset git hunk' })
|
||||||
|
-- normal mode
|
||||||
|
map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' })
|
||||||
|
map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' })
|
||||||
|
map('n', '<leader>hS', gitsigns.stage_buffer, { desc = 'git [S]tage buffer' })
|
||||||
|
map('n', '<leader>hu', gitsigns.undo_stage_hunk, { desc = 'git [u]ndo stage hunk' })
|
||||||
|
map('n', '<leader>hR', gitsigns.reset_buffer, { desc = 'git [R]eset buffer' })
|
||||||
|
map('n', '<leader>hp', gitsigns.preview_hunk, { desc = 'git [p]review hunk' })
|
||||||
|
map('n', '<leader>hb', gitsigns.blame_line, { desc = 'git [b]lame line' })
|
||||||
|
map('n', '<leader>hd', gitsigns.diffthis, { desc = 'git [d]iff against index' })
|
||||||
|
map('n', '<leader>hD', function()
|
||||||
|
gitsigns.diffthis '@'
|
||||||
|
end, { desc = 'git [D]iff against last commit' })
|
||||||
|
-- Toggles
|
||||||
|
map('n', '<leader>tb', gitsigns.toggle_current_line_blame, { desc = '[T]oggle git show [b]lame line' })
|
||||||
|
map('n', '<leader>tD', gitsigns.toggle_deleted, { desc = '[T]oggle git show [D]eleted' })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
9
neovim/kickstart/lua/kickstart/plugins/indent_line.lua
Normal file
9
neovim/kickstart/lua/kickstart/plugins/indent_line.lua
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
{ -- Add indentation guides even on blank lines
|
||||||
|
'lukas-reineke/indent-blankline.nvim',
|
||||||
|
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||||
|
-- See `:help ibl`
|
||||||
|
main = 'ibl',
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
|
}
|
||||||
60
neovim/kickstart/lua/kickstart/plugins/lint.lua
Normal file
60
neovim/kickstart/lua/kickstart/plugins/lint.lua
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
return {
|
||||||
|
|
||||||
|
{ -- Linting
|
||||||
|
'mfussenegger/nvim-lint',
|
||||||
|
event = { 'BufReadPre', 'BufNewFile' },
|
||||||
|
config = function()
|
||||||
|
local lint = require 'lint'
|
||||||
|
lint.linters_by_ft = {
|
||||||
|
markdown = { 'markdownlint' },
|
||||||
|
}
|
||||||
|
|
||||||
|
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||||
|
-- instead set linters_by_ft like this:
|
||||||
|
-- lint.linters_by_ft = lint.linters_by_ft or {}
|
||||||
|
-- lint.linters_by_ft['markdown'] = { 'markdownlint' }
|
||||||
|
--
|
||||||
|
-- However, note that this will enable a set of default linters,
|
||||||
|
-- which will cause errors unless these tools are available:
|
||||||
|
-- {
|
||||||
|
-- clojure = { "clj-kondo" },
|
||||||
|
-- dockerfile = { "hadolint" },
|
||||||
|
-- inko = { "inko" },
|
||||||
|
-- janet = { "janet" },
|
||||||
|
-- json = { "jsonlint" },
|
||||||
|
-- markdown = { "vale" },
|
||||||
|
-- rst = { "vale" },
|
||||||
|
-- ruby = { "ruby" },
|
||||||
|
-- terraform = { "tflint" },
|
||||||
|
-- text = { "vale" }
|
||||||
|
-- }
|
||||||
|
--
|
||||||
|
-- You can disable the default linters by setting their filetypes to nil:
|
||||||
|
-- lint.linters_by_ft['clojure'] = nil
|
||||||
|
-- lint.linters_by_ft['dockerfile'] = nil
|
||||||
|
-- lint.linters_by_ft['inko'] = nil
|
||||||
|
-- lint.linters_by_ft['janet'] = nil
|
||||||
|
-- lint.linters_by_ft['json'] = nil
|
||||||
|
-- lint.linters_by_ft['markdown'] = nil
|
||||||
|
-- lint.linters_by_ft['rst'] = nil
|
||||||
|
-- lint.linters_by_ft['ruby'] = nil
|
||||||
|
-- lint.linters_by_ft['terraform'] = nil
|
||||||
|
-- lint.linters_by_ft['text'] = nil
|
||||||
|
|
||||||
|
-- Create autocommand which carries out the actual linting
|
||||||
|
-- on the specified events.
|
||||||
|
local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true })
|
||||||
|
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, {
|
||||||
|
group = lint_augroup,
|
||||||
|
callback = function()
|
||||||
|
-- Only run the linter in buffers that you can modify in order to
|
||||||
|
-- avoid superfluous noise, notably within the handy LSP pop-ups that
|
||||||
|
-- describe the hovered symbol using Markdown.
|
||||||
|
if vim.opt_local.modifiable:get() then
|
||||||
|
lint.try_lint()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
25
neovim/kickstart/lua/kickstart/plugins/neo-tree.lua
Normal file
25
neovim/kickstart/lua/kickstart/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
-- Neo-tree is a Neovim plugin to browse the file system
|
||||||
|
-- https://github.com/nvim-neo-tree/neo-tree.nvim
|
||||||
|
|
||||||
|
return {
|
||||||
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
|
version = '*',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
},
|
||||||
|
cmd = 'Neotree',
|
||||||
|
keys = {
|
||||||
|
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
filesystem = {
|
||||||
|
window = {
|
||||||
|
mappings = {
|
||||||
|
['\\'] = 'close_window',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
654
niri/config.kdl
Normal file
654
niri/config.kdl
Normal file
@@ -0,0 +1,654 @@
|
|||||||
|
// This config is in the KDL format: https://kdl.dev
|
||||||
|
// "/-" comments out the following node.
|
||||||
|
// Check the wiki for a full description of the configuration:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Introduction
|
||||||
|
|
||||||
|
hotkey-overlay {
|
||||||
|
skip-at-startup
|
||||||
|
}
|
||||||
|
|
||||||
|
// Input device configuration.
|
||||||
|
// Find the full list of options on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
|
||||||
|
input {
|
||||||
|
keyboard {
|
||||||
|
xkb {
|
||||||
|
// You can set rules, model, layout, variant and options.
|
||||||
|
// For more information, see xkeyboard-config(7).
|
||||||
|
|
||||||
|
// For example:
|
||||||
|
// layout "us,ru"
|
||||||
|
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enable numlock on startup, omitting this setting disables it.
|
||||||
|
numlock
|
||||||
|
}
|
||||||
|
|
||||||
|
// Next sections include libinput settings.
|
||||||
|
// Omitting settings disables them, or leaves them at their default values.
|
||||||
|
touchpad {
|
||||||
|
off
|
||||||
|
// tap
|
||||||
|
// dwt
|
||||||
|
// dwtp
|
||||||
|
// drag false
|
||||||
|
// drag-lock
|
||||||
|
// natural-scroll
|
||||||
|
// accel-speed 0.2
|
||||||
|
// accel-profile "flat"
|
||||||
|
// scroll-method "two-finger"
|
||||||
|
// disabled-on-external-mouse
|
||||||
|
}
|
||||||
|
|
||||||
|
mouse {
|
||||||
|
// off
|
||||||
|
// natural-scroll
|
||||||
|
// accel-speed 0.2
|
||||||
|
// accel-profile "flat"
|
||||||
|
// scroll-method "no-scroll"
|
||||||
|
}
|
||||||
|
|
||||||
|
trackpoint {
|
||||||
|
// off
|
||||||
|
|
||||||
|
// natural-scroll
|
||||||
|
// accel-speed 0.2
|
||||||
|
// accel-profile "flat"
|
||||||
|
// scroll-method "on-button-down"
|
||||||
|
// scroll-button 273
|
||||||
|
// middle-emulation
|
||||||
|
}
|
||||||
|
|
||||||
|
// Uncomment this to make the mouse warp to the center of newly focused windows.
|
||||||
|
warp-mouse-to-focus
|
||||||
|
|
||||||
|
// Focus windows and outputs automatically when moving the mouse into them.
|
||||||
|
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||||
|
focus-follows-mouse max-scroll-amount="0%"
|
||||||
|
|
||||||
|
// Change the Mod key to Alt
|
||||||
|
mod-key "Alt"
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can configure outputs by their name, which you can find
|
||||||
|
// by running `niri msg outputs` while inside a niri instance.
|
||||||
|
// The built-in laptop monitor is usually called "eDP-1".
|
||||||
|
// Find more information on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
||||||
|
// Remember to uncomment the node by removing "/-"!
|
||||||
|
/-output "eDP-1" {
|
||||||
|
// Uncomment this line to disable this output.
|
||||||
|
// off
|
||||||
|
|
||||||
|
// Resolution and, optionally, refresh rate of the output.
|
||||||
|
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
||||||
|
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
||||||
|
// for the resolution.
|
||||||
|
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||||||
|
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
||||||
|
mode "1920x1080@120.030"
|
||||||
|
|
||||||
|
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||||
|
scale 2
|
||||||
|
|
||||||
|
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||||
|
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||||
|
transform "normal"
|
||||||
|
|
||||||
|
// Position of the output in the global coordinate space.
|
||||||
|
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
|
||||||
|
// The cursor can only move between directly adjacent outputs.
|
||||||
|
// Output scale and rotation has to be taken into account for positioning:
|
||||||
|
// outputs are sized in logical, or scaled, pixels.
|
||||||
|
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
|
||||||
|
// so to put another output directly adjacent to it on the right, set its x to 1920.
|
||||||
|
// If the position is unset or results in an overlap, the output is instead placed
|
||||||
|
// automatically.
|
||||||
|
position x=1280 y=0
|
||||||
|
}
|
||||||
|
output "Acer Technologies KG272U TP1SA002851C" {
|
||||||
|
mode "2560x1440"
|
||||||
|
scale 1
|
||||||
|
transform "90"
|
||||||
|
position x=0 y=0
|
||||||
|
}
|
||||||
|
|
||||||
|
output "ViewSonic Corporation VX2758-Series VVF190100000" {
|
||||||
|
mode "2560x1440"
|
||||||
|
scale 1
|
||||||
|
transform "normal"
|
||||||
|
position x=1440 y=755
|
||||||
|
focus-at-startup
|
||||||
|
}
|
||||||
|
|
||||||
|
// Settings that influence how windows are positioned and sized.
|
||||||
|
// Find more information on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
||||||
|
layout {
|
||||||
|
// Set gaps around windows in logical pixels.
|
||||||
|
gaps 8
|
||||||
|
|
||||||
|
// When to center a column when changing focus, options are:
|
||||||
|
// - "never", default behavior, focusing an off-screen column will keep at the left
|
||||||
|
// or right edge of the screen.
|
||||||
|
// - "always", the focused column will always be centered.
|
||||||
|
// - "on-overflow", focusing a column will center it if it doesn't fit
|
||||||
|
// together with the previously focused column.
|
||||||
|
center-focused-column "never"
|
||||||
|
|
||||||
|
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||||
|
preset-column-widths {
|
||||||
|
// Proportion sets the width as a fraction of the output width, taking gaps into account.
|
||||||
|
// For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
|
||||||
|
// The default preset widths are 1/3, 1/2 and 2/3 of the output.
|
||||||
|
proportion 0.33333
|
||||||
|
proportion 0.5
|
||||||
|
proportion 0.66667
|
||||||
|
proportion 1.0
|
||||||
|
|
||||||
|
// Fixed sets the width in logical pixels exactly.
|
||||||
|
// fixed 1920
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
|
||||||
|
// preset-window-heights { }
|
||||||
|
|
||||||
|
// You can change the default width of the new windows.
|
||||||
|
default-column-width { proportion 0.5; }
|
||||||
|
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
||||||
|
// default-column-width {}
|
||||||
|
|
||||||
|
// By default focus ring and border are rendered as a solid background rectangle
|
||||||
|
// behind windows. That is, they will show up through semitransparent windows.
|
||||||
|
// This is because windows using client-side decorations can have an arbitrary shape.
|
||||||
|
//
|
||||||
|
// If you don't like that, you should uncomment `prefer-no-csd` below.
|
||||||
|
// Niri will draw focus ring and border *around* windows that agree to omit their
|
||||||
|
// client-side decorations.
|
||||||
|
//
|
||||||
|
// Alternatively, you can override it with a window rule called
|
||||||
|
// `draw-border-with-background`.
|
||||||
|
|
||||||
|
// You can change how the focus ring looks.
|
||||||
|
focus-ring {
|
||||||
|
// Uncomment this line to disable the focus ring.
|
||||||
|
// off
|
||||||
|
|
||||||
|
// How many logical pixels the ring extends out from the windows.
|
||||||
|
width 4
|
||||||
|
|
||||||
|
// Colors can be set in a variety of ways:
|
||||||
|
// - CSS named colors: "red"
|
||||||
|
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
|
||||||
|
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
||||||
|
|
||||||
|
// Color of the ring on the active monitor.
|
||||||
|
// active-color "#7fc8ff"
|
||||||
|
|
||||||
|
// Color of the ring on inactive monitors.
|
||||||
|
inactive-color "#505050"
|
||||||
|
|
||||||
|
// You can also use gradients. They take precedence over solid colors.
|
||||||
|
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
||||||
|
// The angle is the same as in linear-gradient, and is optional,
|
||||||
|
// defaulting to 180 (top-to-bottom gradient).
|
||||||
|
// You can use any CSS linear-gradient tool on the web to set these up.
|
||||||
|
// Changing the color space is also supported, check the wiki for more info.
|
||||||
|
//
|
||||||
|
active-gradient from="#00ffe5" to="#2887c7" angle=45
|
||||||
|
|
||||||
|
// You can also color the gradient relative to the entire view
|
||||||
|
// of the workspace, rather than relative to just the window itself.
|
||||||
|
// To do that, set relative-to="workspace-view".
|
||||||
|
//
|
||||||
|
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can also add a border. It's similar to the focus ring, but always visible.
|
||||||
|
border {
|
||||||
|
// The settings are the same as for the focus ring.
|
||||||
|
// If you enable the border, you probably want to disable the focus ring.
|
||||||
|
off
|
||||||
|
|
||||||
|
width 4
|
||||||
|
active-color "#ffc87f"
|
||||||
|
inactive-color "#505050"
|
||||||
|
|
||||||
|
// Color of the border around windows that request your attention.
|
||||||
|
urgent-color "#9b0000"
|
||||||
|
|
||||||
|
// active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
|
||||||
|
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can enable drop shadows for windows.
|
||||||
|
shadow {
|
||||||
|
// Uncomment the next line to enable shadows.
|
||||||
|
on
|
||||||
|
|
||||||
|
// By default, the shadow draws only around its window, and not behind it.
|
||||||
|
// Uncomment this setting to make the shadow draw behind its window.
|
||||||
|
//
|
||||||
|
// Note that niri has no way of knowing about the CSD window corner
|
||||||
|
// radius. It has to assume that windows have square corners, leading to
|
||||||
|
// shadow artifacts inside the CSD rounded corners. This setting fixes
|
||||||
|
// those artifacts.
|
||||||
|
//
|
||||||
|
// However, instead you may want to set prefer-no-csd and/or
|
||||||
|
// geometry-corner-radius. Then, niri will know the corner radius and
|
||||||
|
// draw the shadow correctly, without having to draw it behind the
|
||||||
|
// window. These will also remove client-side shadows if the window
|
||||||
|
// draws any.
|
||||||
|
//
|
||||||
|
// draw-behind-window true
|
||||||
|
|
||||||
|
// You can change how shadows look. The values below are in logical
|
||||||
|
// pixels and match the CSS box-shadow properties.
|
||||||
|
|
||||||
|
// Softness controls the shadow blur radius.
|
||||||
|
softness 30
|
||||||
|
|
||||||
|
// Spread expands the shadow.
|
||||||
|
spread 5
|
||||||
|
|
||||||
|
// Offset moves the shadow relative to the window.
|
||||||
|
offset x=0 y=5
|
||||||
|
|
||||||
|
// You can also change the shadow color and opacity.
|
||||||
|
color "#0007"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
||||||
|
// You can think of them as a kind of outer gaps. They are set in logical pixels.
|
||||||
|
// Left and right struts will cause the next window to the side to always be visible.
|
||||||
|
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
||||||
|
// layer-shell panels and regular gaps.
|
||||||
|
struts {
|
||||||
|
// left 64
|
||||||
|
// right 64
|
||||||
|
// top 64
|
||||||
|
// bottom 64
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add lines like this to spawn processes at startup.
|
||||||
|
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||||
|
// which may be more convenient to use.
|
||||||
|
// See the binds section below for more spawn examples.
|
||||||
|
|
||||||
|
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||||
|
// spawn-at-startup "waybar"
|
||||||
|
spawn-at-startup "/home/reivernet/.config/niri/sway_startup" "/home/reivernet/Pictures/Nextcloud/IMG_8618-Enhanced-NR.jpg"
|
||||||
|
spawn-at-startup "xwayland-satellite"
|
||||||
|
spawn-at-startup "cosmic-app-library"
|
||||||
|
|
||||||
|
environment {
|
||||||
|
DISPLAY ":0"
|
||||||
|
}
|
||||||
|
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
||||||
|
// If the client will specifically ask for CSD, the request will be honored.
|
||||||
|
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
|
||||||
|
// This option will also fix border/focus ring drawing behind some semitransparent windows.
|
||||||
|
// After enabling or disabling this, you need to restart the apps for this to take effect.
|
||||||
|
prefer-no-csd
|
||||||
|
|
||||||
|
// You can change the path where screenshots are saved.
|
||||||
|
// A ~ at the front will be expanded to the home directory.
|
||||||
|
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
||||||
|
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||||
|
|
||||||
|
// You can also set this to null to disable saving screenshots to disk.
|
||||||
|
// screenshot-path null
|
||||||
|
|
||||||
|
// Animation settings.
|
||||||
|
// The wiki explains how to configure individual animations:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Animations
|
||||||
|
animations {
|
||||||
|
// Uncomment to turn off all animations.
|
||||||
|
// off
|
||||||
|
|
||||||
|
// Slow down all animations by this factor. Values below 1 speed them up instead.
|
||||||
|
// slowdown 3.0
|
||||||
|
}
|
||||||
|
|
||||||
|
// Window rules let you adjust behavior for individual windows.
|
||||||
|
// Find more information on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
|
||||||
|
|
||||||
|
// Work around WezTerm's initial configure bug
|
||||||
|
// by setting an empty default-column-width.
|
||||||
|
// window-rule {
|
||||||
|
// This regular expression is intentionally made as specific as possible,
|
||||||
|
// since this is the default config, and we want no false positives.
|
||||||
|
// You can get away with just app-id="wezterm" if you want.
|
||||||
|
// match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||||
|
// default-column-width {}
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Open the Firefox picture-in-picture player as floating by default.
|
||||||
|
window-rule {
|
||||||
|
// This app-id regular expression will work for both:
|
||||||
|
// - host Firefox (app-id is "firefox")
|
||||||
|
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||||
|
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||||
|
match app-id=r#"zen$"# title="^Picture-in-Picture$"
|
||||||
|
match app-id=r#"zen$"# title="^Extension:"
|
||||||
|
match app-id=r#"com.nextcloud.desktopclient.nextcloud$"#
|
||||||
|
match app-id=r#"mako"#
|
||||||
|
match app-id="org.gnome.Nautilus" title="Open Folder"
|
||||||
|
match app-id="Intune-portal"
|
||||||
|
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
// Zed and Zen should be 66% wide
|
||||||
|
match app-id="dev.zed.Zed"
|
||||||
|
match app-id="zen"
|
||||||
|
|
||||||
|
default-column-width { proportion 0.66667; }
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
// Solve space property manager
|
||||||
|
match app-id="solvespace"
|
||||||
|
|
||||||
|
default-column-width { proportion 0.75; }
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
// Solve space property manager
|
||||||
|
match title="Property Browser — SolveSpace"
|
||||||
|
|
||||||
|
default-column-width { proportion 0.25; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Example: block out two password managers from screen capture.
|
||||||
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
|
/-window-rule {
|
||||||
|
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||||
|
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||||
|
|
||||||
|
block-out-from "screen-capture"
|
||||||
|
|
||||||
|
// Use this instead if you want them visible on third-party screenshot tools.
|
||||||
|
// block-out-from "screencast"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example: enable rounded corners for all windows.
|
||||||
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
|
window-rule {
|
||||||
|
geometry-corner-radius 12
|
||||||
|
clip-to-geometry true
|
||||||
|
}
|
||||||
|
|
||||||
|
binds {
|
||||||
|
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||||
|
// in the end. To find an XKB name for a particular key, you may use a program
|
||||||
|
// like wev.
|
||||||
|
//
|
||||||
|
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
|
||||||
|
// when running as a winit window.
|
||||||
|
//
|
||||||
|
// Most actions that you can bind here can also be invoked programmatically with
|
||||||
|
// `niri msg action do-something`.
|
||||||
|
|
||||||
|
// Mod-Shift-/, which is usually the same as Mod-?,
|
||||||
|
// shows a list of important hotkeys.
|
||||||
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
|
Mod+T hotkey-overlay-title="Open a Terminal: wezterm" { spawn "wezterm"; }
|
||||||
|
Mod+D hotkey-overlay-title="Run an Application: cosmic-apps" { spawn "cosmic-app-library"; }
|
||||||
|
Mod+B hotkey-overlay-title="Open the Default Browser" { spawn "xdg-open" "http://"; }
|
||||||
|
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock" "-f" "-i" "/usr/share/backgrounds/gnome/swoosh-l.jxl"; }
|
||||||
|
|
||||||
|
// toggle notification panel
|
||||||
|
Mod+Shift+N hotkey-overlay-title="Toggle notification window" { spawn "swaync-client" "-t"; }
|
||||||
|
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||||
|
// Note: the entire command goes as a single argument in the end.
|
||||||
|
// Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
|
||||||
|
|
||||||
|
// Example volume keys mappings for PipeWire & WirePlumber.
|
||||||
|
// The allow-when-locked=true property makes them work even when the session is locked.
|
||||||
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
|
||||||
|
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
|
||||||
|
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||||
|
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||||
|
XF86AudioPlay allow-when-locked=true { spawn "playerctl" "play-pause"; }
|
||||||
|
XF86AudioPrev allow-when-locked=true { spawn "playerctl" "previous"; }
|
||||||
|
XF86AudioNext allow-when-locked=true { spawn "playerctl" "next"; }
|
||||||
|
|
||||||
|
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
||||||
|
// You can also move the mouse into the top-left hot corner,
|
||||||
|
// or do a four-finger swipe up on a touchpad.
|
||||||
|
Mod+O repeat=false { toggle-overview; }
|
||||||
|
|
||||||
|
Mod+Q { close-window; }
|
||||||
|
|
||||||
|
Mod+Left { focus-column-left; }
|
||||||
|
// Mod+Down { focus-window-down; }
|
||||||
|
// Mod+Up { focus-window-up; }
|
||||||
|
Mod+Right { focus-column-right; }
|
||||||
|
Mod+H { focus-column-left; }
|
||||||
|
// Mod+J { focus-window-down; }
|
||||||
|
// Mod+K { focus-window-up; }
|
||||||
|
Mod+L { focus-column-right; }
|
||||||
|
|
||||||
|
Mod+Shift+Left { move-column-left; }
|
||||||
|
// Mod+Shift+Down { move-window-down; }
|
||||||
|
// Mod+Shift+Up { move-window-up; }
|
||||||
|
Mod+Shift+Right { move-column-right; }
|
||||||
|
Mod+Shift+H { move-column-left; }
|
||||||
|
// Mod+Shift+J { move-window-down; }
|
||||||
|
// Mod+Shift+K { move-window-up; }
|
||||||
|
Mod+Shift+L { move-column-right; }
|
||||||
|
|
||||||
|
// Alternative commands that move across workspaces when reaching
|
||||||
|
// the first or last window in a column.
|
||||||
|
Mod+J { focus-window-or-workspace-down; }
|
||||||
|
Mod+K { focus-window-or-workspace-up; }
|
||||||
|
Mod+Down { focus-window-or-workspace-down; }
|
||||||
|
Mod+Up { focus-window-or-workspace-up; }
|
||||||
|
Mod+Shift+J { move-window-down-or-to-workspace-down; }
|
||||||
|
Mod+Shift+K { move-window-up-or-to-workspace-up; }
|
||||||
|
Mod+Shift+Down { move-window-down-or-to-workspace-down; }
|
||||||
|
Mod+Shift+Up { move-window-up-or-to-workspace-up; }
|
||||||
|
|
||||||
|
Mod+Home { focus-column-first; }
|
||||||
|
Mod+End { focus-column-last; }
|
||||||
|
Mod+Ctrl+Home { move-column-to-first; }
|
||||||
|
Mod+Ctrl+End { move-column-to-last; }
|
||||||
|
|
||||||
|
Mod+Ctrl+Left { focus-monitor-left; }
|
||||||
|
Mod+Ctrl+Down { focus-monitor-down; }
|
||||||
|
Mod+Ctrl+Up { focus-monitor-up; }
|
||||||
|
Mod+Ctrl+Right { focus-monitor-right; }
|
||||||
|
Mod+Ctrl+H { focus-monitor-left; }
|
||||||
|
Mod+Ctrl+J { focus-monitor-down; }
|
||||||
|
Mod+Ctrl+K { focus-monitor-up; }
|
||||||
|
Mod+Ctrl+L { focus-monitor-right; }
|
||||||
|
|
||||||
|
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||||
|
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||||
|
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||||
|
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||||
|
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||||
|
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||||
|
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||||
|
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||||
|
|
||||||
|
// Alternatively, there are commands to move just a single window:
|
||||||
|
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
// And you can also move a whole workspace to another monitor:
|
||||||
|
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
Mod+Page_Down { focus-workspace-down; }
|
||||||
|
Mod+Page_Up { focus-workspace-up; }
|
||||||
|
Mod+U { focus-workspace-down; }
|
||||||
|
Mod+I { focus-workspace-up; }
|
||||||
|
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
||||||
|
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+I { move-column-to-workspace-up; }
|
||||||
|
|
||||||
|
// Alternatively, there are commands to move just a single window:
|
||||||
|
// Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
Mod+Shift+Page_Down { move-workspace-down; }
|
||||||
|
Mod+Shift+Page_Up { move-workspace-up; }
|
||||||
|
Mod+Shift+U { move-workspace-down; }
|
||||||
|
Mod+Shift+I { move-workspace-up; }
|
||||||
|
|
||||||
|
// You can bind mouse wheel scroll ticks using the following syntax.
|
||||||
|
// These binds will change direction based on the natural-scroll setting.
|
||||||
|
//
|
||||||
|
// To avoid scrolling through workspaces really fast, you can use
|
||||||
|
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||||
|
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||||
|
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
|
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
|
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||||
|
|
||||||
|
Mod+WheelScrollRight { focus-column-right; }
|
||||||
|
Mod+WheelScrollLeft { focus-column-left; }
|
||||||
|
Mod+Ctrl+WheelScrollRight { move-column-right; }
|
||||||
|
Mod+Ctrl+WheelScrollLeft { move-column-left; }
|
||||||
|
|
||||||
|
// Usually scrolling up and down with Shift in applications results in
|
||||||
|
// horizontal scrolling; these binds replicate that.
|
||||||
|
Mod+Shift+WheelScrollDown { focus-column-right; }
|
||||||
|
Mod+Shift+WheelScrollUp { focus-column-left; }
|
||||||
|
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||||
|
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||||
|
|
||||||
|
// Similarly, you can bind touchpad scroll "ticks".
|
||||||
|
// Touchpad scrolling is continuous, so for these binds it is split into
|
||||||
|
// discrete intervals.
|
||||||
|
// These binds are also affected by touchpad's natural-scroll, so these
|
||||||
|
// example binds are "inverted", since we have natural-scroll enabled for
|
||||||
|
// touchpads by default.
|
||||||
|
// Mod+TouchpadScrollDown { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02+"; }
|
||||||
|
// Mod+TouchpadScrollUp { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02-"; }
|
||||||
|
|
||||||
|
// You can refer to workspaces by index. However, keep in mind that
|
||||||
|
// niri is a dynamic workspace system, so these commands are kind of
|
||||||
|
// "best effort". Trying to refer to a workspace index bigger than
|
||||||
|
// the current workspace count will instead refer to the bottommost
|
||||||
|
// (empty) workspace.
|
||||||
|
//
|
||||||
|
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||||
|
// will all refer to the 3rd workspace.
|
||||||
|
Mod+1 { focus-workspace 1; }
|
||||||
|
Mod+2 { focus-workspace 2; }
|
||||||
|
Mod+3 { focus-workspace 3; }
|
||||||
|
Mod+4 { focus-workspace 4; }
|
||||||
|
Mod+5 { focus-workspace 5; }
|
||||||
|
Mod+6 { focus-workspace 6; }
|
||||||
|
Mod+7 { focus-workspace 7; }
|
||||||
|
Mod+8 { focus-workspace 8; }
|
||||||
|
Mod+9 { focus-workspace 9; }
|
||||||
|
Mod+Shift+1 { move-column-to-workspace 1; }
|
||||||
|
Mod+Shift+2 { move-column-to-workspace 2; }
|
||||||
|
Mod+Shift+3 { move-column-to-workspace 3; }
|
||||||
|
Mod+Shift+4 { move-column-to-workspace 4; }
|
||||||
|
Mod+Shift+5 { move-column-to-workspace 5; }
|
||||||
|
Mod+Shift+6 { move-column-to-workspace 6; }
|
||||||
|
Mod+Shift+7 { move-column-to-workspace 7; }
|
||||||
|
Mod+Shift+8 { move-column-to-workspace 8; }
|
||||||
|
Mod+Shift+9 { move-column-to-workspace 9; }
|
||||||
|
|
||||||
|
// Alternatively, there are commands to move just a single window:
|
||||||
|
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
||||||
|
|
||||||
|
// Switches focus between the current and the previous workspace.
|
||||||
|
// Mod+Tab { focus-workspace-previous; }
|
||||||
|
|
||||||
|
// The following binds move the focused window in and out of a column.
|
||||||
|
// If the window is alone, they will consume it into the nearby column to the side.
|
||||||
|
// If the window is already in a column, they will expel it out.
|
||||||
|
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||||
|
Mod+BracketRight { consume-or-expel-window-right; }
|
||||||
|
|
||||||
|
// Consume one window from the right to the bottom of the focused column.
|
||||||
|
Mod+Comma { consume-window-into-column; }
|
||||||
|
// Expel the bottom window from the focused column to the right.
|
||||||
|
Mod+Period { expel-window-from-column; }
|
||||||
|
|
||||||
|
Mod+R { switch-preset-column-width; }
|
||||||
|
Mod+Shift+R { switch-preset-window-height; }
|
||||||
|
Mod+Ctrl+R { reset-window-height; }
|
||||||
|
Mod+F { maximize-column; }
|
||||||
|
Mod+G { reset-window-height; }
|
||||||
|
Mod+Shift+F { fullscreen-window; }
|
||||||
|
|
||||||
|
// Expand the focused column to space not taken up by other fully visible columns.
|
||||||
|
// Makes the column "fill the rest of the space".
|
||||||
|
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||||
|
|
||||||
|
Mod+C { center-column; }
|
||||||
|
|
||||||
|
// Center all fully visible columns on screen.
|
||||||
|
Super+Ctrl+C { center-visible-columns; }
|
||||||
|
|
||||||
|
// Finer width adjustments.
|
||||||
|
// This command can also:
|
||||||
|
// * set width in pixels: "1000"
|
||||||
|
// * adjust width in pixels: "-5" or "+5"
|
||||||
|
// * set width as a percentage of screen width: "25%"
|
||||||
|
// * adjust width as a percentage of screen width: "-10%" or "+10%"
|
||||||
|
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
|
||||||
|
// set-column-width "100" will make the column occupy 200 physical screen pixels.
|
||||||
|
Mod+Minus { set-column-width "-2%"; }
|
||||||
|
Mod+Equal { set-column-width "+2%"; }
|
||||||
|
|
||||||
|
// Finer height adjustments when in column with other windows.
|
||||||
|
Mod+Shift+Minus { set-window-height "-2%"; }
|
||||||
|
Mod+Shift+Equal { set-window-height "+2%"; }
|
||||||
|
|
||||||
|
// Move the focused window between the floating and the tiling layout.
|
||||||
|
Mod+V { toggle-window-floating; }
|
||||||
|
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||||
|
|
||||||
|
// Toggle tabbed column display mode.
|
||||||
|
// Windows in this column will appear as vertical tabs,
|
||||||
|
// rather than stacked on top of each other.
|
||||||
|
Mod+W { toggle-column-tabbed-display; }
|
||||||
|
|
||||||
|
// Actions to switch layouts.
|
||||||
|
// Note: if you uncomment these, make sure you do NOT have
|
||||||
|
// a matching layout switch hotkey configured in xkb options above.
|
||||||
|
// Having both at once on the same hotkey will break the switching,
|
||||||
|
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
|
||||||
|
// Mod+Space { switch-layout "next"; }
|
||||||
|
// Mod+Shift+Space { switch-layout "prev"; }
|
||||||
|
|
||||||
|
Print { screenshot; }
|
||||||
|
Ctrl+Print { screenshot-screen; }
|
||||||
|
Alt+Print { screenshot-window; }
|
||||||
|
|
||||||
|
// Applications such as remote-desktop clients and software KVM switches may
|
||||||
|
// request that niri stops processing the keyboard shortcuts defined here
|
||||||
|
// so they may, for example, forward the key presses as-is to a remote machine.
|
||||||
|
// It's a good idea to bind an escape hatch to toggle the inhibitor,
|
||||||
|
// so a buggy application can't hold your session hostage.
|
||||||
|
//
|
||||||
|
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||||
|
// which ensures niri always processes them, even when an inhibitor is active.
|
||||||
|
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||||
|
|
||||||
|
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||||
|
Mod+Shift+E { quit; }
|
||||||
|
Ctrl+Alt+Delete { quit; }
|
||||||
|
|
||||||
|
// Powers off the monitors. To turn them back on, do any input like
|
||||||
|
// moving the mouse or pressing any other key.
|
||||||
|
Mod+Shift+P { power-off-monitors; }
|
||||||
|
}
|
||||||
12
niri/sway_startup
Executable file
12
niri/sway_startup
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
background=$1
|
||||||
|
blurred_bg=/tmp/blurred_"$(basename ${background})"
|
||||||
|
|
||||||
|
echo "Setting background to ${background}"
|
||||||
|
swaybg -m fill -i "$1" &
|
||||||
|
|
||||||
|
echo "Convert ${background} to ${blurred_bg} and set swayidle"
|
||||||
|
convert ${background} -blur 0x12 ${blurred_bg}
|
||||||
|
swayidle -w timeout 601 "niri msg action power-off-monitors" timeout 600 "swaylock -f -i ${blurred_bg}" before-sleep "swaylock -f -i ${blurred_bg}" &
|
||||||
|
|
||||||
208
starship.toml
Normal file
208
starship.toml
Normal file
@@ -0,0 +1,208 @@
|
|||||||
|
# format = """
|
||||||
|
# [ ](mauve)\
|
||||||
|
# $os\
|
||||||
|
# $username\
|
||||||
|
# [](bg:teal fg:mauve)\
|
||||||
|
# $hostname\
|
||||||
|
# [](bg:maroon fg:teal)\
|
||||||
|
# $directory\
|
||||||
|
# [](fg:maroon bg:peach)\
|
||||||
|
# $git_branch\
|
||||||
|
# $git_status\
|
||||||
|
# [](fg:peach bg:lavender)\
|
||||||
|
# $c\
|
||||||
|
# $elixir\
|
||||||
|
# $elm\
|
||||||
|
# $golang\
|
||||||
|
# $gradle\
|
||||||
|
# $haskell\
|
||||||
|
# $java\
|
||||||
|
# $julia\
|
||||||
|
# $nodejs\
|
||||||
|
# $nim\
|
||||||
|
# $python\
|
||||||
|
# $rust\
|
||||||
|
# $scala\
|
||||||
|
# $zig\
|
||||||
|
# [](fg:lavender bg:sapphire)\
|
||||||
|
# $time\
|
||||||
|
# [ ](fg:sapphire)\
|
||||||
|
# \n$character"""
|
||||||
|
|
||||||
|
format="$username at $hostname in $directory $git_branch $git_status$package $all$os$time $character"
|
||||||
|
|
||||||
|
# Disable the blank line at the start of the prompt
|
||||||
|
# add_newline = false
|
||||||
|
|
||||||
|
palette = "catppuccin_macchiato"
|
||||||
|
|
||||||
|
# catppuccin macchiato
|
||||||
|
[palettes.catppuccin_macchiato]
|
||||||
|
rosewater = "#f4dbd6"
|
||||||
|
flamingo = "#f0c6c6"
|
||||||
|
pink = "#f5bde6"
|
||||||
|
mauve = "#c6a0f6"
|
||||||
|
red = "#ed8796"
|
||||||
|
maroon = "#ee99a0"
|
||||||
|
peach = "#f5a97f"
|
||||||
|
yellow = "#eed49f"
|
||||||
|
green = "#a6da95"
|
||||||
|
teal = "#8bd5ca"
|
||||||
|
sky = "#91d7e3"
|
||||||
|
sapphire = "#7dc4e4"
|
||||||
|
blue = "#8aadf4"
|
||||||
|
lavender = "#b7bdf8"
|
||||||
|
text = "#cad3f5"
|
||||||
|
subtext1 = "#b8c0e0"
|
||||||
|
subtext0 = "#a5adcb"
|
||||||
|
overlay2 = "#939ab7"
|
||||||
|
overlay1 = "#8087a2"
|
||||||
|
overlay0 = "#6e738d"
|
||||||
|
surface2 = "#5b6078"
|
||||||
|
surface1 = "#494d64"
|
||||||
|
surface0 = "#363a4f"
|
||||||
|
base = "#24273a"
|
||||||
|
mantle = "#1e2030"
|
||||||
|
crust = "#181926"
|
||||||
|
|
||||||
|
[os.symbols]
|
||||||
|
Arch = " "
|
||||||
|
Fedora = " "
|
||||||
|
Ubuntu = " "
|
||||||
|
Debian = " "
|
||||||
|
Alpine = " "
|
||||||
|
|
||||||
|
# You can also replace your username with a neat symbol like or disable this
|
||||||
|
# and use the os module below
|
||||||
|
[username]
|
||||||
|
show_always = true
|
||||||
|
style_user = "mauve"
|
||||||
|
style_root = "red"
|
||||||
|
format = '[$user]($style)'
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
style = "teal"
|
||||||
|
disabled = false
|
||||||
|
format = '[$hostname]($style)'
|
||||||
|
|
||||||
|
# An alternative to the username module which displays a symbol that
|
||||||
|
# represents the current operating system
|
||||||
|
[os]
|
||||||
|
style = "blue"
|
||||||
|
disabled = false # Disabled by default
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
style = "maroon"
|
||||||
|
format = "[$path]($style)"
|
||||||
|
truncation_length = 3
|
||||||
|
truncation_symbol = "…/"
|
||||||
|
|
||||||
|
# Here is how you can shorten some long paths by text replacement
|
||||||
|
# similar to mapped_locations in Oh My Posh:
|
||||||
|
[directory.substitutions]
|
||||||
|
"Documents" = " "
|
||||||
|
"Downloads" = " "
|
||||||
|
"Music" = " "
|
||||||
|
"Pictures" = " "
|
||||||
|
"Development" = ""
|
||||||
|
# Keep in mind that the order matters. For example:
|
||||||
|
# "Important Documents" = " "
|
||||||
|
# will not be replaced, because "Documents" was already substituted before.
|
||||||
|
# So either put "Important Documents" before "Documents" or use the substituted version:
|
||||||
|
# "Important " = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#06969A"
|
||||||
|
# format = '[ $symbol $context ]($style)'
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = ""
|
||||||
|
style = "peach"
|
||||||
|
format = '[$symbol $branch]($style)'
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
style = "peach"
|
||||||
|
format = '[$all_status$ahead_behind]($style)'
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[gradle]
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = ""
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[package]
|
||||||
|
symbol = " "
|
||||||
|
style = "green"
|
||||||
|
format = '[$symbol$version]($style)'
|
||||||
|
|
||||||
|
[python]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ($virtualenv) ]($style)'
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = ""
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[zig]
|
||||||
|
symbol = " "
|
||||||
|
style = "lavender"
|
||||||
|
# format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[time]
|
||||||
|
disabled = false
|
||||||
|
time_format = "%R" # Hour:Minute Format
|
||||||
|
style = "sapphire"
|
||||||
|
format = '[$time]($style)'
|
||||||
12
themes/catppuccin-frappe/blue.ini
Normal file
12
themes/catppuccin-frappe/blue.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=8caaeeff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=8caaeeff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=8caaeeff
|
||||||
12
themes/catppuccin-frappe/flamingo.ini
Normal file
12
themes/catppuccin-frappe/flamingo.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=eebebeff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=eebebeff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=eebebeff
|
||||||
12
themes/catppuccin-frappe/green.ini
Normal file
12
themes/catppuccin-frappe/green.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=a6d189ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=a6d189ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=a6d189ff
|
||||||
12
themes/catppuccin-frappe/lavender.ini
Normal file
12
themes/catppuccin-frappe/lavender.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=babbf1ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=babbf1ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=babbf1ff
|
||||||
12
themes/catppuccin-frappe/maroon.ini
Normal file
12
themes/catppuccin-frappe/maroon.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=ea999cff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=ea999cff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=ea999cff
|
||||||
12
themes/catppuccin-frappe/mauve.ini
Normal file
12
themes/catppuccin-frappe/mauve.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=ca9ee6ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=ca9ee6ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=ca9ee6ff
|
||||||
12
themes/catppuccin-frappe/peach.ini
Normal file
12
themes/catppuccin-frappe/peach.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=ef9f76ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=ef9f76ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=ef9f76ff
|
||||||
12
themes/catppuccin-frappe/pink.ini
Normal file
12
themes/catppuccin-frappe/pink.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=f4b8e4ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=f4b8e4ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=f4b8e4ff
|
||||||
12
themes/catppuccin-frappe/red.ini
Normal file
12
themes/catppuccin-frappe/red.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=e78284ff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=e78284ff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=e78284ff
|
||||||
12
themes/catppuccin-frappe/rosewater.ini
Normal file
12
themes/catppuccin-frappe/rosewater.ini
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[colors]
|
||||||
|
background=303446dd
|
||||||
|
text=c6d0f5ff
|
||||||
|
prompt=b5bfe2ff
|
||||||
|
placeholder=838ba7ff
|
||||||
|
input=c6d0f5ff
|
||||||
|
match=f2d5cfff
|
||||||
|
selection=626880ff
|
||||||
|
selection-text=c6d0f5ff
|
||||||
|
selection-match=f2d5cfff
|
||||||
|
counter=838ba7ff
|
||||||
|
border=f2d5cfff
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user