diff --git a/.config/nvim/lua/fileformats.lua b/.config/nvim/lua/fileformats.lua index 54d8470..867d793 100644 --- a/.config/nvim/lua/fileformats.lua +++ b/.config/nvim/lua/fileformats.lua @@ -13,6 +13,20 @@ packer.use { }, ensure_installed = {'org'}, } + + vim.api.nvim_create_augroup('config_fileformats', { clear = true }) + vim.api.nvim_create_autocmd( + { 'BufEnter' }, + { + group = 'config_fileformats', + pattern = { '*.org' }, + callback = function() + -- allow to hide stuff, like links + vim.opt_local.conceallevel = 2 + vim.opt_local.concealcursor = 'nc' + end + } + ) end } diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index 2bd261e..221646c 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -13,8 +13,6 @@ vim.o.shiftwidth = 4 -- 1 indentation = 4 spaces vim.o.completeopt = 'menu,menuone,noselect' -- completion popup vim.o.autochdir = true -- change workir to current file dir -vim.opt.conceallevel = 2 -- hidden stuff, needed for org -vim.opt.concealcursor = 'nc' vim.o.updatetime = 500 -- fire CursorHold autocommand event -- theme