Giter VIP home page Giter VIP logo

nyoom.nvim's People

Contributors

aleksandersumowski avatar benjstephenson avatar bobuk avatar boydkelly avatar conr2d avatar dawnonmercury avatar diegofariasm avatar floppydiskette avatar genzyy avatar icy-thought avatar luxus avatar maxcan-code avatar mmatongo avatar restyled-commits avatar shaunsingh avatar tylerbarnes avatar wizard-28 avatar yummy-licorice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nyoom.nvim's Issues

Several bugs in installation process

Hi,

I installed nyoom.nvim via the installation script, with the latest development release of Neovim (version NVIM v0.8.0-dev-751-g8952def50)

However, after the installation script cloned all the required plugins, and after this repository was cloned to ~/.config/nvim; Neovim was launched to execute the command PackerSync

Following that:

  • The command failed to install some packages, notably 'oxocarbon', and Neovim gave several file not found errors.
  • By retrying the command, I got most of the packaes that failed to install installed, and restarted Neovim.

Here though, I got the error 'module 'oxocarbon' not found, alongside a list of files related to the module that couldn't be found. I also got the error message 'vim.lsp' not found.

I don't know if it's my mistake or not, as I just got into Vim/Neovim, so can you please help me?

`(set! laststatus 3)` occurs three times in config.fnl

$ grep laststatus -1 -Rn fnl/
fnl/conf/core/config.fnl-79-;; Set a global statusline
fnl/conf/core/config.fnl:80:(set! laststatus 3)
fnl/conf/core/config.fnl-81-
--
fnl/conf/core/config.fnl-112-;; Universal Statusline
fnl/conf/core/config.fnl:113:(set! laststatus 3)
fnl/conf/core/config.fnl-114-
--
fnl/conf/core/config.fnl-121-;; global statusline
fnl/conf/core/config.fnl:122:(set! laststatus 3)
fnl/conf/core/config.fnl-123-

LSP telescope module not found on opening .tex and .bib files

On opening .tex and .bib files, I get the following error about LSP and telescope:

Error executing vim.schedule lua callback: ...packer/opt/telescope.nvim/lua/telescope/builtin/init.lua:414: module 'telescope.builtin.__lsp' not found:        
        no field package.preload['telescope.builtin.__lsp']                                                                                                    
        no file './telescope/builtin/__lsp.lua'                                                                                                                
        no file '/home/dawn/git/neovim/.deps/usr/share/luajit-2.1.0-beta3/telescope/builtin/__lsp.lua'                                                         
        no file '/usr/local/share/lua/5.1/telescope/builtin/__lsp.lua'                                                                                         
        no file '/usr/local/share/lua/5.1/telescope/builtin/__lsp/init.lua'                                                                                    
        no file '/home/dawn/git/neovim/.deps/usr/share/lua/5.1/telescope/builtin/__lsp.lua'                                                                    
        no file '/home/dawn/git/neovim/.deps/usr/share/lua/5.1/telescope/builtin/__lsp/init.lua'                                                               
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/builtin/__lsp.lua'                                                
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/builtin/__lsp/init.lua'                                           
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/builtin/__lsp.lua'                                       
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/builtin/__lsp/init.lua'                                  
        no file './telescope/builtin/__lsp.so'                                                                                                                 
        no file '/usr/local/lib/lua/5.1/telescope/builtin/__lsp.so'                                                                                            
        no file '/home/dawn/git/neovim/.deps/usr/lib/lua/5.1/telescope/builtin/__lsp.so'                                                                       
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                            
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope/builtin/__lsp.so'                                                   
        no file './telescope.so'                                                                                                                               
        no file '/usr/local/lib/lua/5.1/telescope.so'                                                                                                          
        no file '/home/dawn/git/neovim/.deps/usr/lib/lua/5.1/telescope.so'                                                                                     
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                            
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope.so'                                                                 
stack traceback:                                                                                                                                               
        [C]: in function 'require'                                                                                                                             
        ...packer/opt/telescope.nvim/lua/telescope/builtin/init.lua:414: in main chunk                                                                         
        [C]: in function 'require'                                                                                                                             
        ...he/nvim/hotpot/home/dawn/git/nyoom.nvim/fnl/pack/lsp.lua:38: in function '_on_attach'                                                               
        ...pack/packer/opt/nvim-lspconfig/lua/lspconfig/configs.lua:280: in function '_setup_buffer'                                                           
        ...pack/packer/opt/nvim-lspconfig/lua/lspconfig/configs.lua:183: in function ''                                                                        
        vim/_editor.lua: in function <vim/_editor.lua:0>

This error has been occurring roughly since the last PR was merged.

road to nyoom v0.4.0

Sorry the projects been inactive for a while. Here's some features I'd like to implement

New plugins:

@shofel what do you think about replacing which-key.nvim with hydra.nvim? I know they aren't the same, but we could largely do what we do with which-key using hydra.nvim, and hydra would lend me a few extra niceties and features to work with.

New features:

  • Support for linters and the debugger (finally!)
  • Healthcheck and proper colorscheme support using the new hotpot build API

Bugfixes:
General speed improvements
Redo and cleanup the lazy-loading system
Lsp/Cmp setup and cleanup

remove copilot (or fix its implementation).

A proposal on keymaps management

Tldr: What if we remove custom wrappers around which-key and use it directly everywhere to set and describe key mappings? It should reduce complexity of both maintenance and usage.

A longer version

  1. Let's use which-key to not only document keymap roots, but also to map all the keys.
  2. Let's use which-key directly, without wrappers. Which-key has a neat declarative interface. If it has some rough edges, we can probably fix them with small specialized macros. But first of all, those issues should be carefully identified.
  3. Describe key mappings for lsp in the same file as other mappings. Then export a function to setup keys for a buffer, and use this function in the lsp configuration

