diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-06-10 20:27:41 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-06-10 20:27:41 +0800 |
commit | 9a176ec94190284e07e303c40d2908bfcff7bf0c (patch) | |
tree | fcef9cac2737c48c3c69a4c0fe41b4c56d009c11 /vim/lazy/lazy.lua | |
parent | e5dcd8e8bb0bcecc125515b5cbef7b366e04b1b8 (diff) |
Update
Diffstat (limited to 'vim/lazy/lazy.lua')
-rw-r--r-- | vim/lazy/lazy.lua | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/vim/lazy/lazy.lua b/vim/lazy/lazy.lua index 3142c9a..4aef220 100644 --- a/vim/lazy/lazy.lua +++ b/vim/lazy/lazy.lua | |||
@@ -59,7 +59,7 @@ require('lazy').setup({ | |||
59 | 'itchyny/lightline.vim', | 59 | 'itchyny/lightline.vim', |
60 | 'preservim/nerdtree', | 60 | 'preservim/nerdtree', |
61 | 61 | ||
62 | -- Adds git related signs to the gutter, as well as utilities for managing changes | 62 | -- gitsigns.nvim: Adds git related signs to the gutter, as well as utilities for managing changes |
63 | { | 63 | { |
64 | 'lewis6991/gitsigns.nvim', | 64 | 'lewis6991/gitsigns.nvim', |
65 | opts = { | 65 | opts = { |
@@ -84,7 +84,7 @@ require('lazy').setup({ | |||
84 | }, | 84 | }, |
85 | }, | 85 | }, |
86 | 86 | ||
87 | -- colorscheme | 87 | -- onedark: colorscheme |
88 | { | 88 | { |
89 | -- onedark.nvim: Theme inspired by Atom | 89 | -- onedark.nvim: Theme inspired by Atom |
90 | 'navarasu/onedark.nvim', | 90 | 'navarasu/onedark.nvim', |
@@ -95,7 +95,7 @@ require('lazy').setup({ | |||
95 | end, | 95 | end, |
96 | }, | 96 | }, |
97 | 97 | ||
98 | -- hop.nvim for quick jump | 98 | -- hop.nvim: For quick jump |
99 | { | 99 | { |
100 | 'smoka7/hop.nvim', | 100 | 'smoka7/hop.nvim', |
101 | version = "*", | 101 | version = "*", |
@@ -104,7 +104,7 @@ require('lazy').setup({ | |||
104 | } | 104 | } |
105 | }, | 105 | }, |
106 | 106 | ||
107 | -- Useful plugin to show you pending keybinds. | 107 | -- which-key.nvim: Useful plugin to show you pending keybinds. |
108 | { | 108 | { |
109 | 'folke/which-key.nvim', | 109 | 'folke/which-key.nvim', |
110 | opts = { | 110 | opts = { |
@@ -117,7 +117,7 @@ require('lazy').setup({ | |||
117 | } | 117 | } |
118 | }, | 118 | }, |
119 | 119 | ||
120 | -- For obsidian | 120 | -- obsidian.nvim: For obsidian |
121 | { | 121 | { |
122 | "epwalsh/obsidian.nvim", | 122 | "epwalsh/obsidian.nvim", |
123 | version = "*", -- recommended, use latest release instead of latest commit | 123 | version = "*", -- recommended, use latest release instead of latest commit |
@@ -188,7 +188,7 @@ require('lazy').setup({ | |||
188 | }, | 188 | }, |
189 | }, | 189 | }, |
190 | 190 | ||
191 | -- install without yarn or npm | 191 | -- markdown-preview: Install without yarn or npm |
192 | { | 192 | { |
193 | "iamcco/markdown-preview.nvim", | 193 | "iamcco/markdown-preview.nvim", |
194 | cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, | 194 | cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, |
@@ -196,7 +196,7 @@ require('lazy').setup({ | |||
196 | build = function() vim.fn["mkdp#util#install"]() end, | 196 | build = function() vim.fn["mkdp#util#install"]() end, |
197 | }, | 197 | }, |
198 | 198 | ||
199 | -- For beancount | 199 | -- vim-beancount: For beancount |
200 | { | 200 | { |
201 | 'nathangrigg/vim-beancount', | 201 | 'nathangrigg/vim-beancount', |
202 | ft = { "beancount" }, | 202 | ft = { "beancount" }, |
@@ -309,6 +309,7 @@ require('lazy').setup({ | |||
309 | return vim.fn.executable 'make' == 1 | 309 | return vim.fn.executable 'make' == 1 |
310 | end, | 310 | end, |
311 | }, | 311 | }, |
312 | 'cljoly/telescope-repo.nvim', | ||
312 | }, | 313 | }, |
313 | }, | 314 | }, |
314 | 315 | ||
@@ -408,5 +409,16 @@ vim.keymap.set('n', "<leader>os", ':ObsidianSearch<CR>') | |||
408 | vim.keymap.set('n', "<leader>oq", ':ObsidianQuickSwitch<CR>') | 409 | vim.keymap.set('n', "<leader>oq", ':ObsidianQuickSwitch<CR>') |
409 | vim.keymap.set('v', "<leader>on", ':ObsidianLinkNew<CR>') | 410 | vim.keymap.set('v', "<leader>on", ':ObsidianLinkNew<CR>') |
410 | 411 | ||
412 | -- vim.cmd("let g:mkdp_browser = 'surf'") | ||
413 | vim.cmd("let g:mkdp_browser = 'firefox'") | ||
414 | vim.g.mkdp_preview_options = { | ||
415 | mkit = { breaks = true }, | ||
416 | toc= { | ||
417 | containerClass = "toc", | ||
418 | format = 'function format(x, htmlencode) { return `<span>${htmlencode(x)}</span>`; }', | ||
419 | callback = "console.log('foo')", | ||
420 | } | ||
421 | } | ||
422 | |||
411 | -- The line beneath this is called `modeline`. See `:help modeline` | 423 | -- The line beneath this is called `modeline`. See `:help modeline` |
412 | -- vim: ts=2 sts=2 sw=2 et | 424 | -- vim: ts=2 sts=2 sw=2 et |