dotfiles/nvim/nvim.symlink/autoload/darkmodesocket.vim

7 lines
209 B
VimL

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