How does it looks like:
https://github.com/shofel/nyoom.nvim/blob/831f1061b5b53bd07cc4bf662f7702bce89f8728/fnl/core/keymaps.fln

Profit of removing macros.keybind-macros

  1. Reduce maintenance cost
  2. Reduce learning efforts

lsp error on entering a .lua or .tex file

On entering a .tex or .lua file (with both texlab and sumneko_lua lsps installed correctly), the following error is brought up:

Error executing vim.schedule lua callback: ...he/nvim/hotpot/home/dawn/git/nyoom.nvim/fnl/pack/lsp.lua:34: must pass one of: 'command', 'callback'             
stack traceback:                                                                                                                                               
        [C]: in function 'nvim_create_autocmd'                                                                                                                 
        ...he/nvim/hotpot/home/dawn/git/nyoom.nvim/fnl/pack/lsp.lua:34: in function '_on_attach'                                                               
        ...pack/packer/opt/nvim-lspconfig/lua/lspconfig/configs.lua:280: in function '_setup_buffer'                                                           
        ...pack/packer/opt/nvim-lspconfig/lua/lspconfig/configs.lua:183: in function ''                                                                        
        vim/_editor.lua: in function <vim/_editor.lua:0>

Notably, the lsps still work, and also the error does not come up when entering a .py file (with pyright installed).

Error during install of nyoom, 'keymap' a nil value

When replacing my old config with the current nyoom, opening nvim results in the following error (before :PackerCompile and :PackerSync are possible):

error detected while processing /home/eris/.config/nvim/init.lua:
E5113: Error while calling lua chunk: >...ot/home/eris/.config/nvim/fnl/conf/modules/core/maps.lua:3: attempt to index field >'keymap' (a nil value)
stack traceback:
...ot/home/eris/.config/nvim/fnl/conf/modules/core/maps.lua:3: in main chunk
[C]: at 0x7f197a9cd7d0
[C]: in function 'require'
...che/nvim/hotpot/home/eris/.config/nvim/fnl/conf/init.lua:1: in main chunk
[C]: in function 'require'
/home/eris/.config/nvim/init.lua:38: in main chunk
Press ENTER or type command to continue

Vlime support does not work

commands for vlime
like '\cc' to make a new connection
dont work
I think we will have to rebind every vlime function to leader+command
like leader+cc

clean Installation doesn't work

->> cd ;rm -rf ~/.config/nvim ~/.local/share/nvim/
->> git clone --depth 1 https://github.com/shaunsingh/nyoom.nvim.git ~/.config/nvim; cd ~/.config/nvim
->> bin/nyoom install
Installing Required Plugins
->> bin/nyoom sync
NVIM v0.8.0-dev
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by _nixbld1
error: -n requires an argument
running: nyoom sync on version

E5113: Error while calling lua chunk: Vim:E185: Cannot find color scheme 'oxocarbon'
stack traceback:
        [C]: at 0x010446474c
        [C]: in function 'require'
        ...e/nvim/hotpot/Users/luxus/.config/nvim/fnl/core/init.lua:16: in main chunk
        [C]: in function 'require'
        /Users/luxus/.config/nvim/init.lua:2: in main chunk
Loading Packer
Compiling Module
Initiating Packer
Loading User Plugins

Error while calling lua chunk: module 'conf' not found:could not convert modname to path

I did the following:

git clone --depth 1 https://github.com/shaunsingh/nyoom.nvim.git && cd nyoom.nvim
nix develop 
nvim

Which gave me this error when opening nvim:

Error detected while processing /home/hosk/nyoom.nvim/init.lua:
E5113: Error while calling lua chunk: /home/hosk/nyoom.nvim/init.lua:43: module 'conf' not found:could not convert modname to path
        no field package.preload['conf']
        no file './share/lua/5.1/conf.lua'
        no file './conf.lua'
        no file './conf/init.lua'
        no file './lib/lua/5.1/conf.so'
        no file './conf.so'
        no file './lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /home/hosk/nyoom.nvim/init.lua:43: in main chunk

Default `correlate = true` for hotpot options?

You (or your users) may like having the correlate option enabled, which can make errors that occur in lua, at runtime, more debuggable.

https://fennel-lang.org/api

correlate: when this is truthy, Fennel attempts to emit Lua where the line numbers match up with the Fennel input code; useful for situation where code that isn’t under your control will print the stack traces.

https://github.com/shaunsingh/nyoom.nvim/blob/c47f3a076b47a7ce4c5fdc99580cde98349ccfc8/init.lua#L35-L37

require("hotpot").setup({ 
    provide_require_fennel = true, 
    compiler = {
      -- modules table passed directly to fennels compiler
      modules = {
        correlate = true
      }
    }
  }) 

It does make the lua less readable but generally I find it easier to track issues down. Maybe you will want to at least peek at it, it's not a very advertised Fennel feature.

E: I assume aniseed probably has a similar thing too, or maybe its on by default.

Config correctness on fresh install of nyoom

Fresh install of nyoom, including completely deleting my ~/.local/../pack/ directory and letting everything reinstall fresh yielded the following error on startup:

Error in packer_compiled: ...ite/pack/packer/start/matchparen.nvim/lua/matchparen.lua:114: >attempt to call field 'create_user_command' (a nil value)
Please check your config for correctness
Error detected while processing VimEnter Autocommands for "*":
Error executing lua callback: .../home/valencia/projects/nyoom.nvim/fnl/parinfer/init.lua:297: >attempt to call field 'nvim_create_user_command' (a nil value)
stack traceback:
.../home/valencia/projects/nyoom.nvim/fnl/parinfer/init.lua:297: in function >'parinfer_command_21'
.../home/valencia/projects/nyoom.nvim/fnl/parinfer/init.lua:299: in main chunk
[C]: in function 'require'
.../home/valencia/projects/nyoom.nvim/fnl/pack/parinfer.lua:4: in function '__index'
.../home/valencia/projects/nyoom.nvim/fnl/pack/parinfer.lua:12: in main chunk
[C]: at 0x55d98ff66c40

