cheovim icon indicating copy to clipboard operation
cheovim copied to clipboard

how to get started question

Open molleweide opened this issue 2 years ago • 6 comments

Hi,

have i gotten the concept right here??

  • ~/.config/nvim_configs/personal.nvim mv config with init.lua here i can store all my cloned local configs that i want to checkout with cheovim

  • ~/.config/nvim fork of cheovim project where I store my various profiles, which means my nvim directory mostly becomes a list of profiles, right? eg, my_config = { "~/.config/nvim_configs/personal", {

molleweide avatar Jul 21 '21 11:07 molleweide

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

NTBBloodbath avatar Jul 21 '21 17:07 NTBBloodbath

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",
        }
    },

molleweide avatar Jul 21 '21 18:07 molleweide

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

NTBBloodbath avatar Jul 21 '21 18:07 NTBBloodbath

great thanks! brb when i tried it!!

molleweide avatar Jul 21 '21 18:07 molleweide

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

molleweide avatar Jul 21 '21 18:07 molleweide

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.

matu3ba avatar Jul 21 '21 22:07 matu3ba