Did I break something or is this just an error (Conceal issue I think) #135
-
I have been trying to get Neorg to work for the past 48hrs off and on to no avail. I think I have Treesitter working, it highlights things, but links aren't concealing properly among many other issues. I have tried the unstable branch and got some actual errors, and it didn't fix the problem, so I went back. Nvim version: 0.5.1 Applicable Configs return require ('packer').startup(function(use)
--local vim = {}
--[[
use { '' }
]]
-- Have packer manage itself
use { 'wbthomason/packer.nvim', opt=true } -- Have Packer manage itself
-- LSP
use { 'neovim/nvim-lspconfig' } -- LSP Baby
use { 'glepnir/lspsaga.nvim' } -- Allows you to customize nvim-lspconfig
use { 'kabouzeid/nvim-lspinstall' } -- Lsp helper
-- Workflow
use { 'kyazdani42/nvim-tree.lua' } -- A file tree viewer use { 'nvim-lua/popup.nvim' } -- For nvim-telescope
use { 'nacro90/numb.nvim' } -- Allows you to peak/preview lines with
use { 'tweekmonster/startuptime.vim' } -- Allows me to see how long it takes to load plugins
use { 'romgrk/barbar.nvim' } -- Adds tabs
use { 'glepnir/galaxyline.nvim', -- My status line, though it appears to be abandonded
branch = 'main',
requires = {'kyazdani42/nvim-web-devicons', opt = true},
}
use { 'gelguy/wilder.nvim',
run=':UpdateRemotePlugins',
requires='romgrk/fzy-lua-native'
}
use { 'michaelb/sniprun',
run='bash ./install.sh'
}
-- Quality of Life
use { 'windwp/nvim-autopairs',
requires = {'hrsh7th/nvim-compe'}
} -- A "super powerful autopairs for Nvim"
use { 'cappyzawa/trim.nvim' }
use {
'lewis6991/spellsitter.nvim',
config = function()
require('spellsitter').setup()
end
}
-- Note Taking
use { "vimwiki/vimwiki" }
use { "davidgranstrom/nvim-markdown-preview" }
use { "nvim-neorg/neorg",
requires = "nvim-lua/plenary.nvim",
--after = "nvim-treesitter",
--branch = 'unstable',
}
-- UI
use { 'karb94/neoscroll.nvim' } -- Smooth scrolling
use { 'navarasu/onedark.nvim' } -- A random onedark theme, might change
use { 'glepnir/dashboard-nvim' } -- Dashboard
use { 'lewis6991/gitsigns.nvim', -- Gitstuff, need to configure
requires = {'nvim-lua/plenary.nvim'}
}
use { 'nvim-treesitter/nvim-treesitter', run=':TSUpdate' } -- Better syntax highlighting and more
use { 'lukas-reineke/indent-blankline.nvim' } -- Indent line thingy
use { 'kyazdani42/nvim-web-devicons' } -- Add icons to things
use { 'norcalli/nvim-colorizer.lua' } -- Displays Color values
-- Telescope
use { 'nvim-telescope/telescope.nvim',
requires = {'nvim-lua/plenary.nvim'},
config = function() require("telescope").load_extension("mapper") end
}
use { "lazytanuki/nvim-mapper",
config = function() require("nvim-mapper").setup{} end,
before = "telescope.nvim"
}
use {
"folke/trouble.nvim", -- Error collection
requires = "kyazdani42/nvim-web-devicons",
}
use {'nvim-telescope/telescope-fzf-native.nvim',-- A 'c' port of fzf
run ='make',
}
-- Completion
--use { 'hrsh7th/nvim-compe' } -- Completion
--use { 'L3MON4D3/LuaSnip', -- Snippets using lua
-- requires = {'hrsh7th/nvim-compe'}
--}
--use { 'rafamadriz/friendly-snippets'} -- Snippet provider
--use {'tzachar/compe-tabnine',
-- run='chmod +x install.sh; ./install.sh',
-- requires = 'hrsh7th/nvim-compe'
--}
use {
'f3fora/cmp-nuspell',
rocks={'lua-nuspell'}
}
use { 'hrsh7th/nvim-cmp',
requires = {
-- Other plugins used
'L3MON4D3/LuaSnip', -- Snippets using lua
'onsails/lspkind-nvim', -- Add icons
'rafamadriz/friendly-snippets', -- Snippet provider
-- Sources
'f3fora/cmp-nuspell', -- Speel completion sources :p
'f3fora/cmp-spell', -- Speel completion sources :p
'hrsh7th/cmp-buffer', -- Buffer completion source
'hrsh7th/cmp-calc', -- Math completion source
'hrsh7th/cmp-emoji', -- Emoji completion source
'hrsh7th/cmp-nvim-lsp', -- LSP completion source
'hrsh7th/cmp-path', -- Path completion source
'octaltree/cmp-look', -- `Look' completion source
'ray-x/cmp-treesitter', -- Treesitter completion source
'saadparwaiz1/cmp_luasnip', -- Snippet completion source
'hrsh7th/cmp-nvim-lua', -- Completes Lua runtime API
'kdheepak/cmp-latex-symbols', -- Latex Symbols
}
} -- Completion
end) Neorg: require('neorg').setup {
-- Tell Neorg what modules to load
load = {
["core.defaults"] = {}, -- Load all the default modules
["core.norg.concealer"] = {}, -- Allows for use of icons
["core.norg.dirman"] = { -- Manage your directories with Neorg
config = {
workspaces = {
my_workspace = "~/Dropbox/Neorg"
},
autodetect = true,
autochdir = true,
}
},
["core.norg.completion"] = {
config = {
engine = "nvim-cmp"
}
}
},
} Treesitter: local parser_configs = require('nvim-treesitter.parsers').get_parser_configs()
parser_configs.norg = {
install_info = {
url = "https://github.com/nvim-neorg/tree-sitter-norg",
files = { "src/parser.c", "src/scanner.cc" },
branch = "main"
},
}
require'nvim-treesitter.configs'.setup {
ensure_installed = { "norg" }, -- one of "all", "maintained" (parsers with maintainers), or a list of languages
--ignore_install = { "" }, -- List of parsers to ignore installing
highlight = {
enable = true,
custom_captures = {
-- Highlight the @foo.bar capture group with the "Identifier" highlight group.
["foo.bar"] = "Identifier",
},
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
indent = {
enable = true
}
} Apologies if I made a stupid mistake, but I really want you use your plugin but am completely stuck :( Edit: Also, I have tried reinstalling as well as read through the wiki and readme. One problem I had was packer tossing an error when I used |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey dude! Sorry for not responding earlier, you happened to post this just after I fell asleep. From the screenshots things seem to be alright, although i am seeing a few things:
If you're having any other specific issues (or even worse, errors) then feel free to post them here too. We're in a transitioning period rn and are getting ready to merge unstable into main. A lot of issues should be fixed by then fingers crossed :) |
Beta Was this translation helpful? Give feedback.
Hey dude! Sorry for not responding earlier, you happened to post this just after I fell asleep. From the screenshots things seem to be alright, although i am seeing a few things:
conceallevel
is greater than one. You probably want to have it set to two (vim.opt.conceallevel = 2
)If you're having any other specific issues (or even worse, errors) then feel free to post them here too. We're i…