atm it's past midnight, gonna get to bed. Tomorrow I'll see about tinkering, but you might have better luck~

module 'cmp' not found

Hello shaunsingh,

I am encountering below error after switch to insert mode in neovim:
_Error detected while processing InsertEnter Autocommands for "*":
E5108: Error executing lua ...pack/packer/start/cmp-nvim-lsp/lua/cmp_nvim_lsp/init.lua:48: module 'cmp' not found:
no field package.preload['cmp']
no file '/Users/xxxx/.cache/nvim/hotpot//Users/xxxx/.local/share/nvim/site/pack/packer/start/hotpot.nvim/fnl/cmp.lua'
no file '/Users/xxxx/.luarocks/share/lua/5.3/cmp.lua'
no file '/Users/xxxx/.luarocks/share/lua/5.3/cmp/init.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/luarocks/share/lua/5.3/cmp.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/luarocks/share/lua/5.3/cmp/init.lua'
no file '/usr/local/Cellar/luarocks/3.7.0/share/lua/5.3/cmp.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/luarocks/share/lua/5.3/cmp.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/luarocks/share/lua/5.3/cmp/init.lua'
no file '/usr/local/share/lua/5.3/cmp.lua'
no file '/usr/local/share/lua/5.3/cmp/init.lua'
no file '/usr/local/lib/lua/5.3/cmp.lua'
no file '/usr/local/lib/lua/5.3/cmp/init.lua'
no file './cmp.lua'
no file './cmp/init.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/share/lua/5.3/cmp.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/share/lua/5.3/cmp/init.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/share/lua/5.3/cmp.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/share/lua/5.3/cmp/init.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp/init.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp/init.lua'
no file '/Users/xxxx/.luarocks/lib/lua/5.3/cmp.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/luarocks/lib/lua/5.3/cmp.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3/luarocks/lib/lua/5.3/cmp.so'
no file '/usr/local/lib/lua/5.3/cmp.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './cmp.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3/lib/lua/5.3/cmp.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/lib/lua/5.3/cmp.so'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/cmp.so'
stack traceback:
[C]: in function 'require'
...pack/packer/start/cmp-nvim-lsp/lua/cmp_nvim_lsp/init.lua:48: in function 'on_insert_enter'
[string ":lua"]:1: in main chunk

I installed nvim v0.7.0, and have executed PackerSync.

Base colorscheme switching between light/dark does not work

Currently, there is a light and dark mode of the colorscheme in highlights.fnl. However, switching between bg=light/dark fails to properly switch between them.

With (set! background :dark) it (as expected) automatically uses the dark theme on opening nvim. Manually setting :set bg=light breaks the colorscheme completely.

Commenting out (set! background :dark) has the exact same result. When bg is automatically set to dark by the terminal, the colorscheme works correctly but breaks on manual :set bg=light. Opening nvim when bg is automatically set to light by the terminal breaks the colorscheme.

With (set! background :light) in highlihgts.fnl, the same happens in converse. The lights scheme loads correctly, but manually using :set ng=dark breaks the colorscheme completely.

As it stands, the only way to really switch between light and dark modes would be to edit highlights.fnl before opening nvim. There is a possibility that this can only be fixed using an external plugin, such as lush.nvim, which would very much be not ideal.

Oxocarbon link in README

README links to the Nvim Rust bindings repo instead of your own repo at https://github.com/shaunsingh/oxocarbon.nvim, which I expect is what people actually want to see.

Also, although you did Oxocarbon, and we're both Rust fans, I actually suggest switching to Nightfox as it already does a Carbon mimic, but mimics a lot of other themes while having the widest plugin support I've seen out of a flexible Vim theme.

module 'conjure.eval' not found

Hello Shaunsingh,

Got a new error:

Error detected while processing /Users/xxxx/.local/share/nvim/site/pack/packer/opt/cmp-conjure/after/plugin/cmp_conjure.lua:
E5113: Error while calling lua chunk: ...ite/pack/packer/opt/cmp-conjure/lua/cmp_conjure/init.lua:2: module 'conjure.eval' not found:
no field package.preload['conjure.eval']
no file '/Users/xxxx/.cache/nvim/hotpot//Users/xxxx/.local/share/nvim/site/pack/packer/start/hotpot.nvim/fnl/conjure/eval.lua'
no file '/Users/xxxx/.luarocks/share/lua/5.3/conjure/eval.lua'
no file '/Users/xxxx/.luarocks/share/lua/5.3/conjure/eval/init.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/luarocks/share/lua/5.3/conjure/eval.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/luarocks/share/lua/5.3/conjure/eval/init.lua'
no file '/usr/local/Cellar/luarocks/3.7.0/share/lua/5.3/conjure/eval.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/luarocks/share/lua/5.3/conjure/eval.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/luarocks/share/lua/5.3/conjure/eval/init.lua'
no file '/usr/local/share/lua/5.3/conjure/eval.lua'
no file '/usr/local/share/lua/5.3/conjure/eval/init.lua'
no file '/usr/local/lib/lua/5.3/conjure/eval.lua'
no file '/usr/local/lib/lua/5.3/conjure/eval/init.lua'
no file './conjure/eval.lua'
no file './conjure/eval/init.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/share/lua/5.3/conjure/eval.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3/share/lua/5.3/conjure/eval/init.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/share/lua/5.3/conjure/eval.lua'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/share/lua/5.3/conjure/eval/init.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/conjure/eval.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/conjure/eval/init.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/conjure/eval.lua'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/conjure/eval/init.lua'
no file '/Users/xxxx/.luarocks/lib/lua/5.3/conjure/eval.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/luarocks/lib/lua/5.3/conjure/eval.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3/luarocks/lib/lua/5.3/conjure/eval.so'
no file '/usr/local/lib/lua/5.3/conjure/eval.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './conjure/eval.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3/lib/lua/5.3/conjure/eval.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/lib/lua/5.3/conjure/eval.so'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/conjure/eval.so'
no file '/Users/xxxx/.luarocks/lib/lua/5.3/conjure.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/luarocks/lib/lua/5.3/conjure.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3/luarocks/lib/lua/5.3/conjure.so'
no file '/usr/local/lib/lua/5.3/conjure.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './conjure.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3/lib/lua/5.3/conjure.so'
no file '/Users/xxxx/.asdf/installs/lua/5.3.6/lib/lua/5.3/conjure.so'
no file '/Users/xxxx/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/conjure.so'
stack traceback:
[C]: in function 'require'
...ite/pack/packer/opt/cmp-conjure/lua/cmp_conjure/init.lua:2: in main chunk
[C]: in function 'require'
...pack/packer/opt/cmp-conjure/after/plugin/cmp_conjure.lua:1: in main chunk
Press ENTER or type command to continue

