Emacs/Neovim: add tldr

This commit is contained in:
FollieHiyuki 2021-04-08 10:20:23 +03:00
parent ea8f9b05d6
commit 6dcec7b3ca
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
7 changed files with 17 additions and 4 deletions

View File

@ -285,6 +285,12 @@
:sasl-password (my-fetch-password :user "FollieHiyuki" :host "irc.freenode.net")
:channels ("#voidlinux" "#river" "#archlinux" "#nixos")))
;; Cheatsheet
(use-package! tldr
:commands tldr tldr-mode
:config
(setq tldr-directory-path "~/.local/share/tldr"))
;; Here are some additional functions/macros that could help you configure Doom:
;;
;; - `load!' for loading external *.el files relative to this one

View File

@ -68,6 +68,7 @@
(package! ivy-emms)
(package! elfeed-goodies)
(package! symon)
(package! tldr)
;;(package! mentor)
;;(package! mozc-cand-posframe)
;;(package! 2048-game)

View File

@ -2,10 +2,11 @@ sub-auto=fuzzy
sub-bold=yes
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
# video-sync=display-resample
# interpolation
# tscale=oversample
profile=gpu-hq
# gpu-context=wayland
vo=gpu
hwdec=vaapi
user-agent="Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0"

View File

@ -36,6 +36,7 @@ source $HOME/.config/nvim/plug-config/rooter.vim
source $HOME/.config/nvim/plug-config/spaceline.vim
" source $HOME/.config/nvim/plug-config/startify.vim
source $HOME/.config/nvim/plug-config/tablemode.vim
source $HOME/.config/nvim/plug-config/tldr.vim
source $HOME/.config/nvim/plug-config/translate-shell.vim
source $HOME/.config/nvim/plug-config/undo.vim
source $HOME/.config/nvim/plug-config/vim-buffet.vim

View File

@ -1,5 +1,5 @@
" Vim command used to open new buffer
let g:CheatSheetReaderCmd='new"'
let g:CheatSheetReaderCmd='new'
" Cheat sheet file type
let g:CheatSheetFt='markdown'

View File

@ -0,0 +1,3 @@
let g:tldr_directory_path = '~/.local/share/tldr'
let g:tldr_split_type = 'horizontal'
let g:tldr_language = 'en'

View File

@ -130,6 +130,7 @@ Plug 'mbbill/undotree'
Plug 'Asheq/close-buffers.vim'
" Cheatsheet
Plug 'dbeniamine/cheat.sh-vim'
Plug 'wlemuel/vim-tldr'
"=================================================
" Live-server for html
Plug 'turbio/bracey.vim', { 'do': 'npm install --prefix server' }