Comments (8)
Hello @alok, unfortunately, I know nothing of Haskell. There are some examples on the project's readme about how to add a new REPL. If possible, open a pull request and I'll be glad to merge it. 😄
from neoterm.
I don't know Haskell very well (read: at all) but I think simply adding this to ftdetect/set_repl_cmd.vim should do it:
" Haskell GHCi
au VimEnter,BufRead,BufNewFile *hs,
\ if executable('ghci') |
\ call neoterm#repl#set('ghci') |
\ endif
I don't know whether GHCi's commands that begin with :
, e.g. :def
, will confuse Vim though. ¯_(ツ)_/¯
from neoterm.
That works decently well, though it can't do multiline commands or function declarations since GHCI requires those have the word "let" in front of them. I'm going to look at vim-slime for some inspiration.
from neoterm.
Why you can't use multiline commands an let
functions with that solution?
from neoterm.
I'll close this for have no informations. But please, feel free it you can add more info.
from neoterm.
I'll close this for have no informations. But please, feel free it you can add more info.
I encountered that problem just now. Multi-line code in ghci must be fenced with :{
and :}
. So, for example, if I visually select the lower 3 lines of the following code:
-- Compute the length of a list of Integers.
intListLength :: [Integer] -> Integer
intListLength [] = 0
intListLength (x:xs) = 1 + intListLength xs
it needs to be send to ghci in this way:
:{
intListLength :: [Integer] -> Integer
intListLength [] = 0
intListLength (x:xs) = 1 + intListLength xs
:}
from neoterm.
#274 introduced the possibility to have lang-specific REPL senders. Which would be helpful to solve this problem.
from neoterm.
I'll close this for have no informations. But please, feel free it you can add more info.
from neoterm.
Related Issues (20)
- ,tt hard crashes if there is no Tmap set
- Having trouble setting a key mapping for `neoterm_clear_cmd`
- Support Croissant REPL for Lua HOT 1
- `vim.g.neoterm_bracketed_paste = 0` seems to not work with the lua repl
- Doesn't work with wsl
- {motion} Send to REPL HOT 1
- Do not print every line in file ?
- Integrate with `focus.nvim` to split nice
- Neoterm error when default shell is changed to pwsh/powershell HOT 2
- neoterm sends previous clipboard content to ipython REPL
- Term change size after extra window appear
- With autojump set, toggle does not return back to last window
- Undefined variable on fresh install HOT 8
- Python REPL gives an error when sending code containing a string that ends with `'r'` HOT 1
- When `g:neoterm_autoscroll` is set, running `T` or `Tredo` enters insert mode.
- How to run current Python file in neoterm with current Conda environment? HOT 2
- Allow for vsplit to start halfway down the screen HOT 3
- Avoid E947 if a hidden terminal buffer exist when quit vim
- Can I get a beginner tutorial for navigation? HOT 1
- Would like a way to automatically be navigated to the parent of current file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neoterm.