mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
update nvim config
This commit is contained in:
15
bin/kobo-parse-highlights
Executable file
15
bin/kobo-parse-highlights
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# script to print all the Kobo highlights in a human readable fashion
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
|
tree = ET.parse(sys.argv[1])
|
||||||
|
root = tree.getroot()
|
||||||
|
|
||||||
|
|
||||||
|
for annotation in root:
|
||||||
|
for target in annotation:
|
||||||
|
for fragment in target:
|
||||||
|
for text in fragment:
|
||||||
|
print("-", text.text)
|
||||||
1
bin/ltx
1
bin/ltx
@@ -3,4 +3,5 @@
|
|||||||
# clipboard
|
# clipboard
|
||||||
|
|
||||||
CODE=$1
|
CODE=$1
|
||||||
|
python -m unicodeit.cli $CODE
|
||||||
python -m unicodeit.cli $CODE | xclip -selection clipboard
|
python -m unicodeit.cli $CODE | xclip -selection clipboard
|
||||||
|
|||||||
38
init.vim
38
init.vim
@@ -42,14 +42,17 @@ let g:rustfmt_autosave = 1
|
|||||||
" javascript
|
" javascript
|
||||||
Plug 'jelera/vim-javascript-syntax'
|
Plug 'jelera/vim-javascript-syntax'
|
||||||
|
|
||||||
" python
|
" python (disabled as puts conceallevel=2, which forces markdown
|
||||||
Plug 'davidhalter/jedi-vim'
|
" previsualization :S)
|
||||||
Plug 'raimon49/requirements.txt.vim', {'for': 'requirements'}
|
" Plug 'davidhalter/jedi-vim'
|
||||||
|
" Plug 'raimon49/requirements.txt.vim', {'for': 'requirements'}
|
||||||
|
|
||||||
" solidity
|
" solidity
|
||||||
Plug 'tomlion/vim-solidity'
|
Plug 'tomlion/vim-solidity'
|
||||||
" circom
|
" circom
|
||||||
Plug 'iden3/vim-circom-syntax'
|
Plug 'iden3/vim-circom-syntax'
|
||||||
|
" Cairo
|
||||||
|
" Plug 'miguelmota/cairo.vim'
|
||||||
|
|
||||||
" LaTeX support. It needs latexmk & zathura
|
" LaTeX support. It needs latexmk & zathura
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
@@ -99,16 +102,6 @@ Plug 'morhetz/gruvbox'
|
|||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" next 3 lines are needed for vimwiki
|
|
||||||
set nocompatible
|
|
||||||
filetype plugin on
|
|
||||||
syntax on
|
|
||||||
" vimwiki with markdown
|
|
||||||
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
|
||||||
\ 'syntax': 'markdown', 'ext': '.md'}]
|
|
||||||
" prevent vimwiki of setting conceallevel=2:
|
|
||||||
let g:vimwiki_conceallevel=0
|
|
||||||
|
|
||||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
|
||||||
@@ -171,8 +164,9 @@ let g:airline_skip_empty_sections = 1
|
|||||||
|
|
||||||
|
|
||||||
" errors
|
" errors
|
||||||
"" for go needs gopls installed (comes with vim-go pluggin)
|
"" For go needs gopls installed (comes with vim-go pluggin)
|
||||||
"" for rust with rust-analyzer needs https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary installed
|
"" For rust with rust-analyzer needs https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary installed
|
||||||
|
"" --> place it at ~.local/bin or ~/bin and make sure that the PATH is defined (eg. in .zshrc: export PATH=$PATH:.local/bin)
|
||||||
"" [old] for rust with rls needs https://github.com/rust-lang/rls installed
|
"" [old] for rust with rls needs https://github.com/rust-lang/rls installed
|
||||||
let g:lt_location_list_toggle_map = '<leader>l'
|
let g:lt_location_list_toggle_map = '<leader>l'
|
||||||
let g:lt_quickfix_list_toggle_map = '<leader>s'
|
let g:lt_quickfix_list_toggle_map = '<leader>s'
|
||||||
@@ -194,6 +188,17 @@ nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
|||||||
|
|
||||||
noremap <silent> <C-c> :cn<CR>
|
noremap <silent> <C-c> :cn<CR>
|
||||||
|
|
||||||
|
|
||||||
|
" next 3 lines are needed for vimwiki
|
||||||
|
set nocompatible
|
||||||
|
filetype plugin on
|
||||||
|
syntax on
|
||||||
|
" vimwiki with markdown
|
||||||
|
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
||||||
|
\ 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
|
" prevent vimwiki of setting conceallevel=2:
|
||||||
|
let g:vimwiki_conceallevel=0
|
||||||
|
|
||||||
" rainbowparentheses
|
" rainbowparentheses
|
||||||
let g:rainbow_active = 1
|
let g:rainbow_active = 1
|
||||||
|
|
||||||
@@ -229,7 +234,7 @@ vnoremap <leader>p "+p
|
|||||||
|
|
||||||
" shortcut for theme change
|
" shortcut for theme change
|
||||||
nnoremap <F9> :colorscheme gruvbox \| set background=dark \| highlight normal ctermbg=0 guibg=#000000 <CR>
|
nnoremap <F9> :colorscheme gruvbox \| set background=dark \| highlight normal ctermbg=0 guibg=#000000 <CR>
|
||||||
nnoremap <F10> :colorscheme gruvbox \| set background=light<CR>
|
nnoremap <F10> :colorscheme one \| set background=light \| highlight normal guibg=#ffffff<CR>
|
||||||
|
|
||||||
" colorscheme
|
" colorscheme
|
||||||
let g:gruvbox_contrast_dark = 'hard'
|
let g:gruvbox_contrast_dark = 'hard'
|
||||||
@@ -243,5 +248,6 @@ set background=dark
|
|||||||
|
|
||||||
" colorscheme molokai
|
" colorscheme molokai
|
||||||
colorscheme gruvbox
|
colorscheme gruvbox
|
||||||
|
set conceallevel=0
|
||||||
|
|
||||||
highlight normal ctermbg=0 guibg=#000000
|
highlight normal ctermbg=0 guibg=#000000
|
||||||
|
|||||||
Reference in New Issue
Block a user