1

Configure termux

This commit is contained in:
Evan Pratten 2023-07-02 23:14:59 -04:00
parent 676de71923
commit fcee01b0b5
3 changed files with 31 additions and 15 deletions

View File

@ -6,15 +6,17 @@ syntax on
set mouse=a set mouse=a
" Configure the right-click menu " Configure the right-click menu
aunmenu PopUp if !exists('g:vscode')
vnoremenu PopUp.Cut "+x aunmenu PopUp
vnoremenu PopUp.Copy "+y vnoremenu PopUp.Cut "+x
anoremenu PopUp.Paste "+gP vnoremenu PopUp.Copy "+y
vnoremenu PopUp.Paste "+P anoremenu PopUp.Paste "+gP
vnoremenu PopUp.Delete "_x vnoremenu PopUp.Paste "+P
nnoremenu PopUp.Select\ All> ggVG vnoremenu PopUp.Delete "_x
vnoremenu PopUp.Select\ All> gg0oG$ nnoremenu PopUp.Select\ All> ggVG
inoremenu PopUp.Select\ All <C-Home><C-O>VG vnoremenu PopUp.Select\ All> gg0oG$
inoremenu PopUp.Select\ All <C-Home><C-O>VG
endif
" Tab size " Tab size
set tabstop=4 set tabstop=4
@ -61,18 +63,22 @@ cnoreabbrev <expr> help getcmdtype() == ":" && getcmdline() == 'help' ? 'tab hel
cnoreabbrev <expr> h getcmdtype() == ":" && getcmdline() == 'h' ? 'tab help' : 'h' cnoreabbrev <expr> h getcmdtype() == ":" && getcmdline() == 'h' ? 'tab help' : 'h'
" Enable spell checking " Enable spell checking
set spell if !exists('g:vscode')
set spelllang=en_ca,en_us set spell
set spelloptions=camel set spelllang=en_ca,en_us
hi clear SpellCap set spelloptions=camel
hi clear SpellRare hi clear SpellCap
hi clear SpellRare
endif
" Disable the gitgutter background " Disable the gitgutter background
let g:gitgutter_override_sign_column_highlight = 1 let g:gitgutter_override_sign_column_highlight = 1
highlight clear SignColumn highlight clear SignColumn
" Make gitgutter update on file save " Make gitgutter update on file save
autocmd BufWritePost * GitGutter if !exists('g:vscode')
autocmd BufWritePost * GitGutter
endif
" Enable Leap " Enable Leap
lua require('leap').add_default_mappings() lua require('leap').add_default_mappings()

View File

@ -0,0 +1,7 @@
# Terminal behaviour
bell-character=vibrate
# Keyboard
extra-keys-style = default
extra-keys = [['ESC', 'TAB', 'CTRL', 'ALT', 'LEFT', 'DOWN', 'UP', 'RIGHT']]

View File

@ -14,6 +14,7 @@
- ~/pkg - ~/pkg
# Config dirs # Config dirs
- ~/.config/nvim - ~/.config/nvim
- ~/.config/termux
- ~/.cargo - ~/.cargo
# Program plugins # Program plugins
- ~/.local/share/nautilus/scripts/ - ~/.local/share/nautilus/scripts/
@ -52,6 +53,7 @@
~/.config/rofi: configs/rofi ~/.config/rofi: configs/rofi
# ~/.local/share/remmina: configs/remmina/hosts # ~/.local/share/remmina: configs/remmina/hosts
~/.cargo/config.toml: configs/cargo/config.toml ~/.cargo/config.toml: configs/cargo/config.toml
~/.config/termux/termux.properties: configs/termux/termux.properties
- shell: - shell:
- [git submodule update --init --recursive, Installing submodules] - [git submodule update --init --recursive, Installing submodules]
@ -60,3 +62,4 @@
- [chmod +x configs/scripts/aspath, Making aspath executable] - [chmod +x configs/scripts/aspath, Making aspath executable]
- [chmod +x configs/scripts/fetch-steamdeck-screenshots, Making fetch-steamdeck-screenshots executable] - [chmod +x configs/scripts/fetch-steamdeck-screenshots, Making fetch-steamdeck-screenshots executable]
- [sh ./helpers/configure-gnome.sh, Configuring GNOME] - [sh ./helpers/configure-gnome.sh, Configuring GNOME]
- [termux-reload-settings || true, Trying to reload Termux]