some neorg fixes

This commit is contained in:
Oliver Hartmann 2023-09-28 14:27:00 +02:00
parent 02e55b113b
commit 713a7072b1
3 changed files with 13 additions and 6 deletions

View File

@ -78,11 +78,13 @@ api.nvim_create_autocmd('BufEnter', { command = [[set formatoptions-=cro]] })
-- Keep window ratio when resize
api.nvim_create_autocmd('VimResized', { command = [[wincmd =]] })
vim.api.nvim_create_autocmd({'UIEnter'}, {
callback = function(event)
local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
if client ~= nil and client.name == "Firenvim" then
vim.o.laststatus = 0
end
vim.api.nvim_create_autocmd({ 'UIEnter' }, {
callback = function(event)
local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
if client ~= nil and client.name == 'Firenvim' then
vim.o.laststatus = 0
end
end
})
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWinEnter' }, { pattern = { '*.norg' }, command = 'set conceallevel=3' })

View File

@ -88,6 +88,7 @@ return {
end,
},
sources = {
{ name = 'neorg', priority = 8 },
{ name = 'luasnip', priority = 8 },
{ name = 'nvim_lsp', priority = 7 },
{ name = 'nvim_lsp_signature_help', priority = 7 },

View File

@ -11,6 +11,10 @@ return {
load = {
['core.defaults'] = {}, -- Loads default behaviour
['core.concealer'] = {}, -- Adds pretty icons to your documents
['core.completion'] = {
config = {
engine = 'nvim-cmp'}
}, -- Adds pretty icons to your documents
['core.dirman'] = { -- Manages Neorg workspaces
config = {
workspaces = {