-
-
Couldn't load subscription status.
- Fork 168
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
With a clean install of LazyVim distribution when pressing <CR> from a heading it creates a new heading instead of moving the cursor to the body of the heading:
* Test <-- press enter in insert mode
The result is:
* Test
* <-- cursor here
Steps to reproduce
mkdir ~/.config/newstarter && cd ~/.config/newstarter
git clone https://github.com/LazyVim/starter .
rm -rf .git*
NVIM_APPNAME=newstarter nvim # and wait for installation of plugins to finish
# Quit Neovim and start again with
NVIM_APPNAME=newstarter nvim lua/plugins/orgmode.luaPaste the next config in the open buffer (lua/plugins/orgmode.lua).
return {
{
"nvim-orgmode/orgmode",
branch = "nightly",
dependencies = {
{ "nvim-treesitter/nvim-treesitter", lazy = true },
},
event = "VeryLazy",
config = function()
-- Load treesitter grammar for org
require("orgmode").setup_ts_grammar()
-- Setup treesitter
require("nvim-treesitter.configs").setup({
highlight = {
enable = true,
additional_vim_regex_highlighting = { "org" },
},
ensure_installed = { "org" },
})
-- Setup orgmode
require("orgmode").setup({
org_agenda_files = "~/orgfiles/**/*",
org_default_notes_file = "~/orgfiles/refile.org",
})
end,
},
}Quit and restart Neovim again opening the desired file
NVIM_APPNAME=newstarter nvim test.orgIn insert mode enter * Test<CR>
Expected behavior
* Test <-- press enter in insert mode
The result is:
* Test
<-- cursor here
Emacs functionality
No response
Minimal init.lua
Doesn't apply
Screenshots and recordings
No response
OS / Distro
Debian
Neovim version/commit
v0.9.5
Additional context
I didn't know where to open the issue either here or at LazyVim. As I'm more used to write you I started here.
I'll be grateful if you could at least guide me on how to debug the issue
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working