mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(nvim): Markdown Support
This commit is contained in:
parent
9076795c4f
commit
d2a2ea47de
7 changed files with 25 additions and 10 deletions
|
|
@ -4,5 +4,5 @@ return {
|
|||
"L3MON4D3/LuaSnip",
|
||||
dependencies = { "rafamadriz/friendly-snippets" },
|
||||
},
|
||||
{ "rafamadriz/friendly-snippets" }
|
||||
{ "rafamadriz/friendly-snippets" },
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,5 +18,9 @@ return {
|
|||
desc = "Buffer Local Keymaps (which-key)",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"github/copilot.vim",
|
||||
lazy = false,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,14 +40,7 @@ return {
|
|||
dashboard.button('c', ' 转到设置', ':Telescope find_files cwd=~/.config/nvim<CR>'),
|
||||
dashboard.button('SPC q', ' 退出', ':qa<CR>'),
|
||||
}
|
||||
local handle = io.popen('fortune')
|
||||
--- Handle the case where fortune is not installed
|
||||
local fortune = ""
|
||||
if handle then
|
||||
fortune = handle:read("*a")
|
||||
handle:close()
|
||||
end
|
||||
dashboard.section.footer.val = "今日 " .. os.date("%Y-%m-%d %A") .. " " .. fortune
|
||||
dashboard.section.footer.val = "今日 " .. os.date("%Y-%m-%d %A") .. " "
|
||||
|
||||
dashboard.config.opts.noautocmd = true
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ return {
|
|||
sources = cmp.config.sources({
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "copilot" },
|
||||
}, {
|
||||
{ name = "buffer" },
|
||||
{ name = "path" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue