diff --git a/ftplugin/neuralbuf.vim b/ftplugin/neuralbuf.vim index ef2f83a..6a5e932 100644 --- a/ftplugin/neuralbuf.vim +++ b/ftplugin/neuralbuf.vim @@ -3,9 +3,9 @@ call neural#config#Load() -command! -buffer -nargs=0 NeuralRun :call neural#buffer#RunBuffer() +command! -buffer -nargs=0 NeuralCompletion :call neural#buffer#RunBuffer() -nnoremap (neural_completion) :NeuralRun +nnoremap (neural_completion) :NeuralCompletion " Keybindings of Neural Buffer execute 'nnoremap ' . g:neural.buffer.completion_key . ' (neural_completion)' diff --git a/plugin/neural.vim b/plugin/neural.vim index dccdd55..d682d68 100644 --- a/plugin/neural.vim +++ b/plugin/neural.vim @@ -35,8 +35,6 @@ command! -nargs=? Neural :call neural#Prompt() command! -nargs=0 NeuralStop :call neural#Stop() " Create a completion buffer. command! -nargs=? NeuralBuffer :call neural#buffer#CreateBuffer() -" Run completion on a Neural buffer. -command! -nargs=0 NeuralBufferRun :call neural#buffer#RunBuffer() " Have Neural explain the visually selected lines. command! -range NeuralExplain :call neural#explain#SelectedLines() diff --git a/test/vim/test_buffer.vader b/test/vim/test_buffer.vader index e0b6d34..08c74ab 100644 --- a/test/vim/test_buffer.vader +++ b/test/vim/test_buffer.vader @@ -43,7 +43,7 @@ Execute(It should create a neural buffer with arguments): Given neuralbuf(A Neural buffer): write a story Execute(It should correctly run neural): - NeuralRun + NeuralCompletion AssertEqual \ [ @@ -60,6 +60,6 @@ Execute(The correct neural buffer keybinds should be configured): AssertEqual \ [ - \ 'n (neural_completion) *@:NeuralRun', + \ 'n (neural_completion) *@:NeuralCompletion', \ ], \ sort(split(g:output, "\n"))