mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
emacs: adjust config for lua-language-server
This commit is contained in:
parent
2f350e4145
commit
4c6fdbceb2
@ -22,7 +22,7 @@
|
|||||||
- Stuff I use:
|
- Stuff I use:
|
||||||
- **Text editor:** [Emacs](http://www.gnu.org/software/emacs/) + [Neovim](https://github.com/neovim/neovim)
|
- **Text editor:** [Emacs](http://www.gnu.org/software/emacs/) + [Neovim](https://github.com/neovim/neovim)
|
||||||
- **Fonts:** [Sarasa Gothic](https://github.com/be5invis/Sarasa-Gothic), [Iosevka Nerd Font](https://github.com/ryanoasis/nerd-fonts), [Iosevka](https://github.com/be5invis/Iosevka)
|
- **Fonts:** [Sarasa Gothic](https://github.com/be5invis/Sarasa-Gothic), [Iosevka Nerd Font](https://github.com/ryanoasis/nerd-fonts), [Iosevka](https://github.com/be5invis/Iosevka)
|
||||||
- **Backlight control:** [light](https://github.com/haikarainen/light) / [brightnessctl](https://github.com/Hummer12007/brightnessctl)
|
- **Backlight control:** [light](https://github.com/haikarainen/light) / [brightnessctl](https://github.com/Hummer12007/brightnessctl) / [brillo](https://gitlab.com/cameronnemo/brillo)
|
||||||
- **Notification daemon:** [mako](https://github.com/emersion/mako) / [dunst](https://github.com/dunst-project/dunst)
|
- **Notification daemon:** [mako](https://github.com/emersion/mako) / [dunst](https://github.com/dunst-project/dunst)
|
||||||
- **Clipboard manager:** [greenclip](https://github.com/erebe/greenclip) / [clipman](https://github.com/yory8/clipman)
|
- **Clipboard manager:** [greenclip](https://github.com/erebe/greenclip) / [clipman](https://github.com/yory8/clipman)
|
||||||
- **Mixer:** [pulsemixer](https://github.com/GeorgeFilipkin/pulsemixer)
|
- **Mixer:** [pulsemixer](https://github.com/GeorgeFilipkin/pulsemixer)
|
||||||
@ -33,6 +33,7 @@
|
|||||||
- **File manager:** [ranger](https://github.com/ranger/ranger), [vifm](https://github.com/vifm/vifm)
|
- **File manager:** [ranger](https://github.com/ranger/ranger), [vifm](https://github.com/vifm/vifm)
|
||||||
- **Web browser:** [qutebrowser](https://github.com/qutebrowser/qutebrowser)
|
- **Web browser:** [qutebrowser](https://github.com/qutebrowser/qutebrowser)
|
||||||
- **Image viewer:** [feh](https://github.com/derf/feh), [imv](https://github.com/eXeC64/imv)
|
- **Image viewer:** [feh](https://github.com/derf/feh), [imv](https://github.com/eXeC64/imv)
|
||||||
|
- **Wayland wallpaper setter:** [swaybg](https://github.com/swaywm/swaybg) / [oguri](https://github.com/vilhalmer/oguri) / [mpvpaper](https://github.com/GhostNaN/mpvpaper)
|
||||||
- **Video player:** [mpv](https://github.com/mpv-player/mpv)
|
- **Video player:** [mpv](https://github.com/mpv-player/mpv)
|
||||||
- **Book viewer:** [zathura](https://git.pwmt.org/pwmt/zathura.git)
|
- **Book viewer:** [zathura](https://git.pwmt.org/pwmt/zathura.git)
|
||||||
- **Screenshot tools:** [grim](https://github.com/emersion/grim) + [slurp](https://github.com/emersion/slurp), [scrot](https://github.com/dreamer/scrot)
|
- **Screenshot tools:** [grim](https://github.com/emersion/grim) + [slurp](https://github.com/emersion/slurp), [scrot](https://github.com/dreamer/scrot)
|
||||||
@ -40,8 +41,9 @@
|
|||||||
- **Shell:** [fish](https://github.com/fish-shell/fish-shell)
|
- **Shell:** [fish](https://github.com/fish-shell/fish-shell)
|
||||||
- **Shell prompt:** [starship](https://starship.rs/)
|
- **Shell prompt:** [starship](https://starship.rs/)
|
||||||
- **Anime/Manga/Wallpaper:** [gallery-dl](https://github.com/mikf/gallery-dl) / [mangadl-bash](https://github.com/Akianonymus/mangadl-bash), [anime-downloader](https://github.com/anime-dl/anime-downloader) + [trackma](https://github.com/z411/trackma) + [adl](https://github.com/RaitaroH/adl) / [anigrab](https://github.com/ngomile/anigrab)
|
- **Anime/Manga/Wallpaper:** [gallery-dl](https://github.com/mikf/gallery-dl) / [mangadl-bash](https://github.com/Akianonymus/mangadl-bash), [anime-downloader](https://github.com/anime-dl/anime-downloader) + [trackma](https://github.com/z411/trackma) + [adl](https://github.com/RaitaroH/adl) / [anigrab](https://github.com/ngomile/anigrab)
|
||||||
- **CLI/TUI for the Internet:** [translate-shell](https://github.com/soimort/translate-shell), [ddgr](https://github.com/jarun/ddgr), [howdoi](https://github.com/gleitz/howdoi), [amfora](https://github.com/makeworld-the-better-one/amfora), [cointop](https://github.com/miguelmota/cointop), [newsboat](https://github.com/newsboat/newsboat), [youtube-dl](https://github.com/ytdl-org/youtube-dl) + [ytmdl](https://github.com/deepjyoti30/ytmdl), [github-cli](https://github.com/cli/cli), [pup](https://github.com/ericchiang/pup), [weechat](https://github.com/weechat/weechat), [curl](https://curl.haxx.se) / [wget](https://www.gnu.org/software/wget/wget.html) / [aria2](https://github.com/aria2/aria2), [tremc](https://github.com/tremc/tremc) + [transmission](https://github.com/transmission/transmission) / [rtorrent](https://github.com/rakshasa/rtorrent), [goaccess](https://github.com/allinurl/goaccess)
|
- **CLI/TUI for the Internet:** [translate-shell](https://github.com/soimort/translate-shell) / [argos-translate](https://github.com/argosopentech/argos-translate), [ddgr](https://github.com/jarun/ddgr), [howdoi](https://github.com/gleitz/howdoi), [amfora](https://github.com/makeworld-the-better-one/amfora), [cointop](https://github.com/miguelmota/cointop), [newsboat](https://github.com/newsboat/newsboat), [youtube-dl](https://github.com/ytdl-org/youtube-dl) + [ytmdl](https://github.com/deepjyoti30/ytmdl), [github-cli](https://github.com/cli/cli), [pup](https://github.com/ericchiang/pup), [weechat](https://github.com/weechat/weechat), [curl](https://curl.haxx.se) / [wget](https://www.gnu.org/software/wget/wget.html) / [aria2](https://github.com/aria2/aria2), [tremc](https://github.com/tremc/tremc) + [transmission](https://github.com/transmission/transmission) / [rtorrent](https://github.com/rakshasa/rtorrent), [goaccess](https://github.com/allinurl/goaccess)
|
||||||
- **CLI/TUI for other things:** [tt](https://github.com/runrin/tt), [forgit](https://github.com/wfxr/forgit), [borg](https://github.com/borgbackup/borg), [wendy](https://git.z3bra.org/wendy/log.html), [tokei](https://github.com/XAMPPRocky/tokei), [onefetch](https://github.com/o2sh/onefetch), [calcurse](https://github.com/lfos/calcurse), [qalculate](https://github.com/Qalculate/libqalculate), [fzf](https://github.com/junegunn/fzf), [fd](https://github.com/sharkdp/fd), [ripgrep](https://github.com/BurntSushi/ripgrep), [atool](http://www.nongnu.org/atool/), [rsync](https://rsync.samba.org/), [bottom](https://github.com/clementtsang/bottom), [hyperfine](https://github.com/sharkdp/hyperfine), [delta](https://github.com/dandavison/delta), [bat](https://github.com/sharkdp/bat), [glow](https://github.com/charmbracelet/glow) / [mdcat](https://github.com/lunaryorn/mdcat) / [mdr](https://github.com/MichaelMure/mdr), [exa](https://github.com/ogham/exa), [pandoc](https://github.com/jgm/pandoc), [csview](https://github.com/wfxr/csview), [libsixel](https://github.com/saitoha/libsixel), [buku](https://github.com/jarun/buku), [jq](https://github.com/stedolan/jq), sysstat, psmisc, wireless_tools, tree
|
- **CLI/TUI for other things:** [tt](https://github.com/runrin/tt), [forgit](https://github.com/wfxr/forgit), [borg](https://github.com/borgbackup/borg), [wendy](https://git.z3bra.org/wendy/log.html), [tokei](https://github.com/XAMPPRocky/tokei), [onefetch](https://github.com/o2sh/onefetch), [calcurse](https://github.com/lfos/calcurse), [qalculate](https://github.com/Qalculate/libqalculate), [fzf](https://github.com/junegunn/fzf), [fd](https://github.com/sharkdp/fd), [ripgrep](https://github.com/BurntSushi/ripgrep), [atool](http://www.nongnu.org/atool/), [rsync](https://rsync.samba.org/), [bottom](https://github.com/clementtsang/bottom), [hyperfine](https://github.com/sharkdp/hyperfine), [delta](https://github.com/dandavison/delta), [bat](https://github.com/sharkdp/bat), [glow](https://github.com/charmbracelet/glow) / [mdcat](https://github.com/lunaryorn/mdcat) / [mdr](https://github.com/MichaelMure/mdr), [exa](https://github.com/ogham/exa), [pandoc](https://github.com/jgm/pandoc), [csview](https://github.com/wfxr/csview), [libsixel](https://github.com/saitoha/libsixel), [buku](https://github.com/jarun/buku), [jq](https://github.com/stedolan/jq), sysstat, psmisc, wireless_tools, tree
|
||||||
|
- **Selfhosted service:** [LibreTranslate](https://github.com/uav4geo/LibreTranslate), [searx](https://github.com/searx/searx), [yacy](https://github.com/yacy/yacy_search_server), [synapse](https://github.com/matrix-org/synapse), [mastodon](https://github.com/tootsuite/mastodon), [gitea](https://gitea.io/)
|
||||||
|
|
||||||
> `Emacs` deserves its own set of dependencies listed, but I'm lazy -> Check my Doom config for details
|
> `Emacs` deserves its own set of dependencies listed, but I'm lazy -> Check my Doom config for details
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
"file_format": "{anime_title}/{anime_title}_{ep_no}",
|
"file_format": "{anime_title}/{anime_title}_{ep_no}",
|
||||||
"force_download": false,
|
"force_download": false,
|
||||||
"player": "mpv",
|
"player": "mpv",
|
||||||
"provider": "anime8",
|
"provider": "animefreak",
|
||||||
"quality": "1080p",
|
"quality": "1080p",
|
||||||
"skip_download": false,
|
"skip_download": false,
|
||||||
"url": false
|
"url": false
|
||||||
@ -120,7 +120,7 @@
|
|||||||
"360p"
|
"360p"
|
||||||
],
|
],
|
||||||
"log_level": "INFO",
|
"log_level": "INFO",
|
||||||
"provider": "anime8",
|
"provider": "animefreak",
|
||||||
"quality": "1080p"
|
"quality": "1080p"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -115,8 +115,13 @@
|
|||||||
"--header-insertion=iwyu"
|
"--header-insertion=iwyu"
|
||||||
"--header-insertion-decorators"))
|
"--header-insertion-decorators"))
|
||||||
(after! lsp-clangd (set-lsp-priority! 'clangd 2)) ;; Prefer clangd instead of default ccls
|
(after! lsp-clangd (set-lsp-priority! 'clangd 2)) ;; Prefer clangd instead of default ccls
|
||||||
(setq lua-lsp-dir "~/.config/emacs/.local/etc/lsp/lua-language-server/"
|
(after! lsp-lua
|
||||||
lua-lsp-completion-call-snippet "Replace")
|
(setq lua-lsp-dir (expand-file-name "lsp/lua-language-server/" doom-etc-dir)
|
||||||
|
lsp-clients-lua-language-server-bin (expand-file-name "bin/Linux/lua-language-server" lua-lsp-dir)
|
||||||
|
lsp-clients-lua-language-server-main-location (expand-file-name "main.lua" lua-lsp-dir)
|
||||||
|
lsp-lua-completion-call-snippet "Replace"
|
||||||
|
lsp-lua-telemetry-enable nil
|
||||||
|
lsp-lua-hint-enable t))
|
||||||
|
|
||||||
;; Quicker which-key
|
;; Quicker which-key
|
||||||
(after! which-key
|
(after! which-key
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
# In case the path has spaces in in, include it in a " "
|
# In case the path has spaces in in, include it in a " "
|
||||||
# Following is a simple folder path example
|
# Following is a simple folder path example
|
||||||
#
|
#
|
||||||
SONG_DIR = "/home/follie/Downloads/Music"
|
SONG_DIR = "~/Downloads/ytmdl"
|
||||||
#
|
#
|
||||||
#************--------ADVANCED-------*********
|
#************--------ADVANCED-------*********
|
||||||
# If you want to save the song in custom folders than those can be
|
# If you want to save the song in custom folders than those can be
|
||||||
|
@ -17,10 +17,15 @@ up)
|
|||||||
light -A 5 >/dev/null
|
light -A 5 >/dev/null
|
||||||
brightness="$(light -G | cut -d '.' -f 1)"
|
brightness="$(light -G | cut -d '.' -f 1)"
|
||||||
_notify_brightness "$brightness"
|
_notify_brightness "$brightness"
|
||||||
else
|
elif command -v brightnessctl >/dev/null
|
||||||
|
then
|
||||||
brightnessctl set 5%+ >/dev/null
|
brightnessctl set 5%+ >/dev/null
|
||||||
brightness="$(brightnessctl i | grep '%' | awk -F'(' '{print $2}' | awk -F'%' '{print $1}')"
|
brightness="$(brightnessctl i | grep '%' | awk -F'(' '{print $2}' | awk -F'%' '{print $1}')"
|
||||||
_notify_brightness "$brightness"
|
_notify_brightness "$brightness"
|
||||||
|
else
|
||||||
|
brillo -l -A 5 >/dev/null
|
||||||
|
brightness="$(brillo -G | cut -d '.' -f 1)"
|
||||||
|
_notify_brightness "$brightness"
|
||||||
fi ;;
|
fi ;;
|
||||||
down)
|
down)
|
||||||
if command -v light >/dev/null
|
if command -v light >/dev/null
|
||||||
@ -28,10 +33,15 @@ down)
|
|||||||
light -U 5 >/dev/null
|
light -U 5 >/dev/null
|
||||||
brightness="$(light -G | cut -d '.' -f 1)"
|
brightness="$(light -G | cut -d '.' -f 1)"
|
||||||
_notify_brightness "$brightness"
|
_notify_brightness "$brightness"
|
||||||
else
|
elif command -v brightnessctl >/dev/null
|
||||||
|
then
|
||||||
brightnessctl set 5%- >/dev/null
|
brightnessctl set 5%- >/dev/null
|
||||||
brightness="$(brightnessctl i | grep '%' | awk -F'(' '{print $2}' | awk -F'%' '{print $1}')"
|
brightness="$(brightnessctl i | grep '%' | awk -F'(' '{print $2}' | awk -F'%' '{print $1}')"
|
||||||
_notify_brightness "$brightness"
|
_notify_brightness "$brightness"
|
||||||
|
else
|
||||||
|
brillo -l -U 5 >/dev/null
|
||||||
|
brightness="$(brillo -G | cut -d '.' -f 1)"
|
||||||
|
_notify_brightness "$brightness"
|
||||||
fi ;;
|
fi ;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# clone the repo
|
# clone the repo
|
||||||
git clone https://github.com/sumneko/lua-language-server
|
git clone https://github.com/sumneko/lua-language-server.git
|
||||||
cd lua-language-server || exit
|
cd lua-language-server || exit
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
@ -12,13 +12,11 @@ ninja -f ninja/linux.ninja
|
|||||||
cd ../..
|
cd ../..
|
||||||
./3rd/luamake/luamake rebuild
|
./3rd/luamake/luamake rebuild
|
||||||
|
|
||||||
# Just for the convenience sake
|
|
||||||
cd ../
|
cd ../
|
||||||
mv -rfv lua-language-server ~/Code/lua-language-server
|
|
||||||
|
|
||||||
# For coc.nvim
|
# For coc.nvim
|
||||||
mkdir -pv ~/.local/share/nvim/lsp
|
mkdir -pv ~/.local/share/nvim/lsp
|
||||||
ln -sv ~/Code/lua-language-server ~/.local/share/nvim/lsp/
|
cp -rfv lua-language-server ~/.local/share/nvim/lsp/
|
||||||
# For Doom Emacs
|
# For Doom Emacs
|
||||||
mkdir -pv ~/.config/emacs/.local/etc/lsp
|
mkdir -pv ~/.config/emacs/.local/etc/lsp
|
||||||
ln -sv ~/Code/lua-language-server ~/.config/emacs/.local/etc/lsp/
|
mv -rv lua-language-server ~/.config/emacs/.local/etc/lsp/
|
||||||
|
25
setup/mpvpaper.sh
Executable file
25
setup/mpvpaper.sh
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# You need mpv-devel, meson, ninja, pkg-config
|
||||||
|
|
||||||
|
git clone https://github.com/GhostNaN/mpvpaper
|
||||||
|
|
||||||
|
cd mpvpaper || exit
|
||||||
|
meson build --prefix=/usr
|
||||||
|
ninja -C build
|
||||||
|
|
||||||
|
if command -v doas >/dev/null
|
||||||
|
then
|
||||||
|
doas -- ninja -C build install
|
||||||
|
else
|
||||||
|
sudo ninja -C build install
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Control the wallpaper with mpv input-ipc-server:
|
||||||
|
# mpvpaper -f -o "input-ipc-server=/tmp/mpv-socket" DP-1 /path/to/video
|
||||||
|
# echo 'cycle pause' | socat - /tmp/mpv-socket
|
||||||
|
|
||||||
|
# Simply set the wallpaper
|
||||||
|
# mpvpaper -f -o "--no-audio --loop-file" DP-1 /path/to/video
|
Loading…
Reference in New Issue
Block a user