Skip to content

Commit

Permalink
Move this to shared config
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemason committed Apr 9, 2024
1 parent 91f0caf commit 2628925
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
15 changes: 1 addition & 14 deletions ftplugin/c.vim
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
let g:ouroboros_debug = get(g:, 'ouroboros_debug', 0)

" This forces a reload of the plugin when we source it.
" Helps development times tremendously

lua<<EOF
-- uncomment below to allow "source %" to reload the plugin during development
-- require('plenary.reload').reload_module('ouroboros', true)
EOF

lua ouroboros = require("ouroboros")

command! -buffer -nargs=0 Ouroboros lua ouroboros.switch()

runtime! shared/ouroboros_config.vim
2 changes: 1 addition & 1 deletion ftplugin/cpp.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
runtime ./c.vim
runtime! shared/ouroboros_config.vim
14 changes: 14 additions & 0 deletions shared/ouroboros_config.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
let g:ouroboros_debug = get(g:, 'ouroboros_debug', 0)

" This forces a reload of the plugin when we source it.
" Helps development times tremendously


lua<<EOF
-- uncomment below to allow "source %" to reload the plugin during development
-- require('plenary.reload').reload_module('ouroboros', true)
EOF

lua ouroboros = require("ouroboros")

command! -buffer -nargs=0 Ouroboros lua ouroboros.switch()

0 comments on commit 2628925

Please sign in to comment.