Neoterm only opens zsh (even when in python mode)
mark-fastpay opened this issue · 2 comments
Describe the bug
When I used the neoterm plugin, it fails to leverage the filetype and only opens my default shell.
To Reproduce
Steps to reproduce the behavior:
- Edit xyz.py (or xyz.R)
- Ran :Topen
- Watch zsh launch
Expected behavior
I expected ipython to launch or Repl
Versions (Issues without this information will take longer to be answered/solved):
-
OS: [e.g. macos/linux Ubuntu/etc]
-
neoterm commit master/a8238fa84
-
Add all the configuration you have for neoterm
Plugin straight out of the box -
Vim or Neovim
- vim
- neovim
-
Version [vim --version]
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/config -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/src -I/usr/local/include -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/deps-build/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/src/nvim/auto -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/include
Compiled by brew@Catalina.local
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.4.3/share/nvim"
Run :checkhealth for more info
Can you post your config? Do you have g:neoterm_shell
set?
macos Catalina has zsh by default, this could be one of the reasons.
Hi!
I have the same problem. My neovim build is the current top of master.
`NVIM v0.5.0-856-g7dfeadb0f
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/borneo/PROJECTS/neovim/build/config -I/home/borneo/PROJECTS/neovim/src -I/home/borneo/PROJECTS/neovim/.deps/usr/include -I/usr/include -I/home/borneo/PROJECTS/neovim/build/src/nvim/auto -I/home/borneo/PROJECTS/neovim/build/include
Compiled by borneo@acer
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"
`
**Below my init.vim as well. Can you help me out here? I' using Ubuntu 18.04.
The filetype is right for python and R files as well but only bash opens for Tnew.
Thanks. **
`" Plugin handling
call plug#begin('~/.config/nvim/autoload/plugged')
Plug 'morhetz/gruvbox'
Plug 'kassio/neoterm'
call plug#end()
" Setting the colorscheme
colorscheme gruvbox
" Basic settings
set noswapfile
set number
set relativenumber
set shiftwidth=2 "indent a line 2 spaces with >> command
set scrolloff=5 "set when the screeen starts scrolling
set cursorline "show the cursor actual line with coloring
set virtualedit=all "let the cursore move behind EOL
"set backspace=2 "make backspce working
"set tabstop=2 "set tab
set ignorecase "search case insensitive
" Unsetting space in normal mode and setting it as leader
nnoremap
let mapleader=' '
let localleader=' '
"tab handling commands
noremap :tabnext
noremap :tabprevious
" Easier navigation in help menu (follow link and back to previous position)
" TODO Debug this it doesn't work
nnoremap <C-]>
nnoremap
" Neoterm specific stuff
" Exit terminal mode (to normal mode) with esc
tnoremap <C->
" Start neoterm in insert mode
let g:neoterm_autoinsert=1
" Toggle neoterm buffer at the bottom of the window
noremap :bo Ttoggle
" open terminal in bottom split
" let g:neoterm_default_mod='belowright'
"
" terminal split size
let g:neoterm_size=16
" scroll to the bottom when running a command
let g:neoterm_autoscroll=1
let g:neoterm_direct_open_repl=1
let g:neoterm_repl_python='ipython'
" send current line and move down
nnoremap :TREPLSendLinej
" send current selection
vnoremap :TREPLSendSelection
" Exercises from the book Learn Vimscript the hard way
" Echo a cat on every startup
augroup initGroup
autocmd!
autocmd VimEnter * echo '>^.^<'
augroup END
" fast editing and sourcing of vimrc
noremap ev :tabnew $MYVIMRC
noremap sv :source $MYVIMRC
" Abbreviations
" This is a useful feature for frequently typed text snippets
iabbrev ssig --Istvan Ladjanszkiistvan.ladjanszki@gmail.cov
"" Remap ESC
"inoremap jk
"inoremap
"
""disable arrow keys
"noremap
"noremap
"noremap
"noremap
"noremap
"noremap
" Autocommands
" Indenting html files correctly on writing
"autocmd BufWritePre *.html :normal gg=G
" Don't wrap long lines in html files (if created or readed)
"autocmd BufNewFile,BufRead *.html setlocal nowrap
" Python specific autocommands
augroup pythonGroup
autocmd!
autocmd FileType python nnoremap q I#
augroup END
" Lua specific autocommands
augroup luaGroup
autocmd!
autocmd FileType lua nnoremap q I--
augroup END
" LaTeX specific autocommands
augroup latgexGroup
autocmd!
autocmd FileType latex nnoremap q I%
augroup END
`