neorg features
This commit is contained in:
parent
6b50e9b30c
commit
0dc94043fe
|
@ -140,10 +140,12 @@ return {
|
|||
{
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
cmd = "Neorg",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
'jubnzv/mdeval.nvim',
|
||||
'nvim-neorg/neorg-telescope',
|
||||
"laher/neorg-exec",
|
||||
{ "pysan3/neorg-templates", dependencies = { "L3MON4D3/LuaSnip" } },
|
||||
},
|
||||
config = function()
|
||||
|
@ -153,12 +155,12 @@ return {
|
|||
["external.templates"] = {},
|
||||
["core.defaults"] = {}, -- Loads default behaviour
|
||||
["core.neorgcmd"] = {},
|
||||
["core.completion"] = { config = { engine = "nvim-cmp" } },
|
||||
["core.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" } },
|
||||
["core.looking-glass"] = {},
|
||||
["core.integrations.telescope"] = {},
|
||||
["core.keybinds"] = {
|
||||
config = {
|
||||
neorg_leader = "<leader>n",
|
||||
neorg_leader = "<leader><leader>",
|
||||
hook = function(keybinds)
|
||||
keybinds.map("norg", "n", "gj", "<Cmd>Neorg journal today<CR>")
|
||||
keybinds.map("norg", "n", "jo", "<Cmd>Neorg journal toc open<CR>")
|
||||
|
@ -243,6 +245,7 @@ return {
|
|||
default_workspace = "work",
|
||||
},
|
||||
},
|
||||
["external.exec"] = {},
|
||||
},
|
||||
}
|
||||
end,
|
||||
|
@ -346,8 +349,8 @@ Filename: {{ filename }}
|
|||
start_in_insert = true,
|
||||
insert_mappings = false,
|
||||
persist_size = true,
|
||||
direction = "float",
|
||||
-- direction = "horizontal",
|
||||
-- direction = "float",
|
||||
direction = "horizontal",
|
||||
close_on_exit = true,
|
||||
shell = vim.o.shell,
|
||||
float_opts = {
|
||||
|
@ -365,7 +368,6 @@ Filename: {{ filename }}
|
|||
local opts = { height = math.floor(vim.fn.winheight(0) * 0.85) }
|
||||
|
||||
local Terminal = require("toggleterm.terminal").Terminal
|
||||
local gitui = Terminal:new({ cmd = "gitui", hidden = true, float_opts = opts })
|
||||
local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, float_opts = opts })
|
||||
local lf = Terminal:new({
|
||||
cmd = "lf",
|
||||
|
|
|
@ -142,6 +142,7 @@ map("n", "<leader><leader>e", ":Ex<CR>", opts)
|
|||
map("n", "<leader>ni", ":Neorg index<CR>", opts)
|
||||
map("n", "<leader>?", ":Telescope oldfiles theme=get_ivy<CR>", opts)
|
||||
map("n", "<leader>,", ":Telescope buffers theme=get_ivy<CR>", opts)
|
||||
vim.keymap.set('n', '<localleader>x', ':Neorg exec cursor<CR>', { silent = true })
|
||||
|
||||
vim.cmd([[hi tkLink ctermfg=Cyan cterm=bold,underline guifg=blue gui=bold,underline]])
|
||||
vim.cmd([[hi tkBrackets ctermfg=gray guifg=gray]])
|
||||
|
@ -182,14 +183,9 @@ vim.keymap.set(
|
|||
{ desc = "Toggle lsp_lines" }
|
||||
)
|
||||
|
||||
|
||||
-- [[ Terminal ]]
|
||||
|
||||
map("n", "<leader>.", ":ToggleTerm direction=float<CR>", opts)
|
||||
|
||||
-- [[ nvim-tree ]]
|
||||
|
||||
map("n", "<leader><leader>", ":NvimTreeToggle<CR>", opts)
|
||||
map("n", "<leader>oe", ":NvimTreeToggle<CR>", opts)
|
||||
vim.api.nvim_create_autocmd("QuitPre", {
|
||||
callback = function()
|
||||
local invalid_win = {}
|
||||
|
|
Loading…
Reference in New Issue