Fresh install, error with oxocarbon on opening nvim

On a fresh install, I get the following error when opening nvim. Seems to be a problem finding oxocarbon.

Error detected while processing /home/dawn/git/nyoom.nvim/init.lua:
E5113: Error while calling lua chunk: ....cache/nvim/hotpot/home/dawn/git/nyoom.nvim/fnl/init.lua:52: module 'oxocarbon' not found:
        no field package.preload['oxocarbon']
        no file './oxocarbon.lua'
        no file '/home/dawn/git/neovim/.deps/usr/share/luajit-2.1.0-beta3/oxocarbon.lua'
        no file '/usr/local/share/lua/5.1/oxocarbon.lua'
        no file '/usr/local/share/lua/5.1/oxocarbon/init.lua'
        no file '/home/dawn/git/neovim/.deps/usr/share/lua/5.1/oxocarbon.lua'
        no file '/home/dawn/git/neovim/.deps/usr/share/lua/5.1/oxocarbon/init.lua'
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/oxocarbon.lua'
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/oxocarbon/init.lua'
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/oxocarbon.lua'
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/oxocarbon/init.lua'
        no file './oxocarbon.so'
        no file '/usr/local/lib/lua/5.1/oxocarbon.so'
        no file '/home/dawn/git/neovim/.deps/usr/lib/lua/5.1/oxocarbon.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/home/dawn/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/oxocarbon.so'
stack traceback:
        [C]: in function 'require'
        ....cache/nvim/hotpot/home/dawn/git/nyoom.nvim/fnl/init.lua:52: in main chunk
        [C]: in function 'require'
        /home/dawn/git/nyoom.nvim/init.lua:2: in main chunk

Notably, when (set! colorscheme "muses") was still in options.fnl, the following error comes up on entering nvim instead.

E5113: Error while calling lua chunk: ...vim/hotpot/home/dawn/git/nyoom.nvim/fnl/core/options.lua:78: attempt to call global 'colorscheme' (a nil value)
stack traceback:
        ...vim/hotpot/home/dawn/git/nyoom.nvim/fnl/core/options.lua:78: in main chunk
        [C]: in function 'require'
        ...e/nvim/hotpot/home/dawn/git/nyoom.nvim/fnl/core/init.lua:5: in main chunk
        [C]: in function 'require'
        ....cache/nvim/hotpot/home/dawn/git/nyoom.nvim/fnl/init.lua:51: in main chunk
        [C]: in function 'require'
        /home/dawn/git/nyoom.nvim/init.lua:2: in main chunk

module `cmp_nvim_lsp` not found

I'm getting this error after freshly installing the config, and ran :PackerSync

..im/hotpot/home/pop-os/.config/nvim/fnl/conf/pack/lsp.lua:24: module 'cmp_nvim_lsp' not found:
	no field package.preload['cmp_nvim_lsp']
	no file '/home/pop-os/.cache/nvim/hotpot//home/pop-os/.local/share/nvim/site/pack/packer/start/hotpot.nvim/fnl/cmp_nvim_lsp.lua'
	no file './cmp_nvim_lsp.lua'
	no file '/usr/share/luajit-2.1.0-beta3/cmp_nvim_lsp.lua'
	no file '/usr/local/share/lua/5.1/cmp_nvim_lsp.lua'
	no file '/usr/local/share/lua/5.1/cmp_nvim_lsp/init.lua'
	no file '/usr/share/lua/5.1/cmp_nvim_lsp.lua'
	no file '/usr/share/lua/5.1/cmp_nvim_lsp/init.lua'
	no file '/home/pop-os/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp_nvim_lsp.lua'
	no file '/home/pop-os/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp_nvim_lsp/init.lua'
	no file '/home/pop-os/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp_nvim_lsp.lua'
	no file '/home/pop-os/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp_nvim_lsp/init.lua'
	no file './cmp_nvim_lsp.so'
	no file '/usr/local/lib/lua/5.1/cmp_nvim_lsp.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cmp_nvim_lsp.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file '/home/pop-os/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/cmp_nvim_lsp.so'

handling additional addons and configurations

it would be great if additional addons don't prevent from updating from master.
it would be nice if there is a place where i can overwrite the theme/addon configs without having a pull conflict.

any plans how to add common addons? maybe a .md where people can PR addons? with instructions where to add code?

