vim.opt.clipboard="unnamed,unnamedplus" vim.g.mapleader = ' ' local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- latest stable release lazypath, }) end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ "nyoom-engineering/oxocarbon.nvim", {"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"}, { 'nvim-orgmode/orgmode', dependencies = { { 'nvim-treesitter/nvim-treesitter', lazy = true }, }, event = 'VeryLazy', config = function() -- Load treesitter grammar for org require('orgmode').setup_ts_grammar() -- Setup treesitter require('nvim-treesitter.configs').setup({ highlight = { enable = false, additional_vim_regex_highlighting = { 'org' }, }, ensure_installed = { 'org' }, }) -- Setup orgmode -- NOTE (to self) THAT I ONLY USE THIS FOR CAPTURING CODE -- AND CHANGING Todo STATES in todo.org FOR CODING -- for simplicity's sake require('orgmode').setup({ --org_agenda_files = '~/orgfiles/**/*', org_agenda_files = '~/notebook/ag/*', org_default_notes_file = '~/notebook/ag/todo.org', org_log_done = 'time', org_log_into_drawer = 'LOGBOOK', --org_todo_keywords = {'TODO(t)', 'NEXT(n)', '|', 'DONE(d)'}, org_todo_keywords = {"TODO(t)", "PROJ(p)", "LOOP(r)", "STRT(s)", "WAIT(w)", "HOLD(h)", "IDEA(i)", "|", "DONE(d)", "KILL(k)"}, org_capture_templates = { t = { description = 'todo with link', template = '* TODO %?\n%i\n%a', target = '~/notebook/ag/todo.org', headline = 'todo', }, T = { description = 'todo no link', template = '* TODO %?\n%i\n%a', target = '~/notebook/ag/todo.org', headline = 'todo', }, }, mappings = { -- make as close to doom --disable_all = true, global = { org_agenda = {'oa'}, org_capture = 'x', }, agenda = { org_agenda_todo = 'mt', org_agenda_schedule = 'mds', org_agenda_deadline = 'mdd', org_agenda_ = 'mds', }, org = { org_todo = 'mt', org_priority = 'mpp', --org_move_subtree_up = '', --org_move_subtree_down = '', org_schedule = 'mds', org_deadline = 'mdd', org_time_stamp = 'mdt', org_time_stamp_inactive = 'mdT', }, }, }) end, }, { 'nvim-telescope/telescope.nvim', tag = '0.1.5', -- or , branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } }, }) --vim.opt.background = "dark" -- set this to dark or light --vim.cmd("colorscheme oxocarbon") --keybinds vim.keymap.set("n", ".", vim.cmd.Ex) vim.keymap.set("n", "ff", vim.cmd.Ex) local builtin = require('telescope.builtin') vim.keymap.set('n', '', builtin.find_files, {}) --vim.keymap.set('n', 'fg', builtin.live_grep, {}) --vim.keymap.set('n', 'fb', builtin.buffers, {}) --vim.keymap.set('n', 'fh', builtin.help_tags, {})