mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
feat: add my own plugins
- oil.nvim - togglecheckbox
This commit is contained in:
parent
7130cd4d06
commit
8bc66e3d07
3 changed files with 23 additions and 0 deletions
|
|
@ -1,3 +1,11 @@
|
|||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
-- Oil Nvim
|
||||
map("n", "<leader>op", "<CMD>Oil<CR>", { desc = "Open parent directory" })
|
||||
|
||||
-- Markdown related
|
||||
map("n", "<leader>ct", ":lua require('toggle-checkbox').toggle()<CR>", { desc = "Toggle Checkbox" })
|
||||
|
|
|
|||
9
lua/plugins/oil.lua
Normal file
9
lua/plugins/oil.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
-- add oil
|
||||
{
|
||||
"stevearc/oil.nvim",
|
||||
opts = {},
|
||||
-- Optional dependencies
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
},
|
||||
}
|
||||
6
lua/plugins/toggle-checkbox.lua
Normal file
6
lua/plugins/toggle-checkbox.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
-- add plugin
|
||||
{
|
||||
"opdavies/toggle-checkbox.nvim",
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue