Moving things further round, some little config tweaks
This commit is contained in:
parent
72588acdc4
commit
b0239d8a57
7 changed files with 45 additions and 25 deletions
7
nvim/nvim.symlink/autoload/darkmodesocket.vim
Normal file
7
nvim/nvim.symlink/autoload/darkmodesocket.vim
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
function! darkmodesocket#listenForLights()
|
||||
let pid = string(getpid())
|
||||
let socket_name = '/tmp/nvim/nvim' . pid . '.sock'
|
||||
call mkdir('/tmp/nvim', 'p')
|
||||
call serverstart(socket_name)
|
||||
endfunction
|
|
@ -49,6 +49,7 @@
|
|||
background_nc = background - 6
|
||||
|
||||
gutter = background - 12
|
||||
colorcolumn = background - 12
|
||||
|
||||
trail = foreground + 48
|
||||
virtual = background - 48
|
||||
|
@ -125,7 +126,7 @@
|
|||
[ "SpellCap", "NONE", "NONE", "NONE"],
|
||||
[ "SpellLocal", "NONE", "NONE", "NONE"],
|
||||
[ "SpellRare", "NONE", "NONE", "NONE"],
|
||||
[ "ColorColumn", "NONE", "NONE", "NONE" ],
|
||||
[ "ColorColumn", grey(colorcolumn), "NONE", "NONE" ],
|
||||
[ "SignColumn", grey(gutter), "NONE", "NONE" ],
|
||||
[ "ErrorMsg", "NONE", "NONE", "NONE" ],
|
||||
[ "ModeMsg", "NONE", "NONE", "NONE" ],
|
||||
|
|
|
@ -76,7 +76,7 @@ if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running")
|
|||
hi SpellCap ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi SpellLocal ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi SpellRare ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi ColorColumn ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi ColorColumn ctermbg=15 ctermfg=NONE cterm=NONE guibg=#d3d3d3 guifg=NONE gui=NONE
|
||||
hi SignColumn ctermbg=15 ctermfg=NONE cterm=NONE guibg=#d3d3d3 guifg=NONE gui=NONE
|
||||
hi ErrorMsg ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
hi ModeMsg ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=NONE gui=NONE
|
||||
|
@ -156,7 +156,7 @@ elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16
|
|||
hi SpellCap ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi SpellLocal ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi SpellRare ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi ColorColumn ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi ColorColumn ctermbg=white ctermfg=NONE cterm=NONE
|
||||
hi SignColumn ctermbg=white ctermfg=NONE cterm=NONE
|
||||
hi ErrorMsg ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
hi ModeMsg ctermbg=NONE ctermfg=NONE cterm=NONE
|
||||
|
|
|
@ -47,6 +47,7 @@ set termguicolors
|
|||
set nobackup
|
||||
set nowritebackup
|
||||
set noswapfile
|
||||
set colorcolumn=80
|
||||
|
||||
" Show things faster, particularly error messages
|
||||
set updatetime=300
|
||||
|
@ -62,19 +63,10 @@ set laststatus=2
|
|||
set statusline=—[%.30t]—%y—
|
||||
set fillchars=stl:—
|
||||
set fillchars+=stlnc:—
|
||||
set fillchars+=eob:\
|
||||
|
||||
function! ShowMiniPath(timer)
|
||||
set statusline=-[%.30t]-%y-
|
||||
endfunction
|
||||
|
||||
function! ShowFullPath()
|
||||
echo ''
|
||||
set statusline=-[%f]-%y-
|
||||
|
||||
call timer_start(6000, 'ShowMiniPath')
|
||||
endfunction
|
||||
|
||||
nnoremap <leader>f :call ShowFullPath()<cr>
|
||||
" Don't show that annoying intro message when Vim starts
|
||||
set shortmess=I
|
||||
|
||||
" Wrap lines
|
||||
"
|
||||
|
@ -151,7 +143,6 @@ set shiftwidth=4
|
|||
set softtabstop=4
|
||||
set autoindent
|
||||
|
||||
|
||||
" Enable highlighting for syntax
|
||||
syntax on
|
||||
|
||||
|
@ -159,7 +150,7 @@ syntax on
|
|||
filetype plugin indent on
|
||||
|
||||
" Theme configuration
|
||||
|
||||
" Should make this a plugin that detects file changes somehow
|
||||
let g:is_dark_mode = system("isdark")
|
||||
|
||||
if g:is_dark_mode == "true\n"
|
||||
|
@ -354,12 +345,4 @@ augroup END
|
|||
nnoremap <leader>\ <Plug>SynStack
|
||||
|
||||
|
||||
function! StartUp()
|
||||
call UpdatePlugReminder()
|
||||
endfunc
|
||||
|
||||
augroup startUp
|
||||
autocmd!
|
||||
|
||||
autocmd VimEnter * call StartUp()
|
||||
augroup END
|
||||
|
|
13
nvim/nvim.symlink/plugin/pathviewer.vim
Normal file
13
nvim/nvim.symlink/plugin/pathviewer.vim
Normal file
|
@ -0,0 +1,13 @@
|
|||
function! ShowMiniPath(timer)
|
||||
set statusline=-[%.30t]-%y-
|
||||
endfunction
|
||||
|
||||
function! ShowFullPath()
|
||||
echo ''
|
||||
set statusline=-[%f]-%y-
|
||||
|
||||
call timer_start(6000, 'ShowMiniPath')
|
||||
endfunction
|
||||
|
||||
nnoremap <leader>f :call ShowFullPath()<cr>
|
||||
|
10
nvim/nvim.symlink/plugin/startup.vim
Normal file
10
nvim/nvim.symlink/plugin/startup.vim
Normal file
|
@ -0,0 +1,10 @@
|
|||
function! StartUp()
|
||||
call darkmodesocket#listenForLights()
|
||||
call UpdatePlugReminder()
|
||||
endfunc
|
||||
|
||||
augroup startUp
|
||||
autocmd!
|
||||
|
||||
autocmd VimEnter * call StartUp()
|
||||
augroup END
|
6
nvim/nvim.symlink/plugin/windowmanagement.vim
Normal file
6
nvim/nvim.symlink/plugin/windowmanagement.vim
Normal file
|
@ -0,0 +1,6 @@
|
|||
augroup WindowManagement
|
||||
autocmd!
|
||||
|
||||
autocmd WinEnter * setl rnu cul syntax=on
|
||||
autocmd WinLeave * setl nornu nocul syntax=off
|
||||
augroup END
|
Loading…
Add table
Reference in a new issue