E5113 Error on a fresh install on neovim 0.6.1 on WSL

Hey there!

I'm trying to install this on my Ubuntu WSL Distro with neovim 0.6.1 and I keep running into this error when running the initial install (full output when invoking nvim for the first time after cloning the repo):

:!git clone https://github.com/wbthomason/packer.nvim /home/boris/.local/share/nvim/site/pack/packer/start/packer.nvim
Cloning into '/home/boris/.local/share/nvim/site/pack/packer/start/packer.nvim'...

:!git clone https://github.com/lewis6991/impatient.nvim /home/boris/.local/share/nvim/site/pack/packer/start/impatient.nvim
Cloning into '/home/boris/.local/share/nvim/site/pack/packer/start/impatient.nvim'...

:!git clone https://github.com/rktjmp/hotpot.nvim /home/boris/.local/share/nvim/site/pack/packer/start/hotpot.nvim
Cloning into '/home/boris/.local/share/nvim/site/pack/packer/start/hotpot.nvim'...

Error detected while processing /home/boris/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...//home/boris/.config/nvim/fnl/conf/modules/core/maps.lua:3: attempt to index field 'keymap' (a nil value)
stack traceback:
        ...//home/boris/.config/nvim/fnl/conf/modules/core/maps.lua:3: in main chunk
        [C]: at 0x7f1f930a30b0
        [C]: in function 'require'
        ...e/nvim/hotpot//home/boris/.config/nvim/fnl/conf/init.lua:1: in main chunk
        [C]: in function 'require'
        /home/boris/.config/nvim/init.lua:38: in main chunk
Press ENTER or type command to continue

Am I doing something wrong? Should I be using neovim nightly? Readme states that stable should be ok too?

Thanks!

Attempt to index field 'keymap' (a nil value) when trying to install nyoom.vim

Error detected while processing /home/sapien/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...e/nvim/hotpot/home/sapien/.config/nvim/fnl/conf/maps.lua:
3: attempt to index field 'keymap' (a nil value)
stack traceback:
        ...e/nvim/hotpot/home/sapien/.config/nvim/fnl/conf/maps.lua:3: in main chunk
        [C]: in function 'require'
        ...e/nvim/hotpot/home/sapien/.config/nvim/fnl/conf/init.lua:2: in main chunk
        [C]: in function 'require'
        /home/sapien/.config/nvim/init.lua:43: in main chunk
Press ENTER or type command to continue

This is the problem I encounter after cloning the repository and then running nvim.

Completely fresh install brings up an error, and config fails

I used both a fresh install of your config directly from git, and my version updated to your upstream, and in both cases the config fails with the following error showing up on entering nvim.

