ionide / Ionide-vim

F# Vim plugin based on FsAutoComplete and LSP protocol
MIT License
174 stars 21 forks source link

lazy.nvim configuration #84

Open liamwh opened 3 months ago

liamwh commented 3 months ago

I am using LazyVim and lazy.nvim and would like to get started with developing in f# using Neovim.

I'd suggest two solutions:

  1. On the README.md page here, an example of how to get Ionide-vim working with lazy.nvim next to vim-plug and dein.vim.
  2. A LazyVim extra for f# #3452

I've considered trying to set up ionide-vim myself but don't have enough experience to follow the docs and convert it to lazy.nvim simulateously.

muneebusmani commented 3 months ago

Dude it is damn easy

muneebusmani commented 3 months ago

Dude it is damn easy :

return {
  "ionide/Ionide-vim",
  event = "LazyFile",
}

Simple as that,in plugins directory, create a new file named fsharp.lua and paste this into that file

TroyMurphy commented 5 days ago

@muneebusmani I am also sadly a newb at this, but what would the translation be to set the lua variables for g.fsharp#fsi_keypmap...

tucker87 commented 1 day ago

I'm brand new to Neo/LazyVim and trying to figure all this out.

I tried what @muneebusmani suggested but it only kind of worked. It would highlight and give code hints but formatting wasn't working.

This is what I've got so far trying to make it all work.

The crazy function at the bottom is me trying to get FsiEval to run the block of code under my cursor. For some reason FsiEval doesn't acutally execute the code.