Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazy.nvim configuration #84

Open
liamwh opened this issue Jun 5, 2024 · 5 comments
Open

lazy.nvim configuration #84

liamwh opened this issue Jun 5, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@liamwh
Copy link

liamwh commented Jun 5, 2024

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.

@liamwh liamwh added the enhancement New feature or request label Jun 5, 2024
@muneebusmani
Copy link

Dude it is damn easy

@muneebusmani
Copy link

muneebusmani commented Jun 7, 2024

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
Copy link

@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
Copy link

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.

@pracplayopen
Copy link

tried @muneebusmani suggestion and got an error:

Failed to setup handlers for Ionide-vim
                                                                                                                                                                                                                                         
...hare/nvim/lazy/lazy.nvim/lua/lazy/core/handler/event.lua:68: Invalid 'event': 'LazyFile'                                                                                                                                              
                                                                                                                                                                                                                                         
# stacktrace:                                                                                                                                                                                                                            
  - ~/.config/nvim/init.lua:17

~/.config/nvim/lua/plugins/fsharp.lua:

-- via: https://github.com/ionide/Ionide-vim/issues/84#issuecomment-2154200542


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

nvim:

$ nvim --version|head
NVIM v0.11.0-dev-1128+g0e54931b99
Build type: RelWithDebInfo
LuaJIT 2.1.1727870382

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants