mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-15 19:45:46 +08:00
Add lang#forth layer (#2927)
This commit is contained in:
parent
7b9cf8e217
commit
de65bb42ce
24
autoload/SpaceVim/layers/lang/forth.vim
Normal file
24
autoload/SpaceVim/layers/lang/forth.vim
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
"=============================================================================
|
||||||
|
" forth.vim --- forth language support in SpaceVim
|
||||||
|
" Copyright (c) 2016-2019 Wang Shidong & Contributors
|
||||||
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
||||||
|
" URL: https://spacevim.org
|
||||||
|
" License: GPLv3
|
||||||
|
"=============================================================================
|
||||||
|
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#forth#plugins() abort
|
||||||
|
let plugins = []
|
||||||
|
call add(plugins, ['wsdjeg/vim-forth', {'merged' : 0}])
|
||||||
|
return plugins
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
function! SpaceVim#layers#lang#forth#config() abort
|
||||||
|
call SpaceVim#plugins#runner#reg_runner('forth', 'bigforth %s')
|
||||||
|
call SpaceVim#mapping#space#regesit_lang_mappings('forth', function('s:language_specified_mappings'))
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:language_specified_mappings() abort
|
||||||
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','r'], 'call SpaceVim#plugins#runner#open()', 'execute current file', 1)
|
||||||
|
endfunction
|
Loading…
x
Reference in New Issue
Block a user