Skip to content

fsautocomplete

https://github.com/fsharp/FsAutoComplete

Language Server for F# provided by FsAutoComplete (FSAC).

FsAutoComplete requires the dotnet-sdk to be installed.

The preferred way to install FsAutoComplete is with dotnet tool install --global fsautocomplete.

Instructions to compile from source are found on the main repository.

You may also need to configure the filetype as Vim defaults to Forth for *.fs files:

autocmd BufNewFile,BufRead *.fs,*.fsx,*.fsi set filetype=fsharp

This is automatically done by plugins such as PhilT/vim-fsharp, fsharp/vim-fsharp, and adelarsq/neofsharp.vim.

Setup

require'lspconfig'.fsautocomplete.setup{}

Default values

cmd = { "dotnet", "fsautocomplete", "--background-service-enabled" }
filetypes = { "fsharp" }
init_options = {
  AutomaticWorkspaceInit = true
}
root_dir = function(startpath)
    return M.search_ancestors(startpath, matcher)
  end
Back to top