dharmx / nvim

Blazingly fast SHUTTHEFUCKUP.
GNU General Public License v3.0
80 stars 0 forks source link

Questions. #7

Closed karambaq closed 1 year ago

karambaq commented 1 year ago

Hey, really really wonderful config! I think I didn't see anything similar, great job!

I really want my neovim too look that fancy but unfortunately I don't know Lua and neovim config system and I faced a couple of errors while trying to copy your config. So I have a couple of questions:

1) How can I change theme globally which provide nvim-colo, in which file I should add something? I've tried change fallback theme to something else but he can't find them. 2) feline isn't starting, how can I enable it? 3) When I open directory, and then select file using ranger - this happens:

image

Thanks in advance!

dharmx commented 1 year ago

Plugin specs are not allowed there. All those plugin names in setup will be excluded (They will be disabled). I did this because I found navigating to the specific plugin files and commenting out plugins quite cumbersome. And, this will help if any config error occurs.

-- I guess you can interpret setup as exclude.
require("dharmx.plug").setup({
  "simrat39/symbols-outline.nvim",
  "sheerun/vim-polyglot",
  "andweeb/presence.nvim",
  "rktjmp/paperplanes.nvim",
  "nvim-treesitter/nvim-tree-docs",
  "windwp/nvim-ts-autotag",
  "echasnovski/mini.indentscope",
  "nvim-tree/nvim-tree.lua",
  "hrsh7th/cmp-nvim-lua",
})

And, only strings are allowed there. If you want to add plugins then either add that whichkey table to one of the files here or, create a new file there and return a table similar to the following.

-- Inside ~/.config/nvim/lua/dharmx/plug/spec/others.lua
-- Name can be anything because all files under ~/.config/nvim/lua/dharmx/plug/spec
-- will be sourced automatically.

return {
  {
    "folke/whick-key.nvim",
    ...
  }
}

As, for the ranger thing I am not too sure. That error seems to be coming from my telescope-mdia.nvim plugin though, which is confusing.

dharmx commented 1 year ago

Themes are pulled from the nvim-colo plugin. You can find all available themes here. And, from Neovim you can call :ColoTele. And, you can use :Colo radium_dark for setting the theme of your choice. The colo config can be found here. It is recommended to use :Colo and :ColoTele to only browse the themes and the config to set the theme.

dharmx commented 1 year ago

Did a push. Feline should work now.

dharmx commented 1 year ago

Alright, closing this. Feel free to reopen if you need anything.

karambaq commented 1 year ago

Thank you!