diff --git a/lua/my_autocommands.lua b/lua/my_autocommands.lua index a28d2b7..98a0d9e 100644 --- a/lua/my_autocommands.lua +++ b/lua/my_autocommands.lua @@ -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' }) diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index 309ddff..105f1fd 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -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 }, diff --git a/lua/plugins/neorg.lua b/lua/plugins/neorg.lua index 48f2ca9..cda5837 100644 --- a/lua/plugins/neorg.lua +++ b/lua/plugins/neorg.lua @@ -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 = {