up
This commit is contained in:
@@ -24,7 +24,7 @@ wk.add {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
mode = { 'n', 'v' },
|
mode = { 'n', 'v', 'i' },
|
||||||
{ '<C-e>', nth.smart_open, desc = 'File explorer', silent = true, noremap = true, hidden = true },
|
{ '<C-e>', nth.smart_open, desc = 'File explorer', silent = true, noremap = true, hidden = true },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,32 +60,6 @@ return {
|
|||||||
require('mini.starter').gen_hook.adding_bullet ' ',
|
require('mini.starter').gen_hook.adding_bullet ' ',
|
||||||
require('mini.starter').gen_hook.aligning('center', 'center'),
|
require('mini.starter').gen_hook.aligning('center', 'center'),
|
||||||
},
|
},
|
||||||
config = function()
|
|
||||||
-- close Lazy and re-open when starter is ready
|
|
||||||
if vim.o.filetype == 'lazy' then
|
|
||||||
vim.cmd.close()
|
|
||||||
vim.api.nvim_create_autocmd('User', {
|
|
||||||
pattern = 'MiniStarterOpened',
|
|
||||||
callback = function()
|
|
||||||
require('lazy').show()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('User', {
|
|
||||||
pattern = 'LazyVimStarted',
|
|
||||||
callback = function(ev)
|
|
||||||
local stats = require('lazy').stats()
|
|
||||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
|
||||||
local pad_footer = string.rep(' ', 8)
|
|
||||||
starter.config.footer = pad_footer .. '⚡ Neovim loaded ' .. stats.count .. ' plugins in ' .. ms .. 'ms'
|
|
||||||
-- INFO: based on @echasnovski's recommendation (thanks a lot!!!)
|
|
||||||
if vim.bo[ev.buf].filetype == 'ministarter' then
|
|
||||||
pcall(starter.refresh)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Simple way to visualize and work with indent scope
|
-- Simple way to visualize and work with indent scope
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
return {
|
return {
|
||||||
'obsidian-nvim/obsidian.nvim',
|
'obsidian-nvim/obsidian.nvim',
|
||||||
version = '*', -- recommended, use latest release instead of latest commit
|
version = '*', -- recommended, use latest release instead of latest commit
|
||||||
lazy = true,
|
-- lazy = true,
|
||||||
ft = 'markdown',
|
-- ft = 'markdown',
|
||||||
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
|
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
|
||||||
-- event = {
|
-- event = {
|
||||||
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
||||||
|
|||||||
Reference in New Issue
Block a user