Move custom modules

This commit is contained in:
40DEEA 2025-10-30 15:20:40 -07:00
parent dde8a5ed26
commit 383bf939b9
4 changed files with 2 additions and 4 deletions

View file

@ -0,0 +1,20 @@
return {
'ojroques/nvim-osc52',
event = 'VeryLazy',
opts = { max_length = 0, silent = true },
config = function(_, opts)
require('osc52').setup(opts)
-- Send *any* yank to the local clipboard automatically
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
if vim.v.event.operator == 'y' then
require('osc52').copy_register(vim.v.event.regname == '' and '"' or vim.v.event.regname)
end
end,
})
-- Optional: explicit mappings
vim.keymap.set({ 'n', 'x' }, '<leader>y', require('osc52').copy_visual, { desc = 'Yank→local clipboard' })
end,
}

View file

@ -0,0 +1,21 @@
-- Orgmode for Lua
return {
'nvim-orgmode/orgmode',
event = 'VeryLazy',
ft = { 'org' },
config = function()
-- Setup orgmode
require('orgmode').setup({
org_agenda_files = '~/orgfiles/**/*',
org_default_notes_file = '~/orgfiles/refile.org',
})
-- NOTE: If you are using nvim-treesitter with ~ensure_installed = "all"~ option
-- add ~org~ to ignore_install
-- require('nvim-treesitter.configs').setup({
-- ensure_installed = 'all',
-- ignore_install = { 'org' },
-- })
end,
}