1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Add lang#forth layer (#2927)

This commit is contained in:
Wang Shidong 2020-04-28 09:05:52 +08:00 committed by GitHub
parent 7b9cf8e217
commit de65bb42ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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