https://github.com/hanoglu/hvim
A SpaceVim inspired Neovim configuration with note taking functionality via Neorg
https://github.com/hanoglu/hvim
Last synced: about 1 month ago
JSON representation
A SpaceVim inspired Neovim configuration with note taking functionality via Neorg
- Host: GitHub
- URL: https://github.com/hanoglu/hvim
- Owner: hanoglu
- Created: 2025-01-24T20:03:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-03T07:52:14.000Z (over 1 year ago)
- Last Synced: 2025-03-03T08:32:24.607Z (over 1 year ago)
- Language: Lua
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HVIM
## Installing
To install HVIM simply use;
```bash
mv ~/.config/nvim ~/.config/nvim_backup
git clone https://github.com/hanoglu/HVIM ~/.config/nvim
nvim
```
## Dependencies
```bash
# rocks.nvim installation
sudo dnf install lua5.1 luarocks
nvim -u NORC -c "source https://raw.githubusercontent.com/nvim-neorocks/rocks.nvim/master/installer.lua"
# Recommended fonts
sudo dnf install cascadia-mono-nf-fonts
```
## Neorg Error Fix
### "insertenter" Error
To fix "insertenter" error related with Neorg;
```bash
nvim $(find -name "module.lua" 2> /dev/null | grep auto | head -n1) # Possibly: ~/.local/share/nvim/lazy/neorg/lua/neorg/modules/core/autocommands/module.lua
```
You will see this in line *74*;
```lua
if dont_isolate and vim.fn.exists("#Neorg#" .. autocmd .. "#*") == 0 then
vim.api.nvim_create_autocmd(autocmd, {
callback = function(ev)
_neorg_module_autocommand_triggered("core.autocommands.events." .. autocmd, false, ev)
end,
})
elseif vim.fn.exists("#Neorg#" .. autocmd .. "#*.norg") == 0 then
vim.api.nvim_create_autocmd(autocmd, {
pattern = "*.norg",
callback = function(ev)
_neorg_module_autocommand_triggered("core.autocommands.events." .. autocmd, true, ev)
end,
})
end
vim.cmd("augroup END")
module.events.subscribed["core.autocommands"][autocmd] = true
```
**Delete** lines between *81..86* as stated below;
```lua
vim.api.nvim_create_autocmd(autocmd, {
pattern = "*.norg",
callback = function(ev)
_neorg_module_autocommand_triggered("core.autocommands.events." .. autocmd, true, ev)
end,
})
```
### range Error
```bash
nvim ~/.local/share/nvim/lazy/neorg/lua/neorg/modules/core/esupports/metagen/module.lua
```
and delete 245th and 246th lines
```lua
for id, node in pairs(found) do
local name = query.captures[id]
if name == "meta" then
metadata_node = node
range[1], _, range[2], _ = node:range() <- DELETE
range[2] = range[2] + 2 <- DELETE
end
end
```
### norg_meta Treesitter Error
If you get an error about missing norg_meta package, you should manually install norg_meta Treesitter package with;
```vimscript
:TSInstall norg_meta
```
## Gallery


