neorg
neorg copied to clipboard
segfault when previewing markdown files with telescope
Prerequisites
- [X] I have read contribution guidelines
- [X] I am using the latest version of the plugin
- [X] I am using either 0.6 stable or the latest compiled neovim version
Neovim Version
NVIM v0.8.0-dev+nightly-1774-g815b65d77
Neorg setup
require("neorg").setup({
load = {
["core.defaults"] = {},
},
})
Actual behavior
segfault
Expected behavior
no segfault
Steps to reproduce
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
local package_root = "/tmp/nvim/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
local function load_plugins()
require("packer").startup({
{
"wbthomason/packer.nvim",
{
"nvim-telescope/telescope.nvim",
requires = {
"nvim-lua/plenary.nvim",
{ "nvim-telescope/telescope-fzf-native.nvim", run = "make" },
},
},
"nvim-treesitter/nvim-treesitter",
{
"nvim-neorg/neorg",
config = function()
require("neorg").setup({
load = {
["core.defaults"] = {},
},
})
end,
requires = "nvim-lua/plenary.nvim",
},
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config = {
package_root = package_root,
compile_path = install_path .. "/plugin/packer_compiled.lua",
display = { non_interactive = true },
},
})
end
_G.load_config = function()
local actions_layout = require("telescope.actions.layout")
local themes = require("telescope.themes")
require("telescope").setup(themes.get_ivy({
defaults = {
mappings = {
i = {
["<c-l>"] = actions_layout.toggle_preview,
},
},
},
}))
require("telescope").load_extension("fzf")
require("telescope").setup(themes.get_ivy({
defaults = {
layout_config = {
width = 0.99,
height = 0.5,
-- anchor = "S",
preview_cutoff = 20,
},
},
}))
require("nvim-treesitter.configs").setup({
ensure_installed = {
"norg", --[[ other parsers you would wish to have ]]
"markdown",
},
highlight = { -- Be sure to enable highlights if you haven't!
enable = true,
},
})
require("telescope").load_extension("fzf")
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
print("Installing Telescope and dependencies.")
vim.fn.system({
"git",
"clone",
"--depth=1",
"https://github.com/wbthomason/packer.nvim",
install_path,
})
end
load_plugins()
require("packer").sync()
vim.cmd(
[[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
)
nvim -nu minimal_init.lua
:NeorgStart silent=true
:Telescope find_files
search a markdown file
Potentially conflicting plugins
No response
Other information
looks like it doesn't happen for everyone perhaps macos only?
https://github.com/nvim-telescope/telescope.nvim/issues/1916
Help
Yes
Implementation help
No response