feat: add my own plugins

- oil.nvim
- togglecheckbox
pull/98/head
fm39hz-workstation 2024-05-13 10:18:46 +07:00
parent 7130cd4d06
commit 8bc66e3d07
3 changed files with 23 additions and 0 deletions

View File

@ -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" })

View File

@ -0,0 +1,9 @@
return {
-- add oil
{
"stevearc/oil.nvim",
opts = {},
-- Optional dependencies
dependencies = { "nvim-tree/nvim-web-devicons" },
},
}

View File

@ -0,0 +1,6 @@
return {
-- add plugin
{
"opdavies/toggle-checkbox.nvim",
},
}