This commit is contained in:
Javier Pacheco 2023-09-01 06:28:30 -05:00
parent 73dc6cbe73
commit 2c617c8c49
2 changed files with 26 additions and 2 deletions

View File

@ -148,15 +148,30 @@ return {
dependencies = {
"nvim-lua/plenary.nvim",
'jubnzv/mdeval.nvim',
'nvim-neorg/neorg-telescope',
{ "pysan3/neorg-templates", dependencies = { "L3MON4D3/LuaSnip" } },
},
config = function()
require("telescope").load_extension("neorg")
require("neorg").setup {
load = {
["external.templates"] = {},
["core.defaults"] = {}, -- Loads default behaviour
["core.neorgcmd"] = {},
["core.integrations.treesitter"] = {},
["core.completion"] = { config = { engine = "nvim-cmp" } },
["core.looking-glass"] = {},
["core.integrations.telescope"] = {},
["core.keybinds"] = {
config = {
neorg_leader = "<leader>n",
hook = function(keybinds)
keybinds.map("norg", "n", "gj", "<Cmd>Neorg journal today<CR>")
keybinds.remap_event("norg", "i", "<C-f>", "core.integrations.telescope.insert_link")
keybinds.remap_event("norg", "n", "ge", "core.looking-glass.magnify-code-block")
keybinds.remap_event("norg", "n", "<C-s>", "core.integrations.telescope.find_linkable")
end,
},
},
["core.concealer"] = {
config = {
folds = false,
@ -194,6 +209,10 @@ return {
},
},
}, -- Adds pretty icons to your documents
["core.highlights"] = {
config = {
} -- highlights here
},
["core.tempus"] = {},
["core.ui.calendar"] = {},
["core.export.markdown"] = {},

View File

@ -50,19 +50,24 @@ vim.opt.clipboard = "unnamedplus"
vim.opt.autochdir = true
vim.opt.showtabline = 1
vim.opt.conceallevel = 2
vim.opt.syntax = "on"
-- vim.opt.concealcursor = 'nc'
-- vim.cmd(':hi CursorLineNr gui=None ctermfg=11 guifg=foreground')
vim.opt.cursorline = true
-- Do not load tohtml.vim
vim.g.loaded_2html_plugin = 1
vim.g.indent_blankline_filetype_exclude = { 'help', 'norg' }
vim.cmd([[let g:neorg_syntax_code_list = {
\ 'python': ['python'],
\ 'bash': ['sh', 'bash'],
\ }]])
-- Tabs keys
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.g.rst_syntax_code_list = { "python", "lua" }
-- Do not load zipPlugin.vim, gzip.vim and tarPlugin.vim (all these plugins are
-- related to checking files inside compressed files)