E5113: Error while calling lua chunk: Vim:E185: Cannot find color scheme 'carbon'
stack traceback:
        [C]: at 0x560dbbd8e970
        [C]: in function 'require'
        ...pot/home/dawn/git/shaunsinghnyoom.nvim/fnl/core/init.lua:2: in main chunk
        [C]: in function 'require'
        ...m/hotpot/home/dawn/git/shaunsinghnyoom.nvim/fnl/init.lua:26: in main chunk
        [C]: in function 'require'
        /home/dawn/git/shaunsinghnyoom.nvim/init.lua:47: in main chunk```
     

Neovim cant find oxocarbon module on fresh install

Same as https://github.com/shaunsingh/nyoom.nvim/issues/43 but I still get the error:

Error detected while processing /Users/icy/.config/nvim/init.lua:
E5113: Error while calling lua chunk: Vim:E5113: Error while calling lua chunk: ...te/pac
k/packer/start/oxocarbon.nvim/colors/oxocarbon.lua:1: module 'oxocarbon' not found:
        no field package.preload['oxocarbon']
        no file './oxocarbon.lua'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3
/oxocarbon.lua'
        no file '/usr/local/share/lua/5.1/oxocarbon.lua'
        no file '/usr/local/share/lua/5.1/oxocarbon/init.lua'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/oxocarbon.
lua'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/oxocarbon/
init.lua'
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/oxocar
bon.lua'
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/oxocar
bon/init.lua'
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5
.1/oxocarbon.lua'
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5
.1/oxocarbon/init.lua'
        no file './oxocarbon.so'
        no file '/usr/local/lib/lua/5.1/oxocarbon.so'
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/oxocarbon.so
'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/oxocarbo
n.so'
stack traceback:
        [C]: in function 'require'
        ...te/pack/packer/start/oxocarbon.nvim/colors/oxocarbon.lua:1: in main chunk
        [C]: at 0x010748cb95
        [C]: in function 'require'
        /Users/icy/.config/nvim/init.lua:2: in main chunk
stack traceback:
        [C]: at 0x010748cb95
        [C]: in function 'require'

I am using MacOS if that could be the reason

Error when adding a Neorg task to a project via gtd

When using Neorg gtd capture to create a new task and adding to a project (for example * WORK found in index.norg) the following error is thrown up:

E5108: Error executing lua ...ker/opt/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:308: attempt to index local 'node_or_range' (a nil value)                             
stack traceback:                                                                                                                                                             
        ...ker/opt/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:308: in function 'get_node_range'                                                                        
        ...pt/neorg/lua/neorg/modules/core/gtd/queries/creators.lua:235: in function 'insert_tag'                                                                            
        ...pt/neorg/lua/neorg/modules/core/gtd/queries/creators.lua:62: in function 'create'                                                                                 
        ...pt/neorg/lua/neorg/modules/core/gtd/ui/capture_popup.lua:506: in function <...pt/neorg/lua/neorg/modules/core/gtd/ui/capture_popup.lua:489>                       
        .../opt/neorg/lua/neorg/modules/core/ui/selection_popup.lua:343: in function <.../opt/neorg/lua/neorg/modules/core/ui/selection_popup.lua:329>                       
        .../opt/neorg/lua/neorg/modules/core/ui/selection_popup.lua:22: in function 'invoke_key_in_selection'                                                                
        [string ":lua"]:1: in main chunk     

followed by:

[neorg] (22:59:51)
...pt/neorg/lua/neorg/modules/core/gtd/queries/creators.lua:55
Error in inserting new content

Bringing this up here before bringing it up in the Neorg repo

Error with NEORG

When opening .neorg files, the following error appears:

packer.nvim: Error running config for neorg: ...ocal/share/nvim/site/pack/packer/opt/neorg/lua/neorg.lua:113: attempt to call field 'nvim_exec_autocmds' (a nil value)

This does not appear to break to break anything though, the neorg appears to load correcly.

Errors after adding lsps

I tried adding custom lsp servers in lsp.fnl (I just added them to the array after installing server itself)

For example in Svelte files I get

Error executing vim.schedule lua callback: ...ache/nvim/hotpot/Users/icy/.config/nvim/fnl/pack/lsp.lua:33: module 'telescope.builtin' not found:                                    
        no field package.preload['telescope.builtin']                                                                                                                               
        no file './telescope/builtin.lua'                                                                                                                                           
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/luajit-2.1.0-beta3/telescope/builtin.lua'                                                                    
        no file '/usr/local/share/lua/5.1/telescope/builtin.lua'                                                                                                                    
        no file '/usr/local/share/lua/5.1/telescope/builtin/init.lua'                                                                                                               
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/telescope/builtin.lua'                                                                               
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/share/lua/5.1/telescope/builtin/init.lua'                                                                          
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/builtin.lua'                                                                           
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/telescope/builtin/init.lua'                                                                      
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/builtin.lua'                                                                  
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/telescope/builtin/init.lua'                                                             
        no file './telescope/builtin.so'                                                                                                                                            
        no file '/usr/local/lib/lua/5.1/telescope/builtin.so'                                                                                                                       
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/telescope/builtin.so'                                                                                  
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                 
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope/builtin.so'                                                                              
        no file './telescope.so'                                                                                                                                                    
        no file '/usr/local/lib/lua/5.1/telescope.so'                                                                                                                               
        no file '/usr/local/Cellar/luajit-openresty/2.1-20220411/lib/lua/5.1/telescope.so'                                                                                          
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                                                 
        no file '/Users/icy/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/telescope.so'                                                                                      
stack traceback:                                                                                                                                                                    
        [C]: in function 'require'                                                                                                                                                  
        ...ache/nvim/hotpot/Users/icy/.config/nvim/fnl/pack/lsp.lua:33: in function '_on_attach'                                                                                    
        ...pack/packer/opt/nvim-lspconfig/lua/lspconfig/configs.lua:280: in function '_setup_buffer'                                                                                
        ...pack/packer/opt/nvim-lspconfig/lua/lspconfig/configs.lua:183: in function ''                                                                                             
        vim/_editor.lua: in function <vim/_editor.lua:0>  

Although lsp and cmp works perfectly afterwards

I also get error [lspconfig] Cannot access configuration for rust-analyzer. Ensure this server is listed in `server_configurations.md` or added as a custom server. when editing any .rs file, I have rust-analazyer installed through Mason and brew

Am I missing something?

Plenary not found on fresh install startup

New error on startup. Just after cloning (before :PackerSync)

WARNING: Neogit depends on `nvim-lua/plenary.nvim` to work, but loading the plugin failed!
Make sure you add `nvim-lua/plenary.nvim` to your plugin manager BEFORE neogit for everything to work
module 'plenary' not found:
^Ino field package.preload['plenary']
^Ino file '/home/pop-os/.cache/nvim/hotpot//home/pop-os/.local/share/nvim/site/pack/packer/start/hotpot.nvim/fnl/plenary.lua'
^Ino file './plenary.lua'
^Ino file '/usr/share/luajit-2.1.0-beta3/plenary.lua'
^Ino file '/usr/local/share/lua/5.1/plenary.lua'
^Ino file '/usr/local/share/lua/5.1/plenary/init.lua'
^Ino file '/usr/share/lua/5.1/plenary.lua'
^Ino file '/usr/share/lua/5.1/plenary/init.lua'
^Ino file './plenary.so'
^Ino file '/usr/local/lib/lua/5.1/plenary.so'
^Ino file '/usr/lib/x86_64-linux-gnu/lua/5.1/plenary.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
Press ENTER or type command to continue

Packer: problems and proposals

When dealing with use-package! macro I faced two troubles.

  1. It's unsafe to re-evaluate the buffer with package declarations
    Packages are duplicated in _G.pkgs list. The fastest solution is to reset the list after calling packer.startup

  2. naming of custom keys is confusing:

  • config! is for loading a config from file. A better name is load-file. Or config-file?
  • init! to call the setup function. A better name is call-setup

For the second I extracted two macros to call them explicitly

(macro call-setup [name config]
  "To config a plugin: call the setup function."
  `(λ []
      ((. (require ,name) :setup)
       ,config)))

