NTBBloodbath / cheovim

Neovim configuration switcher written in Lua. Inspired by chemacs.
GNU General Public License v2.0
332 stars 13 forks source link

how to get started question #3

Open molleweide opened 3 years ago

molleweide commented 3 years ago

Hi,

have i gotten the concept right here??

NTBBloodbath commented 3 years ago

Hey, sorry for the late reply, was occupied.

Yeah, that's how it works. Then you'll only need to change the return statement value in your profiles.lua to match the config that you want to use and cheovim will handle it for you :)

Regards

molleweide commented 3 years ago

Yo I got it to work with my own config but not with doom-nvim right away. But I think that I am almost there!! Do you know what the problem is. I cloned doom-nvim to .config/nvim.config/doom

I guess my question is: is there a way to make nvim tell me where this lua callback is ??

this is the error that i get:

Error executing vim.schedule lua callback: cannot open /Users/hjalmarjakobsson/.config/doom-nvim/doom_config.lua: No such file or directory
Press ENTER or type command to continue

and this is my profiles.lua

 molleweide = { "~/.config/nvim.config/molleweide", {
            plugins = "packer",
            preconfigure = "packer",
        }
    },
    doom_nvim = { "~/.config/nvim.config/doom", {
            plugins = "packer",
            preconfigure = "doom-nvim"
        }
    },
    neovhy = { "~/.config/nvim.config/neovhy", {
            plugins = "packer",
            preconfigure = "neovhy",
        }
    },
NTBBloodbath commented 3 years ago

Ahh that's a doom-nvim issue. The path to doom-nvim root directory is hardcoded at the moment. :(

However you can hack it by modifying this line

molleweide commented 3 years ago

great thanks! brb when i tried it!!

molleweide commented 3 years ago

lol it works this is so cool!! and doom nvim looks pretty dope. this is just so great.

matu3ba commented 3 years ago

I would appreciate very much a wiki entry with a minimal configuration to "just make it work".

Also its unclear to me, if/how packer still works with this plugin and if I can run multiple independent instances of neovim that use all a different packer path. The README elaborates, but is quite noisy with words instead of giving some short and simple config examples to understand.