feat: make nvim Neovide compatible

This commit is contained in:
Fabio Lenherr / DashieTM 2023-04-09 00:49:51 +02:00
parent f3186bce02
commit f8661477fc
21 changed files with 4837 additions and 75 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -14,3 +14,4 @@ TEXMFHOME=$HOME/.texmf
PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$HOME/.local/bin:$HOME/.cargo/bin:$PATH PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$HOME/.local/bin:$HOME/.cargo/bin:$PATH
EDITOR=nvim EDITOR=nvim
SUDO_EDITOR=nvim SUDO_EDITOR=nvim
RADV_PERFTEST=gpl

View file

@ -1,7 +1,7 @@
* { * {
all: unset; all: unset;
font-family: feather; // font-family: feather;
font-family: DaddyTimeMono Nerd Font; font-family: JetBrainsMono Nerd Font;
} }
/** General **/ /** General **/
@ -30,62 +30,62 @@ tooltip label {
.clock_time_sep { .clock_time_sep {
font-size: 20; font-size: 20;
color: #bfc9db; color: #71BBE6;
margin: 0px 0px 1px 0px; margin: 0px 0px 1px 0px;
} }
.clock_time_class, .clock_time_class,
.clock_minute_class { .clock_minute_class {
font-size: 24; font-size: 20;
} }
.clock_date_class { .clock_date_class {
font-size: 21; font-size: 20;
margin: 0px 5px 0px 5px; margin: 0px 5px 0px 5px;
color: #d7beda; color: #71BBE6;
} }
.clock_minute_class { .clock_minute_class {
margin: 0px 5px 0px 2px; margin: 0px 5px 0px 2px;
color: #bfc9db; color: #71BBE6;
} }
.clock_time_class { .clock_time_class {
color: #bfc9db; color: #71BBE6;
font-weight: bold; font-weight: bold;
margin: 0px 0px 0px 8px; margin: 0px 0px 0px 8px;
} }
.membar { .membar {
color: #e0b089; color: #71BBE6;
background-color: #38384d; background-color: #38384d;
border-radius: 10px; border-radius: 10px;
} }
.module_app_text { .module_app_text {
font-size: 23; font-size: 20;
margin: 2px 0px 0px 0px; margin: 2px 0px 0px 0px;
} }
.bright_icon_overlay { .bright_icon_overlay {
font-size: 28; font-size: 23;
color: #e4c9af; color: #71BBE6;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
margin: 0px 27px 0px 3px; margin: 0px 27px 0px 3px;
} }
.volume_icon { .volume_icon {
font-size: 22; font-size: 20;
color: #a1bdce; color: #71BBE6;
margin: 0px 5px 0px 0px; margin: 0px 5px 0px 0px;
} }
.module-blu { .module-blu {
font-size: 22; font-size: 20;
color: #a1bdce; color: #71BBE6;
border-radius: 100%; border-radius: 100%;
margin: 0px 10px 0px 0px; margin: 0px 10px 0px 0px;
} }
.iconmem { .iconmem {
font-size: 23; font-size: 20;
margin: 0px -3px 4px 8px; margin: 0px -3px 4px 8px;
color: #e0b089; color: #71BBE6;
} }
.mem_padding { .mem_padding {
@ -93,9 +93,9 @@ tooltip label {
} }
.separ { .separ {
color: #3e424f; color: #71BBE6;
font-weight: bold; font-weight: bold;
font-size: 22px; font-size: 20px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
@ -116,10 +116,11 @@ scale trough {
} }
.works { .works {
font-size: 27px; font-size: 22px;
font-weight: normal; font-weight: normal;
margin: 0px 0px 0px 15px; margin: 0px 0px 0px 15px;
background-color: #111017; background-color: #111017;
color: #71BBE6;
} }
.0, .0,
@ -140,7 +141,7 @@ scale trough {
/* Unoccupied */ /* Unoccupied */
.0 { .0 {
color: #3e424f; color: #71BBE6;
} }
/* Occupied */ /* Occupied */
@ -150,7 +151,7 @@ scale trough {
.04, .04,
.05, .05,
.06 { .06 {
color: #bfc9db; color: #71BBE6;
} }
/* Focused */ /* Focused */
@ -160,7 +161,7 @@ scale trough {
.044, .044,
.055, .055,
.066 { .066 {
color: #a1bdce; color: #71BBE6;
} }
.song_cover_art { .song_cover_art {
@ -196,14 +197,14 @@ scale trough {
} }
calender { calender {
color: #bfc9db; color: #71BBE6;
} }
calendar:selected { calendar:selected {
color: #a1bdce; color: #71BBE6;
} }
calendar.header { calendar.header {
color: #a1bdce; color: #71BBE6;
font-weight: bold; font-weight: bold;
} }
@ -231,11 +232,13 @@ calendar:indeterminate {
margin: 5px 0px 0px 25px; margin: 5px 0px 0px 25px;
} }
.sys_text_mem { .sys_text_mem {
color: #71BBE6;
font-size: 21; font-size: 21;
font-weight: bold; font-weight: bold;
margin: 14px 0px 0px 25px; margin: 14px 0px 0px 25px;
} }
.sys_icon_mem { .sys_icon_mem {
color: #71BBE6;
font-size: 30; font-size: 30;
margin: 30px; margin: 30px;
} }
@ -245,14 +248,14 @@ calendar:indeterminate {
} }
.sys_mem { .sys_mem {
color: #e4c9af; color: #71BBE6;
background-color: #38384d; background-color: #38384d;
border-radius: 10px; border-radius: 10px;
} }
.sys_icon_mem, .sys_icon_mem,
.sys_text_mem { .sys_text_mem {
color: #e4c9af; color: #71BBE6;
} }
.sys_mem_box { .sys_mem_box {
@ -329,7 +332,7 @@ calendar:indeterminate {
} }
.mic_text { .mic_text {
color: #a1bdce; color: #71BBE6;
font-size: 26px; font-size: 26px;
font-weight: bold; font-weight: bold;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
@ -421,7 +424,7 @@ calendar:indeterminate {
.weather-icon { .weather-icon {
font-size: 80px; font-size: 80px;
margin: 10px 0px 5px 10px; margin: 10px 0px 5px 10px;
font-family: Iosevka; font-family: JetBrainsMono Nerd Font;
} }
.weather-stat { .weather-stat {
@ -508,3 +511,7 @@ calendar:indeterminate {
margin: 0px 0px -10px 0px; margin: 0px 0px -10px 0px;
padding: 0px; padding: 0px;
} }
.windowname {
color: #71BBE6;
}

View file

@ -125,13 +125,13 @@
(label :text "" :class "audio_sep" :halign "center") (label :text "" :class "audio_sep" :halign "center")
(box :class "change_audio_box" :halign "center" :spac`e-evenly "false" :hexpand "false" :vexpand "false" (box :class "change_audio_box" :halign "center" :spac`e-evenly "false" :hexpand "false" :vexpand "false"
(box :class "change_audio" :orientation "v" :halign "left" (box :class "change_audio" :orientation "v" :halign "left"
(button :onclick "scripts/change-audio internal" "")) (button :onclick "scripts/change-audio internal" "󰋋"))
(box :class "change_audio" :orientation "v" :halign "right" (box :class "change_audio" :orientation "v" :halign "right"
(button :onclick "scripts/change-audio bluetooth" "")) (button :onclick "scripts/change-audio bluetooth" ""))
)))) ))))
(defwidget cname [] (defwidget cname []
(literal :content currentName)) (literal :class "windowname" :content currentName))
;; calendar ;; ;; calendar ;;
(defwidget cal [] (defwidget cal []
@ -151,7 +151,7 @@
(circular-progress :value memory (circular-progress :value memory
:class "sys_mem" :class "sys_mem"
:thickness 9 :thickness 9
(label :text "" (label :text ""
:class "sys_icon_mem" :class "sys_icon_mem"
:limit-width 2 :limit-width 2
:show_truncated false :show_truncated false
@ -185,17 +185,17 @@
(box :orientation "v" (box :orientation "v"
(box :class "cockpit_box" :orientation "v" (box :class "cockpit_box" :orientation "v"
(box (box
(button :class "cockpit_button_shutdown" :onclick "hyprctl dispatch exec 'shutdown now'" "") (button :class "cockpit_button_shutdown" :onclick "hyprctl dispatch exec 'shutdown now'" "")
(button :class "cockpit_button_restart" :onclick "hyprctl dispatch exec reboot" "") (button :class "cockpit_button_restart" :onclick "hyprctl dispatch exec reboot" "")
(button :class "cockpit_button_sleep" :onclick "hyprctl dispatch exec 'playerctl -a pause & swaylock -c 000000 & systemctl suspend'" "")) (button :class "cockpit_button_sleep" :onclick "hyprctl dispatch exec 'playerctl -a pause & swaylock -c 000000 & systemctl suspend'" ""))
(label :text "" :class "audio_sep" :halign "center") (label :text "" :class "audio_sep" :halign "center")
(box (box
(button :class "cockpit_button_settings" :onclick "hyprctl dispatch exec 'pavucontrol'" "") (button :class "cockpit_button_settings" :onclick "hyprctl dispatch exec 'pavucontrol'" "")
(button :class "cockpit_button_settings" :onclick "scripts/change-audio bluetooth" ""))) (button :class "cockpit_button_settings" :onclick "scripts/change-audio bluetooth" "")))
(box :class "cockpit_box" :orientation "v" (box :class "cockpit_box" :orientation "v"
(button :class "cockpit_docs" :onclick "hyprctl dispatch exec nautilus $HOME/Documents" "Documents ") (button :class "cockpit_docs" :onclick "hyprctl dispatch exec nautilus $HOME/Documents" "Documents ")
(label :text "" :class "cockpit_sep_top" :halign "center") (label :text "" :class "cockpit_sep_top" :halign "center")
(button :class "cockpit_pics" :onclick "hyprctl dispatch exec nautilus $HOME/Pictures" "Pictures ") (button :class "cockpit_pics" :onclick "hyprctl dispatch exec nautilus $HOME/Pictures" "Pictures ")
(label :text "" :class "cockpit_sep_bottom" :halign "center") (label :text "" :class "cockpit_sep_bottom" :halign "center")
(button :class "cockpit_gits" :onclick "hyprctl dispatch exec 'alacritty --working-directory $HOME/gits'" "gits "))) (button :class "cockpit_gits" :onclick "hyprctl dispatch exec 'alacritty --working-directory $HOME/gits'" "gits ")))
(box :orientation "v" (box :orientation "v"
@ -305,9 +305,9 @@
(defwindow bar (defwindow bar
:monitor 0 :monitor 0
:geometry (geometry :x "0%" :geometry (geometry :x "0%"
:y "1px" :y "0px"
:width "3417px" :width "3440px"
:height "20px" :height "10px"
:anchor "top center") :anchor "top center")
:stacking "bottom" :stacking "bottom"
:wm-ignore false :wm-ignore false

View file

@ -24,6 +24,7 @@ alias g+='bear -- g++ -Wextra -Werror -std=c++20'
alias s="kitty +kitten ssh" alias s="kitty +kitten ssh"
alias zl='z "" ' alias zl='z "" '
alias jo='joshuto' alias jo='joshuto'
alias nv='neovide --novsync'
# pwd based on the value of _ZO_RESOLVE_SYMLINKS. # pwd based on the value of _ZO_RESOLVE_SYMLINKS.
function __zoxide_pwd function __zoxide_pwd

View file

@ -38,8 +38,8 @@ input {
general { general {
sensitivity=1.0 # for mouse cursor sensitivity=1.0 # for mouse cursor
gaps_in=5 gaps_in=3
gaps_out=10 gaps_out=5
border_size=3 border_size=3
col.active_border=0xFFFF0000 0xFF00FF00 0xFF0000FF 45deg col.active_border=0xFFFF0000 0xFF00FF00 0xFF0000FF 45deg
col.inactive_border=0x66333333 col.inactive_border=0x66333333
@ -49,7 +49,7 @@ general {
} }
decoration { decoration {
rounding=10 rounding=4
blur=1 blur=1
blur_size=3 # minimum 1 blur_size=3 # minimum 1
blur_passes=1 # minimum 1 blur_passes=1 # minimum 1
@ -91,7 +91,7 @@ misc {
# example window rules # example window rules
# for windows named/classed as abc and xyz # for windows named/classed as abc and xyz
windowrule=tile,^(.*)(Spotify)(.*)$ windowrule=tile,^(.*)(Spotify)(.*)$
windowrule=float,^(.*)(Steam)(.*)$ # windowrule=float,^(.*)(Steam)(.*)$
windowrule=float,^(.*)(OxiCalc)(.*)$ windowrule=float,^(.*)(OxiCalc)(.*)$
windowrule=float,^(.*)(winecfg.exe)(.*)$ windowrule=float,^(.*)(winecfg.exe)(.*)$
windowrule=float,^(.*)(speed.exe)(.*)$ windowrule=float,^(.*)(speed.exe)(.*)$
@ -113,7 +113,7 @@ bind=SUPER,S,exec,grim -g "$(slurp)" - | wl-copy
bind=SUPERSHIFTALT,S,exec, grim -g "$(slurp)" $HOME/gits/ost-4semester/Screenshots/$(date +'%Y_%m_%d_%I_%M_%S.png') && (date +'%Y_%m_%d_%I_%M_%S.png') | wl-copy bind=SUPERSHIFTALT,S,exec, grim -g "$(slurp)" $HOME/gits/ost-4semester/Screenshots/$(date +'%Y_%m_%d_%I_%M_%S.png') && (date +'%Y_%m_%d_%I_%M_%S.png') | wl-copy
bind=SUPERSHIFT,S,exec,grim -g "$(slurp)" - | swappy -f - bind=SUPERSHIFT,S,exec,grim -g "$(slurp)" - | swappy -f -
bind=SUPER,F,exec,firefox bind=SUPER,F,exec,firefox
bind=SUPER,T,exec,kitty bind=SUPER,T,exec,kitty -1
bind=SUPER,Q,killactive, bind=SUPER,Q,killactive,
bind=SUPER,M,exit, bind=SUPER,M,exit,
bind=SUPER,E,exec,nautilus --new-window bind=SUPER,E,exec,nautilus --new-window
@ -190,14 +190,14 @@ bindm=SUPER,mouse:273,resizewindow
#binds for debug testing #binds for debug testing
bind=SUPERALT,H,pass,^(wlroots)$ # bind=SUPERALT,H,pass,^(wlroots)$
bind=SUPERALT,J,pass,^(wlroots)$ # bind=SUPERALT,J,pass,^(wlroots)$
#
bind=SUPERALT,left,pass,^(wlroots)$ # bind=SUPERALT,left,pass,^(wlroots)$
bind=SUPERALT,right,pass,^(wlroots)$ # bind=SUPERALT,right,pass,^(wlroots)$
bind=SUPERALT,up,pass,^(wlroots)$ # bind=SUPERALT,up,pass,^(wlroots)$
bind=SUPERALT,down,pass,^(wlroots)$ # bind=SUPERALT,down,pass,^(wlroots)$
bind=CTRLALT,P,pass,^(parcellite)$ # bind=CTRLALT,P,pass,^(parcellite)$
#autostart programs #autostart programs

View file

@ -4,6 +4,12 @@ background_opacity 0.8
cursor_blink_interval 0 cursor_blink_interval 0
window_padding_width 1 window_padding_width 1
shell_integration yes shell_integration yes
sync_with_monitor no
font_family JetBrainsMono Nerd Font Mono
bold_font JetBrainsMono Nerd Font Mono Extra Bold
italic_font JetBrainsMono Nerd Font Mono Extra Italic
bold_italic_font JetBrainsMono Nerd Font Mono Extra Bold Italic
background #1a1b25 background #1a1b25
foreground #c5c8c6 foreground #c5c8c6

63
neovide_backtraces.log Normal file
View file

@ -0,0 +1,63 @@
2023-04-08 14:34:20 - Neovide panicked with the message 'Could not parse event from neovim: invalid string format []'. (File: src/error_handling.rs; Line: 5, Column: 5)
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
2023-04-08 14:35:20 - Neovide panicked with the message 'Could not parse event from neovim: invalid string format []'. (File: src/error_handling.rs; Line: 5, Column: 5)
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>
2023-04-08 14:36:43 - Neovide panicked with the message 'Could not parse event from neovim: invalid string format []'. (File: src/error_handling.rs; Line: 5, Column: 5)
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: <unknown>
14: <unknown>
15: <unknown>
16: <unknown>
17: <unknown>
18: <unknown>

File diff suppressed because one or more lines are too long

1544
neovide_rCURRENT.log Normal file

File diff suppressed because one or more lines are too long

View file

@ -10,7 +10,7 @@
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
"crates.nvim": { "branch": "main", "commit": "1d4bb1e7a0fe8bae3f97061be5fbf6f9081a27e2" }, "crates.nvim": { "branch": "main", "commit": "1d4bb1e7a0fe8bae3f97061be5fbf6f9081a27e2" },
"dressing.nvim": { "branch": "master", "commit": "c705b3890779ea05bd910e9d06af8a209bfb6ad8" }, "dressing.nvim": { "branch": "master", "commit": "91b9ba8a9474d2c4156dc2f3e858e07ae8faecf0" },
"editorconfig.nvim": { "branch": "master", "commit": "5b9e303e1d6f7abfe616ce4cc8d3fffc554790bf" }, "editorconfig.nvim": { "branch": "master", "commit": "5b9e303e1d6f7abfe616ce4cc8d3fffc554790bf" },
"flit.nvim": { "branch": "main", "commit": "f60e4b3d49bb5a5e97cfffe66f2e671eb422078e" }, "flit.nvim": { "branch": "main", "commit": "f60e4b3d49bb5a5e97cfffe66f2e671eb422078e" },
"friendly-snippets": { "branch": "main", "commit": "8d91ba2dc2421a54981115f61b914974f938fa77" }, "friendly-snippets": { "branch": "main", "commit": "8d91ba2dc2421a54981115f61b914974f938fa77" },
@ -23,9 +23,9 @@
"lsp-inlayhints.nvim": { "branch": "main", "commit": "84ca3abe8aaecbb5b30ad89e4701d4a9c821b72c" }, "lsp-inlayhints.nvim": { "branch": "main", "commit": "84ca3abe8aaecbb5b30ad89e4701d4a9c821b72c" },
"lualine.nvim": { "branch": "master", "commit": "c28a7427c3fb29322db136f0564ec58807b26747" }, "lualine.nvim": { "branch": "master", "commit": "c28a7427c3fb29322db136f0564ec58807b26747" },
"markdown-preview.nvim": { "branch": "master", "commit": "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96" }, "markdown-preview.nvim": { "branch": "master", "commit": "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "d88d3564b2ae1d35163ccefda7184d7df104e198" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "a5ca8b03972b347b74b2ad2f7f23f120a514593b" },
"mason-nvim-dap.nvim": { "branch": "main", "commit": "aa7f489903460f2c2e15a6a874c8b933722fe109" }, "mason-nvim-dap.nvim": { "branch": "main", "commit": "aa7f489903460f2c2e15a6a874c8b933722fe109" },
"mason.nvim": { "branch": "main", "commit": "f778db1840248b3850613702f036f01d8846c696" }, "mason.nvim": { "branch": "main", "commit": "84af7a1fa1dbdb0f201849be7993d999a05d973b" },
"mini.ai": { "branch": "main", "commit": "fdb8dd34c326040f99b178536eeaee41d1efe643" }, "mini.ai": { "branch": "main", "commit": "fdb8dd34c326040f99b178536eeaee41d1efe643" },
"mini.bufremove": { "branch": "main", "commit": "93c7230e83f5acb8890cdb2abaf3557f09305b01" }, "mini.bufremove": { "branch": "main", "commit": "93c7230e83f5acb8890cdb2abaf3557f09305b01" },
"mini.comment": { "branch": "main", "commit": "9ead47cef4266efa5145808b838762c658b74f74" }, "mini.comment": { "branch": "main", "commit": "9ead47cef4266efa5145808b838762c658b74f74" },
@ -34,21 +34,21 @@
"mini.surround": { "branch": "main", "commit": "cc962bae0890217f8473390abc8cef988519d370" }, "mini.surround": { "branch": "main", "commit": "cc962bae0890217f8473390abc8cef988519d370" },
"neoconf.nvim": { "branch": "main", "commit": "6aaeb48336b369d7ed8ef243bfd0d76ec79362cd" }, "neoconf.nvim": { "branch": "main", "commit": "6aaeb48336b369d7ed8ef243bfd0d76ec79362cd" },
"neodev.nvim": { "branch": "main", "commit": "864b35006d3de24c60e44b566de8018f919b13e6" }, "neodev.nvim": { "branch": "main", "commit": "864b35006d3de24c60e44b566de8018f919b13e6" },
"neoscroll.nvim": { "branch": "master", "commit": "d7601c26c8a183fa8994ed339e70c2d841253e93" },
"noice.nvim": { "branch": "main", "commit": "1da4edfba3e9278e98fc9723d7235d9ab3889744" }, "noice.nvim": { "branch": "main", "commit": "1da4edfba3e9278e98fc9723d7235d9ab3889744" },
"nui.nvim": { "branch": "main", "commit": "1f43b13d133eb4b4f53a4485379d9afa58808389" }, "nui.nvim": { "branch": "main", "commit": "1f43b13d133eb4b4f53a4485379d9afa58808389" },
"null-ls.nvim": { "branch": "main", "commit": "5855128178fa78293acdfb5b4e41ef046779240b" }, "null-ls.nvim": { "branch": "main", "commit": "5855128178fa78293acdfb5b4e41ef046779240b" },
"nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" }, "nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" },
"nvim-dap": { "branch": "master", "commit": "1dd02e82c77d558e30ba831db4c2e7ed534e874f" }, "nvim-dap": { "branch": "master", "commit": "debd7c2f80eaf20c5f5df25db8d8c1b9b18f4421" },
"nvim-dap-ui": { "branch": "master", "commit": "56a2df0e96bfa64ebd6967e7cad877a1530633d5" }, "nvim-dap-ui": { "branch": "master", "commit": "56a2df0e96bfa64ebd6967e7cad877a1530633d5" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "9dc45a6eb33871f4c5cb2ba08fa307467657471e" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "9dc45a6eb33871f4c5cb2ba08fa307467657471e" },
"nvim-highlight-colors": { "branch": "main", "commit": "14670d94c7813bfe929ed2ca2d3875f4f468173e" }, "nvim-highlight-colors": { "branch": "main", "commit": "14670d94c7813bfe929ed2ca2d3875f4f468173e" },
"nvim-jdtls": { "branch": "master", "commit": "ffb8f63689197b845c2388f0df5f0d1bd21c968f" }, "nvim-jdtls": { "branch": "master", "commit": "ffb8f63689197b845c2388f0df5f0d1bd21c968f" },
"nvim-lspconfig": { "branch": "master", "commit": "7d5af779acbc8a6ff9dfd7f2d39ae898fb67480f" }, "nvim-lspconfig": { "branch": "master", "commit": "1ec6f5cbf6ffc44c84783d70039df5295ca22b4e" },
"nvim-navic": { "branch": "master", "commit": "27124a773d362628b114cd12016e743dab4ccf3e" }, "nvim-navic": { "branch": "master", "commit": "27124a773d362628b114cd12016e743dab4ccf3e" },
"nvim-notify": { "branch": "master", "commit": "50d037041ada0895aeba4c0215cde6d11b7729c4" },
"nvim-spectre": { "branch": "master", "commit": "6e5ce371f93625c7dc43f5e2647d3647f2ea15e2" }, "nvim-spectre": { "branch": "master", "commit": "6e5ce371f93625c7dc43f5e2647d3647f2ea15e2" },
"nvim-tree.lua": { "branch": "master", "commit": "d1410cb0896a3aad5d84ddc54284774a627c6d63" }, "nvim-tree.lua": { "branch": "master", "commit": "d1410cb0896a3aad5d84ddc54284774a627c6d63" },
"nvim-treesitter": { "branch": "master", "commit": "c85d059c462ae7de0aa2a6ed0589f0b223e0e6a9" }, "nvim-treesitter": { "branch": "master", "commit": "584ccea56e2d37b31ba292da2b539e1a4bb411ca" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "b55fe6175f0001347a433c9df358c8cbf8a4e90f" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "b55fe6175f0001347a433c9df358c8cbf8a4e90f" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "729d83ecb990dc2b30272833c213cc6d49ed5214" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "729d83ecb990dc2b30272833c213cc6d49ed5214" },
"nvim-web-devicons": { "branch": "master", "commit": "0568104bf8d0c3ab16395433fcc5c1638efc25d4" }, "nvim-web-devicons": { "branch": "master", "commit": "0568104bf8d0c3ab16395433fcc5c1638efc25d4" },

View file

@ -10,7 +10,6 @@
-- vim.cmd("set norelativenumber") -- vim.cmd("set norelativenumber")
-- end, -- end,
-- }) -- })
-- nvim-tree is also there in modified buffers so this function filter it out -- nvim-tree is also there in modified buffers so this function filter it out
local modifiedBufs = function(bufs) local modifiedBufs = function(bufs)
local t = 0 local t = 0
@ -25,16 +24,17 @@ end
vim.api.nvim_create_autocmd("BufEnter", { vim.api.nvim_create_autocmd("BufEnter", {
nested = true, nested = true,
callback = function() callback = function()
if #vim.api.nvim_list_wins() == 1 and if
vim.api.nvim_buf_get_name(0):match("NvimTree_") ~= nil and #vim.api.nvim_list_wins() == 1
modifiedBufs(vim.fn.getbufinfo({ bufmodified = 1 })) == 0 then and vim.api.nvim_buf_get_name(0):match("NvimTree_") ~= nil
vim.cmd "quit" and modifiedBufs(vim.fn.getbufinfo({ bufmodified = 1 })) == 0
then
vim.cmd("quit")
end end
end end,
}) })
local function open_nvim_tree(data) local function open_nvim_tree(data)
-- buffer is a directory -- buffer is a directory
local directory = vim.fn.isdirectory(data.file) == 1 local directory = vim.fn.isdirectory(data.file) == 1

View file

@ -23,8 +23,8 @@ local term_opts = { silent = true }
-- crimes against humanity, but I don't care -- crimes against humanity, but I don't care
map("n", "j", 'h', opts) map("n", "j", 'h', opts)
map("n", "k", 'j', opts)
map("n", "l", 'k', opts) map("n", "l", 'k', opts)
map("n", "k", 'j', opts)
map("n", ";", 'l', opts) map("n", ";", 'l', opts)
map("v", "j", 'h', opts) map("v", "j", 'h', opts)
map("v", "k", 'j', opts) map("v", "k", 'j', opts)
@ -72,8 +72,8 @@ function _G.set_terminal_maps()
vim.keymap.set("t", "jk", [[<C-\><C-n>]], opts) vim.keymap.set("t", "jk", [[<C-\><C-n>]], opts)
vim.keymap.set("t", "<A-h>", [[<Cmd>wincmd h<CR>]], opts) vim.keymap.set("t", "<A-h>", [[<Cmd>wincmd h<CR>]], opts)
vim.keymap.set("t", "<A-j>", [[<Cmd>wincmd j<CR>]], opts) vim.keymap.set("t", "<A-j>", [[<Cmd>wincmd j<CR>]], opts)
vim.keymap.set("t", "<A-k>", [[<Cmd>wincmd k<CR>]], opts) -- vim.keymap.set("t", "<A-k>", [[<Cmd>wincmd k<CR>]], opts)
vim.keymap.set("t", "<A-l>", [[<Cmd>wincmd l<CR>]], opts) -- vim.keymap.set("t", "<A-l>", [[<Cmd>wincmd l<CR>]], opts)
end end
-- if you only want these mappings for toggle term use term://*toggleterm#* instead -- if you only want these mappings for toggle term use term://*toggleterm#* instead

View file

@ -46,3 +46,4 @@ require("lazy").setup({
}, },
}, },
}) })

View file

@ -2,7 +2,7 @@
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here -- Add any additional options here
local options = { local options = {
clipboard = "unnamedplus", clipboard = "",
mouse = "n", mouse = "n",
fileencoding = "utf-8", fileencoding = "utf-8",
number = true, number = true,
@ -12,8 +12,13 @@ local options = {
shell = "/usr/bin/zsh", shell = "/usr/bin/zsh",
autochdir = true, autochdir = true,
relativenumber = true, relativenumber = true,
scrolloff = 5,
scrolljump = 5,
} }
vim.o.guifont = "JetBrainsMono Nerd Font:h14"
vim.g.neovide_refresh_rate_idle = 180
vim.g.neovide_refresh_rate_idle = 5
vim.g.neovide_hide_mouse_when_typing = true
vim.g.mkdp_browser = "/usr/bin/firefox" vim.g.mkdp_browser = "/usr/bin/firefox"
vim.g.mkdp_auto_start = 1 vim.g.mkdp_auto_start = 1
for k, v in pairs(options) do for k, v in pairs(options) do

View file

@ -2,4 +2,8 @@ return {
{ {
{ "nvim-neo-tree/neo-tree.nvim", enabled = false }, { "nvim-neo-tree/neo-tree.nvim", enabled = false },
}, },
{
{ "rcarriga/nvim-notify", enabled = false },
},
{ { "folke/noice.nvim", enabled = false } },
} }

View file

@ -140,4 +140,22 @@ return {
}, },
}, },
}, },
{
"karb94/neoscroll.nvim",
config = function()
require("neoscroll").setup()
local t = {}
t["<A-l>"] = { "scroll", { "-vim.wo.scroll", "true", "250" } }
t["<A-k>"] = { "scroll", { "vim.wo.scroll", "true", "250" } }
t["<C-b>"] = { "scroll", { "-vim.api.nvim_win_get_height(0)", "true", "450" } }
t["<C-f>"] = { "scroll", { "vim.api.nvim_win_get_height(0)", "true", "450" } }
t["<C-y>"] = { "scroll", { "-0.10", "false", "100" } }
t["<C-e>"] = { "scroll", { "0.10", "false", "100" } }
t["zt"] = { "zt", { "250" } }
t["zz"] = { "zz", { "250" } }
t["zb"] = { "zb", { "250" } }
require("neoscroll.config").set_mappings(t)
end,
},
} }