(macro load-file [name]
  "To config a plugin: load a file from pack/ folder."
  `#(require ,(.. "pack." name)))

They are to be used like this

   (pack :neovim/nvim-lspconfig
         {:config (load-file "lsp")
          :requires [(pack :j-hui/fidget.nvim {:after :nvim-lspconfig
                                               :config (call-setup :fidget)})]})

Neorg workspace is not properly set

When opening a .norg file, the following error comes up:

...ker/opt/neorg/lua/neorg/modules/core/gtd/base/module.lua:103
        Workspace not defined. Please update your gtd config
        For more information, check see the wiki:
        https://github.com/nvim-neorg/neorg/wiki/Getting-Things-Done#configuration

Despite workspace being defined in fnl/pack/neorg.fnl

Notably, this does not seem to inhibit funcitoning, but it's mildly frustrating and I figured you should know about it

Could not find cpm-under-comparator

After updating to the latest version of nyoom, run into the following error:
packer.nvim: Error running config for nvim-cmp:

.../home/valencia/projects/nyoom.nvim/fnl/conf/pack/cmp.lua:9: module 'cmp-under-comparator' > not found:could not convert modname to path
no field package.preload['cmp-under-comparator']
no file './cmp-under-comparator.lua'
no file '/home/valencia/neovim/.deps/usr/share/luajit-2.1.0-beta3/cmp-under-comparator.lua'
no file '/usr/local/share/lua/5.1/cmp-under-comparator.lua'
no file '/usr/local/share/lua/5.1/cmp-under-comparator/init.lua'
no file '/home/valencia/neovim/.deps/usr/share/lua/5.1/cmp-under-comparator.lua'
no file '/home/valencia/neovim/.deps/usr/share/lua/5.1/cmp-under-comparator/init.lua'
no file '/home/valencia/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp-under-comparator.lua'
no file '/home/valencia/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/cmp-under-comparator/init.lua'
no file '/home/valencia/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp-under-comparator.lua'
no file '/home/valencia/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/cmp-under-comparator/init.lua'
no file './cmp-under-comparator.so'
no file '/usr/local/lib/lua/5.1/cmp-under-comparator.so'
no file '/home/valencia/neovim/.deps/usr/lib/lua/5.1/cmp-under-comparator.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/valencia/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/cmp-under-comparator.so'

Broken `<Tab>` -- macOS Monterey, iTerm2

I can only get a single use out of TAB with each run of nvim, after which my TAB key just feeds in ^I. This seems particular to something in nyoom, but I cannot find it -- hopefully someone else knows more about this I do? To be clear: run nvim, do anything, hit TAB once in search of a completion, functions as expected the first time; hit TAB at any point again, and ^I is received instead. Then, exiting and restarting nvim "resets" something, and I get another use of TAB

For the sake of reproducibility, I am on vanilla nyoom as of the most recent commit on main; the only difference is the addition of a few simplified keybinds, none of which deal with TAB. This was an issue before their addition, and I've naturally been hesitant to dive much further til I figure out what's doing this.

vim etc perform just fine with TAB, so that seems to at least eliminate some strange interaction between HHKB, iTerm2, and whatever ends up actually being fed in.

I got this Error on fresh install.

I Really want to try this setup. but i couldn't figure it out by my self.

Error detected while processing /home/krap/.config/nvim/init.lua:
E5113: Error while calling lua chunk: vim/_meta.lua:0: E487: Argument must be positive
stack traceback:
        [C]: in function 'nvim_set_option_value'
        vim/_meta.lua: in function '_set'
        vim/_meta.lua: in function '__newindex'
        .../nvim/hotpot/home/krap/.config/nvim/fnl/core/options.lua:16: in main chunk
        [C]: in function 'require'
        ...che/nvim/hotpot/home/krap/.config/nvim/fnl/core/init.lua:2: in main chunk
        [C]: in function 'require'
        ...p/.cache/nvim/hotpot/home/krap/.config/nvim/fnl/init.lua:26: in main chunk
        [C]: in function 'require'
        /home/krap/.config/nvim/init.lua:47: in main chunk
Press ENTER or type command to continue

My neovim version is 0.7.2
hotpot and packer is installed at ~/.local/share/nvim/site/pack/packer/start
but seems hotpot doesn't compile fennel to lua. how can i fix it.

`modeline` doesn't show the diagnostic numbers properly

As the following screenshot shows, the lsp diagnostics showing warnings & errors are not working properly:
diagnostic
And running :lua print(vim.diagnostic.severity.WARN) shows the correct number:
echo_result

It seems like that particular section isn't being updated properly, as other section works normally.

Error while opening a new line

Whenever I press 'O' to create a new line in normal mode, I get this error

Error executing lua callback: vim/shared.lua:0: after the second argument: expected table, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        vim/shared.lua: in function 'tbl_deep_extend'
        ...ite/pack/packer/opt/cmp-buffer/lua/cmp_buffer/source.lua:33: in function '_validate_options'
        ...ite/pack/packer/opt/cmp-buffer/lua/cmp_buffer/source.lua:45: in function 'get_keyword_pattern'
        ...re/nvim/site/pack/packer/opt/nvim-cmp/lua/cmp/source.lua:240: in function 'complete'
        ...hare/nvim/site/pack/packer/opt/nvim-cmp/lua/cmp/core.lua:286: in function 'complete'
        ...hare/nvim/site/pack/packer/opt/nvim-cmp/lua/cmp/core.lua:168: in function 'autoindent'
        ...hare/nvim/site/pack/packer/opt/nvim-cmp/lua/cmp/core.lua:160: in function 'on_change'
        ...hare/nvim/site/pack/packer/opt/nvim-cmp/lua/cmp/init.lua:310: in function 'callback'
        .../site/pack/packer/opt/nvim-cmp/lua/cmp/utils/autocmd.lua:49: in function 'emit'
        .../site/pack/packer/opt/nvim-cmp/lua/cmp/utils/autocmd.lua:23: in function <.../site/pack/packer/opt/nvim-cmp/lua/cmp/utils/autocmd.lua:22>```

`git clone` doesn't work

The git clone in the installation portion of the README, doesn't work

fatal: repository 'shaunsingh/nyoom.nvim' does not exist

I think it needs to be a SSH/HTTPS/GIT link

set! sets only one option, but is used to set more

Hey! Thanks for your work on this project :)

