about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-02-12 15:50:56 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-02-12 15:50:56 +0700
commitac9a1ae1b0dfc0bbc3554da111cfc6e35509a2a9 (patch)
tree64571ba5c7fac6902a5ccf2e315087be08a7bf06
parent1f9e00aaf9ecc88d23d6bae93ffe34aa7d3e08da (diff)
downloaddotfiles-ac9a1ae1b0dfc0bbc3554da111cfc6e35509a2a9.tar.gz
Update support for languages and libraries
-rw-r--r--acanban/.config/acanban/ipfs.toml6
-rw-r--r--debian/.bashrc6
l---------debian/.config/systemd/user/default.target.wants/anbox-session-manager.service1
-rw-r--r--ranger/.config/ranger/rifle.conf10
-rwxr-xr-xvim/.vim/vimrc9
5 files changed, 15 insertions, 17 deletions
diff --git a/acanban/.config/acanban/ipfs.toml b/acanban/.config/acanban/ipfs.toml
new file mode 100644
index 0000000..319aed4
--- /dev/null
+++ b/acanban/.config/acanban/ipfs.toml
@@ -0,0 +1,6 @@
+[api]
+base = 'http://127.0.0.1:5001/api/v0'
+
+[gateway]
+base = 'http://127.0.0.1:8080/ipfs'
+fallback = 'https://ipfs.io'
diff --git a/debian/.bashrc b/debian/.bashrc
index 70eba5c..f8f277b 100644
--- a/debian/.bashrc
+++ b/debian/.bashrc
@@ -108,12 +108,6 @@ function ipfs-cors {
   systemctl restart --user ipfs
 }
 
-function expose-anbox {
-  systemctl --user restart anbox-session-manager.service
-  adb kill-server
-  adb start-server
-}
-
 # enable programmable completion features (you don't need to enable
 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
 # sources /etc/bash.bashrc).
diff --git a/debian/.config/systemd/user/default.target.wants/anbox-session-manager.service b/debian/.config/systemd/user/default.target.wants/anbox-session-manager.service
deleted file mode 120000
index 658ed6b..0000000
--- a/debian/.config/systemd/user/default.target.wants/anbox-session-manager.service
+++ /dev/null
@@ -1 +0,0 @@
-/usr/lib/systemd/user/anbox-session-manager.service
\ No newline at end of file
diff --git a/ranger/.config/ranger/rifle.conf b/ranger/.config/ranger/rifle.conf
index 8d0926d..bf3f768 100644
--- a/ranger/.config/ranger/rifle.conf
+++ b/ranger/.config/ranger/rifle.conf
@@ -54,8 +54,8 @@
 # Define the "editor" for text files as first action
 mime ^text,  label editor = $EDITOR -- "$@"
 mime ^text,  label pager  = "$PAGER" -- "$@"
-!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
-!mime ^text, label pager,  ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
+!mime ^text, label editor, ext xml|json|info|csv|tex|py|rs|pl|rb|js|sh|php = $EDITOR -- "$@"
+!mime ^text, label pager,  ext xml|json|info|csv|tex|py|rs|pl|rb|js|sh|php = "$PAGER" -- "$@"
 
 ext 1                         = man "$1"
 ext s[wmf]c, has zsnes, X     = zsnes "$1"
@@ -206,9 +206,9 @@ label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1"
 label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
 
 # Define the editor for non-text files + pager as last action
-              !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = ask
-label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = $EDITOR -- "$@"
-label pager,  !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = "$PAGER" -- "$@"
+              !mime ^text, !ext xml|json|csv|tex|py|rs|pl|rb|js|sh|php  = ask
+label editor, !mime ^text, !ext xml|json|csv|tex|py|rs|pl|rb|js|sh|php  = $EDITOR -- "$@"
+label pager,  !mime ^text, !ext xml|json|csv|tex|py|rs|pl|rb|js|sh|php  = "$PAGER" -- "$@"
 
 # The very last action, so that it's never triggered accidentally, is to execute a program:
 mime application/x-executable = "$1"
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
index e72b9e4..08a07a2 100755
--- a/vim/.vim/vimrc
+++ b/vim/.vim/vimrc
@@ -17,14 +17,15 @@ set diffopt+=algorithm:patience
 
 augroup vimrc
   autocmd!
+  autocmd BufNewFile,BufRead *.vert,*.geom,*.frag setlocal filetype=glsl
+  autocmd BufNewFile,BufRead *.info setlocal filetype=json
   autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
   autocmd BufNewFile,BufRead *.m setlocal filetype=octave
   autocmd FileType asm,c,h,go,glsl,sshconfig,php
         \ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8 tabstop=8
-  autocmd FileType vim,sh,lua,tex,cmake,cpp,plantuml,html,octave,pascal
+  autocmd FileType vim,sh,scheme,lua,tex,cmake,cpp,plantuml,html,octave,pascal
         \ setlocal shiftwidth=2
   autocmd FileType rst setlocal shiftwidth=3
-  autocmd FileType java setlocal omnifunc=javacomplete#Complete
   autocmd BufWinEnter *
         \ if &filetype ==# 'python' || &filetype ==# 'cython'
         \ | let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1) |
@@ -35,7 +36,6 @@ augroup END
 
 let g:netrw_banner = 0
 let g:netrw_liststyle = 3
-let g:VM_Enabled = 1
 let g:srcery_italic = 1
 let g:jedi#popup_on_dot = 0
 let g:jedi#popup_select_first = 0
@@ -45,7 +45,6 @@ let g:polyglot_disabled = ['latex']
 
 packadd! python-jedi
 call plug#begin('~/.vim/plugged')
-Plug 'https://github.com/andrep/vimacs'
 Plug 'https://github.com/vim/killersheep'
 Plug 'https://github.com/sheerun/vim-polyglot'
 Plug 'https://github.com/francoiscabrol/ranger.vim'
@@ -56,7 +55,6 @@ Plug 'https://github.com/kovisoft/slimv', {'for': 'lisp'}
 Plug 'https://github.com/anntzer/vim-cython', {'for': 'cython'}
 Plug 'https://github.com/racer-rust/vim-racer', {'for': 'rust'}
 Plug 'https://github.com/rhysd/rust-doc.vim', {'for': 'rust'}
-Plug 'https://github.com/artur-shaik/vim-javacomplete2', {'for': 'java'}
 call plug#end()
 
 set t_Co=256
@@ -65,3 +63,4 @@ map Q gq
 command Q q
 command W w
 nmap W :w<CR>
+imap <C-x><C-x> <C-^>