nvim: merge remaining VimL configs back into init.vim
also removed digraphs config. run :digraphs for a list of built-in digraphs
This commit is contained in:
parent
40700d7b0e
commit
166437f644
@ -1,11 +0,0 @@
|
|||||||
" configurations for coding
|
|
||||||
" -------------------------
|
|
||||||
|
|
||||||
" Code folding
|
|
||||||
set foldmethod=expr
|
|
||||||
set foldexpr=nvim_treesitter#foldexpr()
|
|
||||||
" unfold by default
|
|
||||||
set foldlevel=99
|
|
||||||
|
|
||||||
" auto-pairs
|
|
||||||
let g:AutoPairsFlyMode = 0
|
|
@ -1,30 +0,0 @@
|
|||||||
" see :help digraphs
|
|
||||||
" these digraphs are reminiscent of canadian french keyboard layout
|
|
||||||
|
|
||||||
if exists("*digraph_setlist")
|
|
||||||
call digraph_setlist([
|
|
||||||
\["'a", 'à'],
|
|
||||||
\["'e", 'è'],
|
|
||||||
\["'u", 'ù'],
|
|
||||||
\["/e", 'é'],
|
|
||||||
\["}a", 'ä'],
|
|
||||||
\["}e", 'ë'],
|
|
||||||
\["}i", 'ï'],
|
|
||||||
\["}o", 'ö'],
|
|
||||||
\["}u", 'ü'],
|
|
||||||
\["}y", 'ÿ'],
|
|
||||||
\["]c", 'ç'],
|
|
||||||
\["[a", 'â'],
|
|
||||||
\["[e", 'ê'],
|
|
||||||
\["[i", 'î'],
|
|
||||||
\["[o", 'ô'],
|
|
||||||
\["[u", 'û'],
|
|
||||||
\])
|
|
||||||
|
|
||||||
" misc funny digraphs
|
|
||||||
call digraph_setlist([
|
|
||||||
\["++", '✝'],
|
|
||||||
\["+-", '†'],
|
|
||||||
\["m-", '—'],
|
|
||||||
\])
|
|
||||||
end
|
|
@ -11,7 +11,7 @@ au TermOpen * setlocal nonumber norelativenumber
|
|||||||
tnoremap <silent> <esc> <c-\><c-n><c-\><c-n>
|
tnoremap <silent> <esc> <c-\><c-n><c-\><c-n>
|
||||||
|
|
||||||
" sign column on top of the line number (gutter for things like breakpoints, warnings)
|
" sign column on top of the line number (gutter for things like breakpoints, warnings)
|
||||||
" set scl=number
|
set scl=number
|
||||||
|
|
||||||
" enable line numbers
|
" enable line numbers
|
||||||
set number relativenumber
|
set number relativenumber
|
||||||
@ -23,6 +23,9 @@ set showtabline=0
|
|||||||
" performance?
|
" performance?
|
||||||
set lazyredraw nocursorline ttyfast
|
set lazyredraw nocursorline ttyfast
|
||||||
|
|
||||||
|
" disable splash screen
|
||||||
|
set shortmess+=I
|
||||||
|
|
||||||
let mapleader = ","
|
let mapleader = ","
|
||||||
|
|
||||||
" " use system clipboard instead of internal
|
" " use system clipboard instead of internal
|
||||||
@ -55,9 +58,6 @@ highlight LineNr ctermfg=grey
|
|||||||
" Disable highlighting when searching
|
" Disable highlighting when searching
|
||||||
nnoremap <silent> <esc> :noh<return><esc>
|
nnoremap <silent> <esc> :noh<return><esc>
|
||||||
|
|
||||||
" shortcuts to type symbols easier
|
|
||||||
source $XDG_CONFIG_HOME/nvim/digraphs.vim
|
|
||||||
|
|
||||||
" tab, window management
|
" tab, window management
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
nnoremap <C-j> <C-w>w
|
nnoremap <C-j> <C-w>w
|
||||||
@ -70,17 +70,11 @@ nnoremap <silent> ZF :qa<cr>
|
|||||||
" see .config/nvim/lua/init.lua
|
" see .config/nvim/lua/init.lua
|
||||||
lua require('init')
|
lua require('init')
|
||||||
|
|
||||||
" The rest will not be sourced if the system is on minimal settings.
|
" Code folding
|
||||||
if $SYSTEM_PROFILE == "MINIMAL"
|
set foldmethod=expr
|
||||||
finish
|
set foldexpr=nvim_treesitter#foldexpr()
|
||||||
endif
|
" unfold by default
|
||||||
|
set foldlevel=99
|
||||||
|
|
||||||
filetype plugin indent on
|
" auto-pairs
|
||||||
|
let g:AutoPairsFlyMode = 0
|
||||||
if $SYSTEM_PROFILE == "DEFAULT"
|
|
||||||
" plugins for IDE-like nvim
|
|
||||||
source $XDG_CONFIG_HOME/nvim/coding.vim
|
|
||||||
endif
|
|
||||||
|
|
||||||
" personal preference
|
|
||||||
set shortmess+=I
|
|
||||||
|
Loading…
Reference in New Issue
Block a user