I happily fiddle with it a couple of days, ahd besides porting my old config, also focused on simplifying things:

  • manage keymaps
  • manage plugins
  • setting vim options
  • migrating from macros to functions where possible

Here is my thoughts on setting vim options macro

A problem

It sets only one option
Pretends to set a list
of options
Only the first option is really set

Why this bug became possible

Arity of the function is not checked

It receives two args, but we pass more, and it does not imply an error. This should be because of it's a macro, but not a normal lambda.

By the way, there is not a lot of profit of using macro here. We use a symbol as a first argument, but not a string. BTW, using :keyword or a "keyword" as a first arg is closer to what actually happens in the underlying lua api. Which is considered a good thing according to doom motto :)

I came up with very thin utility function, and removed macros.option-macros to get rid of complexity it introduces 🤔

The naming for set!

What does this function do? It sets a vim option. So ı thnk set-opt! is a proper name here. As for me, set! is too generic and vague here.

Here is a thin wrapper fn, I came up with
And here is how it looks like

vim-set

vim-set can be another good name. Yes, without a bang, because bang in lisps usually means side-effect is performed. "set something in vim" is obviously a side effect, and does not require another marker.

An interface could be like this:

(vim-set :g :mapleader " "
            :maplocalleader ",")
(vim-set :opt :splitright true
              :splitbelow true)

Ran into an issue with :PackerCompile, says to check config for correctness

I recently updated neovim to the latest stable release on Void linux, and switched to the latest release of nyoom.nvim

When compiling packer after deleting packer_compiled, I get the following error:

[packer.nvim] [ERROR 01:06:35] a... Reverse range in character classError in packer_compiled: /home/...ker.nvim/lua/packer/async.lua:11>Please check your config for correctness

Afterwards, whenever opening nvim, the following error comes up:

Error in packer_compiled: /home/natalie/.config/nvim/lua/packer_compiled.lua:550: Vim(source):E5113:
Error while calling lua chunk: .../nvim/site/pack/packer/opt/orgmode/ftdetect/filetype.lua:1: attempt to index field 'filetype' (a nil value)^@\stack traceback:^@^I.../nvim/site/pack/packer/opt/orgmod
e/ftdetect/filetype.lua:1: in main chunk^@^I[C]: in function 'cmd'^@^I/home/natalie/.config/nvim/lua
/packer_compiled.lua:550: in function </home/natalie/.config/nvim/lua/packer_compiled.lua:10>^@^I[C]
: in function 'pcall'^@^I/home/natalie/.config/nvim/lua/packer_compiled.lua:10: in main chunk^@^I[C]
: at 0x7f1b27f407d0^@^I[C]: in function 'pcall'^@^I/home/natalie/.config/nvim/init.lua:52: in main chunk
Please check your config for correctness
Error detected while processing BufReadPost Autocommands for "*":
E5108: Error executing lua ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:165: Vim(echo
msg):E114: Missing quote: "Error in packer_compiled: ...vim/site/pack/packer/opt/packer.nvim/lua/pac
ker/load.lua:139: Vim(packadd):E5113: Error while calling lua chunk: .../nvim/site/pack/packer/opt/o
rgmode/ftdetect/filetype.lua:1: attempt to index field 'filetype' (a nil value)
stack traceback:
[C]: in function 'cmd' ...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:165: in function <...vim/site/pack/packer/opt/packer.nvim/lua/packer/load.lua:161>

I tried this with both a modified version of the config, with the things that I needed in it personally, and then again completely raw, directly from github. I ran into the exact same issue, the exact same errors.

Error occurred 'local-set!' macro on option-macros.fnl

Error detected while processing /home/krap/dotfiles/fvim/init.lua:
E5113: Error while calling lua chunk: ...he/nvim/hotpot/home/krap/dotfiles/fvim/fnl/core/init.
lua:2: module 'core.options' not found:Compile error in /home/krap/.config/nvim/fnl/core/optio
ns.fnl:1:0
  Compile error in /home/krap/.config/nvim/fnl/macros/option-macros.fnl:60:6
  unknown identifier in strict mode: value

I added some buffer local autocmd with this macro yesterday and it worked fine. But suddenly it broke with this Error.
So I had to delete all functions depends on this macro. I don't understand why this is happened. could you help me?

A problem during fresh install

Hello, I recently forked your config and followed the steps regarding nix (so I went into the nix develop).
I'm facing the following issue: when I first call nvim in the spawned nix shell, it gives an error regarding the installation of hotpot

E5113: Error while calling lua chunk: /home/adrian/code/github.com/a-berg/aum.nvim/init.lua:42: module 'hotpot' not found:
        no field package.preload['hotpot']
        no file './share/lua/5.1/hotpot.lua'
        no file './hotpot.lua'
        no file './hotpot/init.lua'
        no file './lib/lua/5.1/hotpot.so'
        no file './hotpot.so'
        no file './lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ~/code/github.com/a-berg/aum.nvim/init.lua:42: in main chunk

The second time I launch nvim, it instead complains of not finding init.

E5113: Error while calling lua chunk: ./init.lua:43: loop or previous error loading module 'init'
stack traceback:
        [C]: in function 'require'
        ./init.lua:43: in main chunk
        [C]: in function 'require'
        ~/code/github.com/a-berg/aum.nvim/init.lua:43: in main chunk

I interpret this as nvim finding the hotpot package (it is indeed installed in ~/.local/share/nvim/site/[...]) and then tries to go into line 43 (require[[init]]) and not finding the fennel init file. I can't advance past this, I am not sure if this is something regarding files naming or if it has to do with the flake.

Maybe it's because I changed the name of my repo from nyoom to aum? But it would be weird.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.