Compare commits
3 commits
2b3b891962
...
f5ed7c0343
| Author | SHA1 | Date | |
|---|---|---|---|
| f5ed7c0343 | |||
| 30590ea25e | |||
| 3f3d6a23d5 |
3 changed files with 52 additions and 10 deletions
37
home/dot_config/nvim/lua/custom/plugins/chezmoi.lua
Normal file
37
home/dot_config/nvim/lua/custom/plugins/chezmoi.lua
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
local pick_chezmoi = function()
|
||||
require("telescope").extensions.chezmoi.find_files()
|
||||
end
|
||||
|
||||
return {
|
||||
"xvzc/chezmoi.nvim",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
keys = {
|
||||
{
|
||||
"<leader>sz",
|
||||
pick_chezmoi,
|
||||
desc = "Chezmoi",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
edit = {
|
||||
watch = false,
|
||||
force = false,
|
||||
},
|
||||
notification = {
|
||||
on_open = true,
|
||||
on_apply = true,
|
||||
on_watch = false,
|
||||
},
|
||||
telescope = {
|
||||
select = { "<CR>" },
|
||||
},
|
||||
},
|
||||
init = function()
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = { os.getenv("HOME") .. "/.local/share/chezmoi/*" },
|
||||
callback = function()
|
||||
vim.schedule(require("chezmoi.commands.__edit").watch)
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
5
home/dot_config/nvim/lua/custom/plugins/d2.lua
Normal file
5
home/dot_config/nvim/lua/custom/plugins/d2.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"ravsii/tree-sitter-d2",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
build = "make nvim-install",
|
||||
}
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
return {
|
||||
"FabijanZulj/blame.nvim",
|
||||
opts = {
|
||||
blame_options = { "-w" },
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>gb",
|
||||
"<cmd>BlameToggle<cr>",
|
||||
desc = "Toggle git blame",
|
||||
"FabijanZulj/blame.nvim",
|
||||
opts = {
|
||||
blame_options = { "-w" },
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>gb",
|
||||
"<cmd>BlameToggle<cr>",
|
||||
desc = "Toggle git blame",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue