added or changed some plugins

This commit is contained in:
Joost Agterhoek 2024-10-09 17:03:09 +02:00
parent c59fb8a2f1
commit 87b169a5e1
11 changed files with 93 additions and 9 deletions

View File

@ -5,8 +5,8 @@ return {
},
config = function()
require('barbar').setup()
vim.keymap.set('n', '<Tab>', ':BufferNext<CR>', { silent = true })
vim.keymap.set('n', '<S-Tab>', ':BufferPrevious<CR>', { silent = true })
vim.keymap.set('n', '<leader>x', ':BufferClose<CR>', { silent = true })
vim.keymap.set('n', '<Tab>', ':BufferNext<CR>', { silent = true, desc = 'To buffer on the right' })
vim.keymap.set('n', '<S-Tab>', ':BufferPrevious<CR>', { silent = true, desc = 'To buffer on the left' })
vim.keymap.set('n', '<leader>x', ':BufferClose<CR>', { silent = true, desc = 'Close buffer' })
end,
}

View File

@ -1,5 +1,7 @@
return {
'MeanderingProgrammer/render-markdown.nvim',
opts = {},
dependencies = { 'nvim-treesitter/nvim-treesitter' },
'tadmccorkle/markdown.nvim',
ft = 'markdown', -- or 'event = "VeryLazy"'
opts = {
-- configuration here or empty for defaults
},
}

View File

@ -2,6 +2,11 @@ return {
'echasnovski/mini.align',
version = false,
config = function()
require('mini.align').setup()
require('mini.align').setup {
mappings = {
start = 'ma',
start_with_preview = 'mA',
},
}
end,
}

View File

@ -0,0 +1,9 @@
return {
'AckslD/nvim-neoclip.lua',
dependencies = {
'nvim-telescope/telescope.nvim',
},
config = function()
require('neoclip').setup()
end,
}

View File

@ -23,5 +23,13 @@ return {
time_format = '%H:%M',
},
disable_frontmatter = true,
ui = {
enable = true,
-- checkboxes = {
-- [' '] = { char = '👀', hl_group = 'ObsidianTodo' },
-- ['/'] = { char = '🚧', hl_group = 'ObsidianDoing' },
-- ['x'] = { char = '✅', hl_group = 'ObsidianDone' },
-- },
},
},
}

View File

@ -0,0 +1,14 @@
return {
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
-- dependencies = { { 'echasnovski/mini.icons', opts = {} } },
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if prefer nvim-web-devicons
config = function()
require('oil').setup {
vim.keymap.set('n', '<leader>o', ':Oil<CR>'),
}
end,
}

View File

@ -12,7 +12,7 @@ return {
opts = {
absolute_path = false, -- use absolute or relative path to the working directory
apikey = '', -- Api key, required for online saving
local_path = '/assets/imgs/', -- The path to put local files in, ex ~/Projects/<name>/assets/images/<imgname>.png
local_path = '/attachments/', -- The path to put local files in, ex ~/Projects/<name>/assets/images/<imgname>.png
save = 'local', -- Either 'local' or 'online' or 'local_file'
filename = function()
return vim.fn.expand '%:t:r' .. '_' .. os.date '%Y-%m-%d_%H-%M-%S'

View File

@ -0,0 +1,30 @@
return {
'MeanderingProgrammer/render-markdown.nvim',
opts = {},
dependencies = { 'nvim-treesitter/nvim-treesitter' },
config = function()
require('render-markdown').setup {
enabled = true,
bullet = {
right_pad = 1,
},
checkbox = {
enabled = true,
position = 'inline',
unchecked = {
icon = '👀',
highlight = 'RenderMarkdownUnchecked',
},
checked = {
icon = '',
highlight = 'RenderMarkdownChecked',
},
custom = {
doing = { raw = '[/]', rendered = '🔜', highlight = 'RenderMarkdownTodo' },
cancelled = { raw = '[-]', rendered = '', highlight = 'RenderMarkdownBullet' },
},
},
}
vim.keymap.set('n', '<leader>rm', ':RenderMarkdown toggle<CR>', { silent = true })
end,
}

View File

@ -1,7 +1,16 @@
return {
'zakissimo/smoji.nvim',
-- config = function()
-- require 'smoji'
-- vim.keymap.set('n', '<Leader>em', '<CMD>Smoji<CR>')
-- end,
cmd = 'Smoji',
keys = {
{ '<leader><leader>e', '<cmd>Smoji<cr>', desc = 'Git [e]moji' },
-- { '<C-e>', '<cmd>Smoji<cr>', desc = 'Git [e]moji', mode = 'i' },
-- { '<C-e>', '<cmd>Smoji<cr>', desc = 'Git [e]moji', mode = 't' },
},
config = function()
require 'smoji'
vim.keymap.set('n', '<Leader>em', '<CMD>Smoji<CR>')
end,
}

View File

@ -0,0 +1 @@
return { 'preservim/vim-markdown' }

View File

@ -0,0 +1,6 @@
return {
'andrewferrier/wrapping.nvim',
config = function()
require('wrapping').setup()
end,
}