Neovimfs is that Fsi and intellisense works on Suave server.
F#
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pic add attribute hint Feb 16, 2017
.gitignore
README.md
neovimfs.fsx fix addorUpdate -> getOrAdd Feb 21, 2017

README.md

Neovimfs

Neovimfs is that Fsi and intellisense works on Suave server.


alt text

Install

$ git clone https://github.com/callmekohei/Neovimfs

Required

  1. Suave
  2. FSharp.Compiler.Service

How to use

  1. compile neovimfs.fsx
  2. mono neovimfs.exe /path/to/fsi.exe
  3. access port8080

Terminate neovimfs.exe

// check suave server pid
$ lsof -i :8080

// terminate suave server
$ kill (pid)





Noevimfs with Neovim

Neovim configuration

init.vim

autocmd BufRead,BufNewFile *.fsx set filetype=fsharp


QuickRun with Neovimfs

alt text

Required

create fio.bash

urlencoded_str=$(curl -s -w '%{url_effective}\n' --data-urlencode $1 -G '')
urlencoded_str=${urlencoded_str:2}
curl -s 'localhost:8080/evalScript/'${urlencoded_str}

create fio command

$ cp fio.bash fio

$ chmod 777 fio

$ sudo mv fio /usr/local/bin

quickrun configuration

let g:quickrun_config = {
\     , 'fsharp': {
\           'exec'   :  [ '%c %s:p:r.fsx']
\         , 'command':  'fio'
\     }
\ }


Intellisense completion with Neovimfs

dot hint

alt text

attribute hint

alt text

one word hint

alt text

Required

deoplete configuration

let g:deoplete#enable_at_startup = 1
let g:deoplete#max_list = 250
set previewheight=5
let g:deoplete#auto_complete_delay=0


Syntax highlight of FSharp

alt text

FSharp syntax highlight configuration

# create syntax folder
$ cd $XDG_CONFIG_HOME/nvim
$ mkdir syntax

# download fsharp.vim file
$ cd syntax
$ wget https://raw.githubusercontent.com/fsharp/vim-fsharp/master/syntax/fsharp.vim



LICENCE

The MIT License (MIT)