This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-27
Channels
- # announcements (8)
- # babashka (11)
- # beginners (34)
- # clerk (11)
- # clj-http (2)
- # clojure (5)
- # clojure-europe (9)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-poland (1)
- # clojure-sweden (5)
- # clojure-uk (9)
- # clojurescript (17)
- # core-typed (12)
- # cursive (4)
- # datahike (4)
- # datalevin (2)
- # datomic (7)
- # emacs (8)
- # events (8)
- # graphql (5)
- # gratitude (1)
- # hyperfiddle (19)
- # jobs-discuss (4)
- # leiningen (4)
- # lsp (21)
- # meander (2)
- # off-topic (9)
- # play-clj (1)
- # polylith (10)
- # releases (1)
- # sci (18)
- # vim (10)
Hello! I am new to neovim and to fennel. I am experimenting with basic configuration with fennel. I got some basic config to work with aniseed but am now struggling to replicate something while using nfnl. After looking through https://github.com/rafaeldelboni/cajus-nfnl/tree/main as an example I tried the following only to get an error
(local {: autoload} (require :nfnl.module))
(local nvim (autoload :nvim))
(local core (autoload :nfnl.core))
(set nvim.g.maplocalleader ",")
error:
/Users/davidgonsalves/.vim/plugged/nfnl/lua/nfnl/module.lua:11: module 'nvim' not found:
no field package.preload['nvim']
no file './nvim.lua'
no file '/opt/homebrew/share/luajit-2.1/nvim.lua'
no file '/usr/local/share/lua/5.1/nvim.lua'
no file '/usr/local/share/lua/5.1/nvim/init.lua'
no file '/opt/homebrew/share/lua/5.1/nvim.lua'
no file '/opt/homebrew/share/lua/5.1/nvim/init.lua'
no file './nvim.so'
no file '/usr/local/lib/lua/5.1/nvim.so'
no file '/opt/homebrew/lib/lua/5.1/nvim.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
Can anyone help me out?It looks like cajus is using https://github.com/norcalli/nvim.lua which provides the nvim
module, although there's no need to as most of it was merged into neovim already under the vim
module as @/fuad mentions.
So your above code could probably be:
(local {: autoload} (require :nfnl.module))
(local core (autoload :nfnl.core))
(set vim.g.mapleader ",")
Thanks @U3RBA0P4L and @U5W78K2UF
Hey good call, I've removed the norcalli/nvim.lua caju's dependency based on this conversation
Thanks ❤️
Thanks @UMMMKKADU!!! I have been learning a lot from cajus-nfnl and your dotfile repository! I have been really enjoying configuring neovim with fennel and I could not have done it without some of your examples.