moving from my vim setup to LazyVim
I have troubles to setup some plugins. Most important would be a working plugin for surround like mini-surround
, vim-surround
(which I am used to) or nvim-surround
. Here my tree – the plugins with _out I am unable to load. I did not change any files from LazyVim starting packages.
.config/nvim $ tree
.
├── LICENSE
├── README.md
├── filter
│  ├── many_perl_text_filters.pl
│  ...
├── init.lua
├── lazy-lock.json
├── lazyvim.json
├── lua
│  ├── config
│  │  ├── autocmds.lua
│  │  ├── keymaps.lua
│  │  ├── lazy.lua
│  │  └── options.lua
│  └── plugins
│  ├── colorscheme_out
│  ├── devicons.lua
│  ├── example.lua
│  ├── gruvbox.lua
│  ├── md-preview_out
│  ├── mini-surround_out
│  ├── mini.nvim_out
│  ├── nord-theme_out
│  ├── nvim-surround_out
│  ├── telekasten_out
│  ├── telescope_out
│  ├── treesitter.lua
│  └── vim-surround_out
├── stylua.toml
└── test.md
What I understood so far: nvim/init.lua
calls lua/lazy.lua
calls all plugins in folder plugins
. Ok my naive questions:
I need a clear colorscheme; I never understood the nerdy dark mode. But I am unable to activate it. For gruvbox
plugin I tried many variants. Actually I have:
return {
-- from https://www.lazyvim.org/plugins/colorscheme
-- added on 2024-08-11
-- add gruvbox
{ "ellisonleao/gruvbox.nvim" },
priority = 1000,
opts = {
colorscheme = "gruvbox",
-- style = "day", -- not working
-- background = "light", -- not working either
},
}
or in lua/lazy.lua
I tried with vim.o.background = "light"
which is working, but disables the colorscheme of gruvbox
.
Error activating this plugins/gruvbox.lua
config:
Failed to load `plugins.gruvbox`
~/.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/fragments.lua:109: attempt to call method 'find' (a nil value)
# stacktrace:
- lua/config/lazy.lua:20
- init.lua:5
Now surround, which is my very question:
To make it not too long, what is in my file plugins/nvim-surround.lua
:
return {
-- new test on 2024-08-14
-- not working
"kylechui/nvim-surround",
version = "*",
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end,
}
Here no start error. LazyVim says, loaded and “already up to date”, but the shortcuts are not working.
I am manly using vim for LaTeX
and mixed Markdown-Files
, to produce books with pandoc
or XeLaTeX
Is there a guide or process to help with this specific migration?