From 14f88faa956d32f4964477c5c0057e96dcaadf95 Mon Sep 17 00:00:00 2001 From: jpducky <34105363+JPDucky@users.noreply.github.com~> Date: Wed, 11 Oct 2023 16:15:52 -0500 Subject: [PATCH] update --- Project Gutenberg.wiki | 1 + Tasks.wiki | 1 + index.wiki | 6 + init.lua | 97 +++- lua/after/plugins/99-keybinds.lua | 71 +-- lua/after/plugins/functions/autocmds.lua | 86 ++++ lua/after/plugins/functions/test.md | 0 lua/after/plugins/functions/txt.txt | 429 ++++++++++++++++++ .../keybind-files/10-vimwiki-binds.lua | 37 ++ .../keybind-files/11-taskwikibinds.lua | 60 +++ lua/after/plugins/t-mode-keybinds.lua | 6 + lua/plugins/behavior/editor-behavior.lua | 10 + lua/plugins/interface/editor-ui.lua | 8 +- .../lsp/langs/{utils.lua => lualang.lua} | 0 lua/plugins/lsp/lspconfig.lua | 10 +- lua/plugins/lsp/none-ls.lua | 28 ++ lua/plugins/themes/colorschemes.lua | 4 + lua/plugins/utils/neorg.lua | 1 + lua/plugins/utils/taskwiki.lua | 17 + lua/plugins/utils/telescope.lua | 4 +- lua/plugins/utils/terminal.lua | 3 + lua/plugins/utils/vimwiki.lua | 23 + roadmap.norg | 37 ++ taskwiki.wiki | 2 + vimwiki.wiki | 56 +++ wiki.md | 1 + wiki.wiki | 6 + 27 files changed, 957 insertions(+), 47 deletions(-) create mode 100644 Project Gutenberg.wiki create mode 100644 Tasks.wiki create mode 100644 index.wiki create mode 100644 lua/after/plugins/functions/autocmds.lua create mode 100644 lua/after/plugins/functions/test.md create mode 100644 lua/after/plugins/functions/txt.txt create mode 100644 lua/after/plugins/keybind-files/10-vimwiki-binds.lua create mode 100644 lua/after/plugins/keybind-files/11-taskwikibinds.lua create mode 100644 lua/after/plugins/t-mode-keybinds.lua rename lua/plugins/lsp/langs/{utils.lua => lualang.lua} (100%) create mode 100644 lua/plugins/lsp/none-ls.lua create mode 100644 lua/plugins/utils/taskwiki.lua create mode 100644 lua/plugins/utils/terminal.lua create mode 100644 lua/plugins/utils/vimwiki.lua create mode 100644 roadmap.norg create mode 100644 taskwiki.wiki create mode 100644 vimwiki.wiki create mode 100644 wiki.md create mode 100644 wiki.wiki diff --git a/Project Gutenberg.wiki b/Project Gutenberg.wiki new file mode 100644 index 0000000..6996a08 --- /dev/null +++ b/Project Gutenberg.wiki @@ -0,0 +1 @@ +das auto diff --git a/Tasks.wiki b/Tasks.wiki new file mode 100644 index 0000000..f728c81 --- /dev/null +++ b/Tasks.wiki @@ -0,0 +1 @@ +aaayyyyy lmao diff --git a/index.wiki b/index.wiki new file mode 100644 index 0000000..b615691 --- /dev/null +++ b/index.wiki @@ -0,0 +1,6 @@ +test +blah +foo bar +baz +hit em wit da razzle daz + diff --git a/init.lua b/init.lua index 03ae783..abc40b0 100644 --- a/init.lua +++ b/init.lua @@ -21,6 +21,19 @@ vim.opt.scrolloff = 14 vim.opt.wrap = false +-- vim.g.netrw_banner = 0 +-- vim.g.netrw_liststyle = 3 +-- vim.g.netrw_browse_split = 4 +-- vim.g.netrw_altv = 1 +-- vim.g.netrw_winsize = 25 +-- +-- vim.cmd [[ +-- augroup ProjectDrawer +-- autocmd! +-- autocmd VimEnter * :Vexplore +-- augroup END +-- ]] + -- Plugins: -- NOTE: Here is where you install your plugins. @@ -142,6 +155,13 @@ vim.o.completeopt = "menuone,noselect" -- NOTE: You should make sure your terminal supports this vim.o.termguicolors = true + + + + + + + -- [[ Basic Keymaps ]] -- Keymaps for better default experience @@ -152,6 +172,12 @@ vim.keymap.set({ "n", "v" }, "", "", { silent = true }) -- vim.keymap.set("n", "k", "v:count == 0 ? "gk" : "k"", { expr = true, silent = true }) -- vim.keymap.set("n", "j", "v:count == 0 ? "gj" : "j"", { expr = true, silent = true }) + +-- [[ Autocommands ]] + +local autocmds = require('after.plugins.functions.autocmds') +vim.notify = require("notify") + -- [[ Highlight on yank ]] -- See `:help vim.highlight.on_yank()` local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true }) @@ -163,8 +189,69 @@ vim.api.nvim_create_autocmd("TextYankPost", { pattern = "*", }) --- Diagnostic keymaps ---vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, { desc = "Go to previous diagnostic message" }) ---vim.keymap.set("n", "]d", vim.diagnostic.goto_next, { desc = "Go to next diagnostic message" }) ---vim.keymap.set("n", "e", vim.diagnostic.open_float, { desc = "Open floating diagnostic message" }) ---vim.keymap.set("n", "q", vim.diagnostic.setloclist, { desc = "Open diagnostics list" }) +-- local help_portal = vim.api.nvim_create_augroup("HelpPortal", { clear = true }) +-- vim.api.nvim_create_autocmd("BufWinEnter", { +-- callback = function() +-- vim.g.splitbelow = true +-- end, +-- group = help_portal, +-- pattern = "*help*", +-- }) +-- +-- vim.api.nvim_create_autocmd("BufWinLeave", { +-- callback = function() +-- vim.g.splitbelow = false +-- end, +-- group = help_portal, +-- pattern = "*help*", +-- }) +-- + +-- local whichkey_ft = vim.api.nvim_create_augroup("WhichKeyFT", { clear = true }) +-- vim.api.nvim_create_autocmd("FileType", { +-- callback = function() +-- vim.schedule(autocmds.WhichKeyFT) +-- end, +-- pattern = "*", +-- group = whichkey_ft, +-- }) + +local function vimwiki_create() + local cwd = vim.loop.cwd() + local git_dir = vim.fn.finddir(".git", cwd) + if git_dir ~= "" then + local wiki_path = cwd.."/wiki.md" + + if vim.fn.filereadable(wiki_path) == 0 then + local file = io.open(wiki_path, "w") + if file then + file:write("# Project TaskWiki\n") + file:close() + vim.notify("Project Wiki Created", "info") + else + vim.notify("Failed to create wiki", "info") + end + end + end +end + +local wiki_create = vim.api.nvim_create_augroup("WikiCreate", { clear = true }) +vim.api.nvim_create_autocmd("VimEnter", { + callback = function() + vimwiki_create() + end, + group = wiki_create, +}) + +local help_split_group = vim.api.nvim_create_augroup("HelpSplit", { clear = true }) + +vim.api.nvim_create_autocmd("BufEnter", { + callback = function() + local bt = vim.bo.buftype + if bt == 'help' then + vim.api.nvim_command('wincmd L') + end + end, + group = help_split_group, + pattern = "*", +}) diff --git a/lua/after/plugins/99-keybinds.lua b/lua/after/plugins/99-keybinds.lua index ce00735..ae89b8a 100644 --- a/lua/after/plugins/99-keybinds.lua +++ b/lua/after/plugins/99-keybinds.lua @@ -15,6 +15,7 @@ local functions_module = require('after.plugins.functions.functions') -- local project_keys = functions_module.project +-- this feels most naturally vim.o.timeout = true vim.o.timeoutlen = 550 @@ -53,6 +54,7 @@ return { }, }, +-- TODO: Move these:: -- non-which-key keymaps: -- line bumpers @@ -107,6 +109,12 @@ return { -- telescope undo -- vim.keymap.set('n', 'uu', 'Telescope undo'), +-- Diagnostic keymaps +--vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, { desc = "Go to previous diagnostic message" }) +--vim.keymap.set("n", "]d", vim.diagnostic.goto_next, { desc = "Go to next diagnostic message" }) +--vim.keymap.set("n", "e", vim.diagnostic.open_float, { desc = "Open floating diagnostic message" }) +--vim.keymap.set("n", "q", vim.diagnostic.setloclist, { desc = "Open diagnostics list" }) + -- quick yoink vim.keymap.set({ 'n', 'v' }, 'y', '"+y', { desc = 'Yoink to System Clipboard' }), vim.keymap.set({ 'n', 'v' }, 'P', '"+p', { desc = 'Plop from System Clipboard' }), @@ -174,11 +182,11 @@ return { wk.register{ [''] = { a = { - name = '+Actions', + name = '+[A]ctions', }, b = { - name = '+Buffer', + name = '+[B]uffer', d = "Delete Current Buff", --lazy, see file D = "Delete Current Buffer (Force)", -- lazy, see file g = { bufferline.pick, "Select Buffer" }, @@ -186,13 +194,13 @@ return { }, c = { - name = '+Code', + name = '+[C]ode', a = { vim.lsp.buf.code_action, "Action" }, t = { vim.lsp.buf.type_definition, "Type Definition" }, }, d = { - name = '+Debug', + name = '+[D]ebug', d = { dapui.toggle, 'DAP UI Toggle' }, f = { dap.continue, 'Debug: Start/Continue' }, i = { dap.step_into, 'Debug: Step Into' }, @@ -203,18 +211,28 @@ return { }, e = { - name = "+Editor", + name = "+[E]ditor", c = { function() tele.colorscheme{} end, "Select colorscheme"} }, f = { - name = '+File', + name = '+[F]ile', s = { 'w', 'File Save' }, }, - --NOTE: Any of the telescope functions can have its theme changed to get_dropdown | get_cursor | get_ivy g = { - name = "+Git", + name = "+[G]rep", + f = { function() tele.find_files(require('telescope.themes').get_dropdown({})) end, 'Grep file' }, + -- s = { function() tele.grep_string{} end, 'Grep String' }, -- TODO: add to visual mode + s = { function() tele.live_grep(require('telescope.themes').get_dropdown({})) end, 'Live Grep' }, + p = { function() tele.planets(require('telescope.themes').get_dropdown({})) end, "Search the planets..." }, + g = { function() tele.git_files(require('telescope.themes').get_dropdown({})) end, "Grep git" }, + c = { function() tele.current_buffer_fuzzy_find(require('telescope.themes').get_cursor({})) end, "Current Buffer" }, + }, + + --NOTE: Any of the telescope functions can have its theme changed to get_dropdown | get_cursor | get_ivy + G = { + name = "+[G]it", -- c = { function() tele.git_commits(require('telescope.themes').get_dropdown({})) end, "Commits"}, o = { function() tele.git_bcommits(require('telescope.themes').get_dropdown({})) end, "Buffer's Commits" }, b = { function() tele.git_branches(require('telescope.themes').get_dropdown({})) end, "Branches w/ Log Preview" }, @@ -222,15 +240,20 @@ return { h = { function() tele.git_stash(require('telescope.themes').get_dropdown({})) end, "Show Stash Items in Current Repo" }, f = { function() tele.git_files(require('telescope.themes').get_dropdown({})) end, "Show files" }, }, + + h = { + name = "+[H]elp", + h = { function() tele.help_tags(require('telescope.themes').get_dropdown({})) end, "Search Help Files" }, + c = { function() tele.commands(require('telescope.themes').get_dropdown({})) end, "List Available Plugin/User Commands" }, + }, l = { - name = "+Lists", + name = "+[L]ists", b = { function() tele.builtin(require('telescope.themes').get_ivy({})) end, "Built-Ins" }, d = { function() tele.diagnostics(require('telescope.themes').get_cursor({})) end, "List Diagnostics for all open Buffers" }, --NOTE: this may belong somewhere else - h = { function() tele.help_tags(require('telescope.themes').get_dropdown({})) end, "List help tags" }, j = { function() tele.jumplist(require('telescope.themes').get_cursor({})) end, "Jumplist" }, l = { - name = "+LSP Stuff", + name = "+[L]SP Stuff", r = { function() tele.lsp_references(require('telescope.themes').get_cursor({})) end, "References" }, i = { function() tele.lsp_incoming_calls(require('telescope.themes').get_cursor({})) end, "Incoming Calls for word Under Cursor" }, o = { function() tele.lsp_outgoing_calls(require('telescope.themes').get_cursor({})) end, "Outgoing Calls for word Under Cursor" }, @@ -240,7 +263,7 @@ return { }, m = { function() tele.marks(require('telescope.themes').get_dropdown({})) end, "List Marks" }, p = { - name = "+Pickers", + name = "+[P]ickers", h = { function() tele.resume(require('telescope.themes').get_dropdown({})) end, "Results of Previous Picker" }, N = { function() tele.pickers(require('telescope.themes').get_dropdown({})) end, "Previous Pickers" }, }, @@ -252,11 +275,11 @@ return { }, p = { - name = '+Personal', + name = '+[P]ersonal', }, q = { - name = '+Quickfix', + name = '+[Q]uickfix', q = { function() tele.quickfix(require('telescope.themes').get_dropdown({})) end, "Quickfix" }, h = { function() tele.quickfixhistory(require('telescope.themes').get_dropdown({})) end, "Quickfix History" }, l = { function() tele.loclist(require('telescope.themes').get_dropdown({})) end, "Current Window Location List" }, @@ -266,18 +289,8 @@ return { n = { vim.lsp.buf.rename, "rename" }, }, - s = { - name = "+Search", - f = { function() tele.find_files(require('telescope.themes').get_dropdown({})) end, 'Grep file' }, - -- s = { function() tele.grep_string{} end, 'Grep String' }, -- TODO: add to visual mode - s = { function() tele.live_grep(require('telescope.themes').get_dropdown({})) end, 'Live Grep' }, - p = { function() tele.planets(require('telescope.themes').get_dropdown({})) end, "Search the planets..." }, - g = { function() tele.git_files(require('telescope.themes').get_dropdown({})) end, "Grep git" }, - c = { function() tele.current_buffer_fuzzy_find(require('telescope.themes').get_cursor({})) end, "Current Buffer" }, - }, - t = { - name = '+Trouble/TODO', + name = '+[T]rouble/TODO', n = { function() require('todo-comments').jump_next() end, 'Next TODO' }, N = { function() require('todo-comments').jump_prev() end, 'Previous TODO' }, T = { 'TodoTrouble', "TodoTrouble" }, @@ -291,7 +304,7 @@ return { }, u = { - name = '+UI', + name = '+[U]I', n = { function() require('noice').cmd 'dismiss' end, 'Dismiss Notifications' }, e = { function() require('noice').cmd 'errors' end, 'Show errors' }, l = { function() require('noice').cmd 'last' end, 'Show last popup' }, @@ -302,18 +315,17 @@ return { u = { function() require('telescope').extensions.undo.undo() end, "undo tree" }, }, v = { - name = "+Vim Locals", + name = "+[V]im Locals", v = { function() tele.vim_options(require('telescope.themes').get_dropdown({})) end, "Vim Options" }, r = { function() tele.registers(require('telescope.themes').get_ivy({})) end, "Registers" }, a = { function() tele.autocommands(require('telescope.themes').get_ivy({})) end, "Autocommands" }, k = { function() tele.keymaps(require('telescope.themes').get_ivy({})) end, "Keymaps" }, f = { function() tele.filetypes(require('telescope.themes').get_dropdown({})) end, "Filetypes" }, i = { function() tele.highlights(require('telescope.themes').get_dropdown({})) end, "Highlights" }, - c = { function() tele.commands(require('telescope.themes').get_dropdown({})) end, "List Cmd's" }, }, w = { - name = "+Workspace", + name = "+[W]orkspace", a = { vim.lsp.buf.add_workspace_folder, "Add Folder to workspace" }, r = { vim.lsp.buf.remove_workspace_folder, "Remove Folder to workspace" }, l = { function() print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, 'Workspace List Folders'}, @@ -325,6 +337,7 @@ return { --end leader setup }, + [''] = { "FloatermToggle", "Float-Term Toggle" }, -- TODO: figure out what to do with these for window hopping easily -- [""] = { 'h' }, -- [""] = { 'j' }, diff --git a/lua/after/plugins/functions/autocmds.lua b/lua/after/plugins/functions/autocmds.lua new file mode 100644 index 0000000..4e7e8da --- /dev/null +++ b/lua/after/plugins/functions/autocmds.lua @@ -0,0 +1,86 @@ +local wk = require('which-key') + +-- local wkGrp = vim.api.nvim_create_augroup("WhichKeyLoader", { clear = true }) +-- vim.api.nvim_create_autocmd("WhichKeyTaskWiki", { +-- command = -- TODO: get wk table, +-- ---@stylua: ignore +-- group = wkGrp, +-- }) + + function WhichKeyFT() + local bufnr = vim.api.nvim_get_current_buf() + local ft = vim.api.nvim_buf_get_option(0, 'filetype') + local fname = vim.fn.expand "%:p:t" + local keymap_table = {} + + if ft == "vimwiki" then + keymap_table = { + w = { + name = "+[W]iki", + y = { "VimwikiMakeYesterdayDiaryNote", "Create Yesterday's Note" }, + n = { "VimwikiTabMakeDiaryNote", "Create Today's Note" }, + t = { "VimwikiMakeTomorrowDiaryNote", "Create Tomorrow's Note" }, + w = { "VimwikiMakeDiaryNote", "Create Diary Note" }, + i = { "VimwikiDiaryGenerateLinks", "Generate Links" }, + d = { "VimwikiDiaryIndex", "Vimwiki Index" }, + s = { "VimwikiUISelect", "Vimwiki UI Select" }, + I = { "VimwikiIndex", "Index" }, + T = { "VimwikiTabIndex", "Tab Index" }, + }, + t = { + name = "+[T]ask", + a = { "Annotate" }, + b = { + name = "+[B]urndowns", + d = { "Daily Burndown" }, + w = { "Weekly Burndown" }, + m = { "Monthly Burndown" }, + }, + c = { + name = "+[C]hoose Project/Tag", + p = { "Choose [P]roject"}, + t = { "Choose [T]ag"}, + }, + + C = { "Calendar" }, + d = { "Done" }, + D = { "Delete" }, + e = { "Edit" }, + g = { "Grid" }, + G = { + name = "+[G]History", + m = { "Ghistory Monthly" }, + a = { "Ghistory Annual" }, + }, + h = { + name = "+[H]istory", + m = { "History Monthly" }, + a = { "History Annual" }, + }, + i = { "Info" }, + l = { "Link" }, + m = { "Mod" }, + p = { "Projects" }, + s = { "Projects Summary" }, + S = { "Stats" }, + t = { "Tags" }, + ['+'] = { "Start" }, + ['-'] = { "Stop" }, + } + } + end + + if fname == 'package.json' then + keymap_table.v = { "lua require('package-info').show()", "Show Version" } + end + if next(keymap_table) ~= nil then + wk.register( + { keymap_table }, + { mode = "n", silent = true, noremap = true, prefix = "" } + ) + end + end + +return { + WhichKeyFT = WhichKeyFT +} diff --git a/lua/after/plugins/functions/test.md b/lua/after/plugins/functions/test.md new file mode 100644 index 0000000..e69de29 diff --git a/lua/after/plugins/functions/txt.txt b/lua/after/plugins/functions/txt.txt new file mode 100644 index 0000000..4fcbe85 --- /dev/null +++ b/lua/after/plugins/functions/txt.txt @@ -0,0 +1,429 @@ + + +n wl *@ + LSP: [W]orkspace [L]ist Folders + Last set from Luan wr *@ + LSP: [W]orkspace [R]emove Folder + Last set from Luan wa *@ + LSP: [W]orkspace [A]dd Folder + Last set from Luan ws *@ + LSP: [W]orkspace [S]ymbols + Last set from Luan ds *@ + LSP: [D]ocument [S]ymbols + Last set from Luan D *@ + LSP: Type [D]efinition + Last set from Luan ca *@ + LSP: [C]ode [A]ction + Last set from Luan rn *@ + LSP: [R]e[n]ame + Last set from Luan K *@ + LSP: Hover Documentation + Last set from Luan gD *@ + LSP: [G]oto [D]eclaration + Last set from Luan gI *@ + LSP: [G]oto [I]mplementation + Last set from Luan gr *@ + LSP: [G]oto [R]eferences + Last set from Luan gd *@ + LSP: [G]oto [D]efinition + Last set from Luan *@ + LSP: Signature Documentation + Last set from Luan * noh + Escape and clear hlsearch + Last set from Luan pÞ * + Last set from Luan p * lua require("which-key").show(" p", {mode = "n", auto = true}) + Last set from Luan Þ * + Last set from Luan * lua require("which-key").show(" ", {mode = "n", auto = true}) + Last set from Luan bÞ * + Last set from Luan b * lua require("which-key").show(" b", {mode = "n", auto = true}) + Last set from Luan bD * + Delete Current Buffer -Force + Last set from Luan bd * + Delete Current Buffer + Last set from Luan bP * BufferLineGroupClose ungrouped + Delete non-pinned buffers + Last set from Luan bp * BufferLineTogglePin + Toggle pin + Last set from Luan fÞ * + Last set from Luan hÞ * + Last set from Luan gÞ * + Last set from Luan vÞ * + Last set from Luan wÞ * + Last set from Luan wÞ * + Last set from Luan ltÞ * + Last set from Luan lpÞ * + Last set from Luan lÞ * + Last set from Luan eÞ * + Last set from Luan dÞ * + Last set from Luan uÞ * + Last set from Luan swÞ * + Last set from Luan sÞ * + Last set from Luan cÞ * + Last set from Luan qÞ * + Last set from Luan rwÞ * + Last set from Luan rÞ * + Last set from Luan tÞ * + Last set from Luan GÞ * + Last set from Luan aÞ * + Last set from Luan fs * w + File Save + Last set from Luan ec * + Select colorscheme + Last set from Luan gf * + Grep file + Last set from Luan gs * + Live Grep + Last set from Luan gg * + Grep git + Last set from Luan gc * + Current Buffer + Last set from Luan gp * + Search the planets... + Last set from Luan vf * + Filetypes + Last set from Luan vr * + Registers + Last set from Luan vi * + Highlights + Last set from Luan vv * + Vim Options + Last set from Luan vc * + List Cmd's + Last set from Luan vk * + Keymaps + Last set from Luan va * + Autocommands + Last set from Luan wl * + Workspace List Folders + Last set from Luan wr * + Remove Folder to workspace + Last set from Luan wp * + Project Interface + Last set from Luan wa * + Add Folder to workspace + Last set from Luan / * + Search Current Buffer (Fuzzy) + Last set from Luan tN * + Previous TODO + Last set from Luan tr * + LSP Reference List + Last set from Luan tT * TodoTrouble + TodoTrouble + Last set from Luan tt * + Open Trouble + Last set from Luan tw * + Workspace Diagnostics + Last set from Luan tL * TodoTelescope + TodoTelescope + Last set from Luan td * + Document Diagnostics + Last set from Luan tl * + Location List + Last set from Luan tn * + Next TODO + Last set from Luan tq * + Quickfix + Last set from Luan * + Find Existing Buffers + Last set from Luan df * + Debug: Start/Continue + Last set from Luan do * + Debug: Step Over + Last set from Luan db * + Debug: Set Breakpoint + Last set from Luan dt * + Debug: Toggle Breakpoint + Last set from Luan dO * + Debug: Step Out + Last set from Luan dd * + DAP UI Toggle + Last set from Luan di * + Debug: Step Into + Last set from Luan bc * + Close Select Buffer + Last set from Luan bg * + Select Buffer + Last set from Luan ct * + Type Definition + Last set from Luan ca * + Action + Last set from Luan qq * + Quickfix + Last set from Luan qh * + Quickfix History + Last set from Luan ql * + Current Window Location List + Last set from Luan rn * + rename + Last set from Luan ltt * + Treesitter Functions & Variables + Last set from Luan ls * + Spelling Suggestions + Last set from Luan lld * + List Document Symbols in Current Buffer + Last set from Luan lls * + Dynamically List LSP for all Workspace Symbols + Last set from Luan llr * + References + Last set from Luan llw * + List Document Symbols in Current Workspace + Last set from Luan llo * + Outgoing Calls for word Under Cursor + Last set from Luan lli * + Incoming Calls for word Under Cursor + Last set from Luan ltb * + Current Buffer Tags + Last set from Luan lm * + List Marks + Last set from Luan ld * + List Diagnostics for all open Buffers + Last set from Luan lph * + Results of Previous Picker + Last set from Luan lpN * + Previous Pickers + Last set from Luan lz * + Symbols + Last set from Luan lj * + Jumplist + Last set from Luan lb * + Built-Ins + Last set from Luan hh * + Search Help Files + Last set from Luan ue * + Show errors + Last set from Luan uD * + Disable Noice + Last set from Luan uE * + Enable Noice + Last set from Luan un * + Dismiss Notifications + Last set from Luan us * + Show Noice Debug Stats + Last set from Luan ul * + Show last popup + Last set from Luan uh * + Open message history in telescope + Last set from Luan uu * + undo tree + Last set from Luan Gf * + Show files + Last set from Luan Gs * + Show Current Changes + Last set from Luan Gh * + Show Stash Items in Current Repo + Last set from Luan Go * + Buffer's Commits + Last set from Luan Gb * + Branches w/ Log Preview + Last set from Luan ? * + Show Recent Files + Last set from Lua rwp RestoreWinPosn + Last set from ~/.local/share/nvim/lazy/vim-plugin-AnsiEsc/plugin/cecutil.vim line 53 swp SaveWinPosn + Last set from ~/.local/share/nvim/lazy/vim-plugin-AnsiEsc/plugin/cecutil.vim line 50n wm VimwikiMakeTomorrowDiaryNote + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n wy VimwikiMakeYesterdayDiaryNote + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n wt VimwikiTabMakeDiaryNote + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n ww VimwikiMakeDiaryNote + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n wi VimwikiDiaryGenerateLinks + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n wi VimwikiDiaryIndex + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n ws VimwikiUISelect + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n wt VimwikiTabIndex + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n ww VimwikiIndex + Last set from ~/.local/share/nvim/lazy/vimwiki/autoload/vimwiki/u.vim line 217n P * "+p + Plop from System Clipboard + Last set from Luan y * "+y + Yoink to System Clipboard + Last set from Luan pv * :Ex + netrw + Last set from Luan ll * Lazy + Lazy UI + Last set from Luan !aÞ * + Last set from Luan !iÞ * + Last set from Luan !Þ * + Last set from Luan ! * lua require("which-key").show("!", {mode = "n", auto = true}) + Last set from Luan " * lua require("which-key").show("\"", {mode = "n", auto = true}) + Last set from Luan % (matchup-%) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 176n & * :&& + Nvim builtin + Last set from Luan ' * lua require("which-key").show("'", {mode = "n", auto = true}) + Last set from Luan + Last set from Luan + Last set from Luan <Þ * + Last set from Luan < * lua require("which-key").show("<", {mode = "n", auto = true}) + Last set from Luan >aÞ * + Last set from Luan >iÞ * + Last set from Luan >Þ * + Last set from Luan > * lua require("which-key").show(">", {mode = "n", auto = true}) + Last set from Luan H * BufferLineCyclePrev + Buffer Left + Last set from Luan L * BufferLineCycleNext + Buffer Right + Last set from Luan Y * y$ + Nvim builtin + Last set from Luan [Þ * + Last set from Luan [ * lua require("which-key").show("[", {mode = "n", auto = true}) + Last set from Luan [% (matchup-[%) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 176n ]Þ * + Last set from Luan ] * lua require("which-key").show("]", {mode = "n", auto = true}) + Last set from Luan ]% (matchup-]%) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 176n ` * lua require("which-key").show("`", {mode = "n", auto = true}) + Last set from Luan ciÞ * + Last set from Luan chn * + Highlight next surrounding + Last set from Luan cFn * + Find next left surrounding + Last set from Luan cfn * + Find next right surrounding + Last set from Luan csn * + Replace next surrounding + Last set from Luan cdn * + Delete next surrounding + Last set from Luan chl * + Highlight previous surrounding + Last set from Luan cFl * + Find previous left surrounding + Last set from Luan cfl * + Find previous right surrounding + Last set from Luan csl * + Replace previous surrounding + Last set from Luan cdl * + Delete previous surrounding + Last set from Luan cn * + Update `MiniSurround.config.n_lines` + Last set from Luan ch * + Highlight surrounding + Last set from Luan cF * + Find left surrounding + Last set from Luan cf * + Find right surrounding + Last set from Luan cs * + Replace surrounding + Last set from Luan cd * + Delete surrounding + Last set from Luan ca * + Add surrounding + Last set from Luan dÞ * + Last set from Luan d * lua require("which-key").show("d", {mode = "n", auto = true}) + Last set from Luan daÞ * + Last set from Luan diÞ * + Last set from Luan f * + Flash Treesitter + Last set from Luan gÞ * + Last set from Luan g * lua require("which-key").show("g", {mode = "n", auto = true}) + Last set from Luan gUaÞ * + Last set from Luan gUiÞ * + Last set from Luan gUÞ * + Last set from Luan gtÞ * + Last set from Luan guaÞ * + Last set from Luan guiÞ * + Last set from Luan guÞ * + Last set from Luan g~aÞ * + Last set from Luan g~iÞ * + Last set from Luan g~Þ * + Last set from Luan gI * + Goto References + Last set from Luan gr * + Goto References + Last set from Luan gD * + Goto declaration + Last set from Luan gtt * + Go-To Type Definition + Last set from Luan gtd * + Go-To Definition + Last set from Luan gti * + Go-To Implementation + Last set from Luan gd * + Goto Definition + Last set from Luan gx NetrwBrowseX + Last set from /var/lib/snapd/snap/nvim/2810/usr/share/nvim/runtime/plugin/netrwPlugin.vim line 82n gcA * + Comment insert end of line + Last set from Luan gcO * + Comment insert above + Last set from Luan gco * + Comment insert below + Last set from Luan gbc * + Comment toggle current block + Last set from Luan gcc * + Comment toggle current line + Last set from Luan gb * (comment_toggle_blockwise) + Comment toggle blockwise + Last set from Luan gc * (comment_toggle_linewise) + Comment toggle linewise + Last set from Luan g% (matchup-g%) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 176n vaÞ * + Last set from Luan viÞ * + Last set from Luan vÞ * + Last set from Luan v * lua require("which-key").show("v", {mode = "n", auto = true}) + Last set from Luan yaÞ * + Last set from Luan yiÞ * + Last set from Luan yÞ * + Last set from Luan y * lua require("which-key").show("y", {mode = "n", auto = true}) + Last set from Luan y & :call setreg(v:register, fugitive#Object(@%)) + Last set from ~/.local/share/nvim/lazy/vim-fugitive/plugin/fugitive.vim line 749n zfaÞ * + Last set from Luan zfiÞ * + Last set from Luan zfÞ * + Last set from Luan zÞ * + Last set from Luan z * lua require("which-key").show("z", {mode = "n", auto = true}) + Last set from Luan z% (matchup-z%) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 176n 10_(wiseÞ * + Last set from Luan 10_(wisÞ * + Last set from Luan 10_(wiÞ * + Last set from Luan 10_(wÞ * + Last set from Luan 10_(Þ * + Last set from Luan 10_Þ * + Last set from Luan 10Þ * + Last set from Luan 1Þ * + Last set from Luan Þ * + Last set from Luan * lua require("which-key").show("<80>R", {mode = "n", auto = true}) + Last set from Luan Þ * + Last set from Luan * lua require("which-key").show("\23", {mode = "n", auto = true}) + Last set from Luan * + Signature Documentation + Last set from Luan * + Hover Documentation + Last set from Luan NetrwBrowseX * :call netrw#BrowseX(netrw#GX(),netrw#CheckIfRemote(netrw#GX())) + Last set from /var/lib/snapd/snap/nvim/2810/usr/share/nvim/runtime/plugin/netrwPlugin.vim line 84 luasnip-expand-repeat * + Last set from Luan luasnip-delete-check * + Last set from Luan RestoreWinPosn :call RestoreWinPosn() + Last set from ~/.local/share/nvim/lazy/vim-plugin-AnsiEsc/plugin/cecutil.vim line 57n SaveWinPosn :call SaveWinPosn() + Last set from ~/.local/share/nvim/lazy/vim-plugin-AnsiEsc/plugin/cecutil.vim line 56n (comment_toggle_blockwise_count) * + Comment toggle blockwise with count + Last set from Luan (comment_toggle_linewise_count) * + Comment toggle linewise with count + Last set from Luan (comment_toggle_blockwise_current) * + Comment toggle current block + Last set from Luan (comment_toggle_linewise_current) * + Comment toggle current line + Last set from Luan (comment_toggle_blockwise) * + Comment toggle blockwise + Last set from Luan (comment_toggle_linewise) * + Comment toggle linewise + Last set from Luan VimwikiMakeTomorrowDiaryNote & :call vimwiki#diary#make_note(v:count, 0, vimwiki#diary#diary_date_link(localtime(), 1)) + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 403n VimwikiMakeYesterdayDiaryNote & :call vimwiki#diary#make_note(v:count, 0, vimwiki#diary#diary_date_link(localtime(), -1)) + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 400n VimwikiTabMakeDiaryNote & :call vimwiki#diary#make_note(v:count, 1) + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 398n VimwikiMakeDiaryNote & :call vimwiki#diary#make_note(v:count, 5) + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 396n VimwikiDiaryGenerateLinks & :VimwikiDiaryGenerateLinks + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 394n VimwikiDiaryIndex & :call vimwiki#diary#goto_diary_index(v:count) + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 392n VimwikiUISelect & :VimwikiUISelect + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 390n VimwikiTabIndex & :call vimwiki#base#goto_index(v:count, 1) + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 388n VimwikiIndex & :call vimwiki#base#goto_index(v:count) + Last set from ~/.local/share/nvim/lazy/vimwiki/plugin/vimwiki.vim line 386n PlenaryTestFile * :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p")) + Last set from ~/.local/share/nvim/lazy/plenary.nvim/plugin/plenary.vim line 9n <2-LeftMouse> (matchup-double-click) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 176n (matchup-reload) * :MatchupReload + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 351n (matchup-double-click) * :call matchup#text_obj#double_click() + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 341n (matchup-Z%) * :call matchup#motion#jump_inside_prev(0) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 298n (matchup-z%) * :call matchup#motion#jump_inside(0) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 288n (matchup-[%) * :call matchup#motion#find_unmatched(0, 0) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 273n (matchup-]%) * :call matchup#motion#find_unmatched(0, 1) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 271n (matchup-g%) * :call matchup#motion#find_matching_pair(0, 0) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 254n (matchup-%) * :call matchup#motion#find_matching_pair(0, 1) + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 252n 10_(wise) * empty(g:v_motion_force) ? 'v' : g:v_motion_force + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup.vim line 248n (matchup-hi-surround) * :call matchup#matchparen#highlight_surrounding() + Last set from ~/.local/share/nvim/lazy/vim-matchup/autoload/matchup/matchparen.vim line 17n fugitive: & + Last set from ~/.local/share/nvim/lazy/vim-fugitive/plugin/fugitive.vim line 724n fugitive:y & :call setreg(v:register, fugitive#Object(@%)) + Last set from ~/.local/share/nvim/lazy/vim-fugitive/plugin/fugitive.vim line 723n * m .+1== + Move Line Down + Last set from Luan * m .-2== + Move Line Up + Last set from Luan * nohlsearch|diffupdate|normal! + Nvim builtin + Last set from Lua diff --git a/lua/after/plugins/keybind-files/10-vimwiki-binds.lua b/lua/after/plugins/keybind-files/10-vimwiki-binds.lua new file mode 100644 index 0000000..41fb5b7 --- /dev/null +++ b/lua/after/plugins/keybind-files/10-vimwiki-binds.lua @@ -0,0 +1,37 @@ +local wk = require('which-key') +return { + wk.register{ + [''] = { + w = { + name = "+[W]iki", + y = { "VimwikiMakeYesterdayDiaryNote", "Create Yesterday's Note" }, + n = { "VimwikiTabMakeDiaryNote", "Create Today's Note" }, + t = { "VimwikiMakeTomorrowDiaryNote", "Create Tomorrow's Note" }, + w = { "VimwikiMakeDiaryNote", "Create Diary Note" }, + i = { "VimwikiDiaryGenerateLinks", "Generate Links" }, + d = { "VimwikiDiaryIndex", "Vimwiki Index" }, + s = { "VimwikiUISelect", "Vimwiki UI Select" }, + I = { "VimwikiIndex", "Index" }, + T = { "VimwikiTabIndex", "Tab Index" }, + } + } + } +} + + +-- Normal mode +-- +-- Note: your terminal may prevent capturing some of the default bindings listed below. See :h vimwiki-local-mappings for suggestions for alternative bindings if you encounter a problem. +-- Basic key bindings +-- +-- ww -- Open default wiki index file. +-- wt -- Open default wiki index file in a new tab. +-- ws -- Select and open wiki index file. +-- wd -- Delete wiki file you are in. +-- wr -- Rename wiki file you are in. +-- -- Follow/Create wiki link. +-- -- Split and follow/create wiki link. +-- -- Vertical split and follow/create wiki link. +-- -- Go back to parent(previous) wiki link. +-- -- Find next wiki link. +-- -- Find previous wiki link. diff --git a/lua/after/plugins/keybind-files/11-taskwikibinds.lua b/lua/after/plugins/keybind-files/11-taskwikibinds.lua new file mode 100644 index 0000000..f37a91d --- /dev/null +++ b/lua/after/plugins/keybind-files/11-taskwikibinds.lua @@ -0,0 +1,60 @@ +local wk = require('which-key') +return { + wk.register({ + + n = { + [''] = { + + a = { "TaskWikiAnnotate", "Annotate" }, + b = { + d = { "TaskWikiBurndownDaily", "Daily Burndown" }, + w = { "TaskWikiBurndownWeekly", "Weekly Burndown" }, + m = {"TaskWikiBurndownMonthly", "Monthly Burndown" }, + }, + c = { + p = { "TaskWikiChooseProject", "Choose [P]roject"}, + t = { "TaskWikiChooseTag", "Choose [T]ag"}, + }, + + C = { "TaskWikiCalendar", "Calendar" }, + d = { "TaskWikiDone", "Done" }, + D = { "TaskWikiDelete", "Delete" }, + e = { "TaskWikiEdit", "Edit" }, + g = { "TaskWikiGrid", "Grid" }, + G = { + m = { "TaskWikiGhistoryMonthly", "Ghistory Monthly" }, + a = { "TaskWikiGhistoryAnnual", "Ghistory Annual" }, + }, + h = { + m = { "TaskWikiHistoryMonthly", "History Monthly" }, + a = { "TaskWikiHistoryAnnual", "History Annual" }, + }, + i = { "TaskWikiInfo", "Info" }, + l = { "TaskWikiLink", "Link" }, + m = { "TaskWikiMod", "Mod" }, + p = { "TaskWikiProjects", "Projects" }, + s = { "TaskWikiProjectsSummary", "Projects Summary" }, + S = { "TaskWikiStats", "Stats" }, + t = { "TaskWikiTags", "Tags" }, + ['+'] = { "TaskWikiStart", "Start" }, + ['-'] = { "TaskWikiStop", "Stop" }, + } + }, + -- v = { + -- a = {}, + -- c = { + -- p = {}, + -- t = {}, + -- }, + -- d = {}, + -- D = {}, + -- e = {}, + -- g = {}, + -- i = {}, + -- l = {}, + -- m = {}, + -- ['+'] = {}, + -- ['-'] = {}, + -- } + }) +} diff --git a/lua/after/plugins/t-mode-keybinds.lua b/lua/after/plugins/t-mode-keybinds.lua new file mode 100644 index 0000000..c199401 --- /dev/null +++ b/lua/after/plugins/t-mode-keybinds.lua @@ -0,0 +1,6 @@ +local wk = require("which-key") +return { + wk.register({ + [''] = { "FloatermToggle", "Float-Term Toggle" }, + }, { mode = "t" }) +} diff --git a/lua/plugins/behavior/editor-behavior.lua b/lua/plugins/behavior/editor-behavior.lua index f81b86b..60770cc 100644 --- a/lua/plugins/behavior/editor-behavior.lua +++ b/lua/plugins/behavior/editor-behavior.lua @@ -8,6 +8,7 @@ return { { -- TODO: move to keymaps 'echasnovski/mini.surround', + -- NOTE: visual mode!! opts = { mappings = { add = 'ca', @@ -24,4 +25,13 @@ return { -- commenter -- "gc" to comment visual regions/lines { 'numToStr/Comment.nvim', opts = {} }, + -- TODO: https://github.com/Wansmer/treesj + -- { + -- 'Wansmer/treesj', + -- keys = { 'm', 'j', 's' }, + -- dependencies = { 'nvim-treesitter/nvim-treesitter' }, + -- config = function() + -- require('treesj').setup({}) + -- end, + -- }, } diff --git a/lua/plugins/interface/editor-ui.lua b/lua/plugins/interface/editor-ui.lua index f5aa178..6d65843 100644 --- a/lua/plugins/interface/editor-ui.lua +++ b/lua/plugins/interface/editor-ui.lua @@ -98,8 +98,7 @@ return { format_done = 'lsp_progress_done', throttle = 1000 / 30, -- frequency to update lsp progress message view = 'mini', - }, - override = { + }, override = { -- override the default lsp markdown formatter with Noice ['vim.lsp.util.convert_input_to_markdown_lines'] = false, -- override the lsp markdown formatter with Noice @@ -225,9 +224,6 @@ return { 'lukas-reineke/indent-blankline.nvim', -- Enable `lukas-reineke/indent-blankline.nvim` -- See `:help indent_blankline.txt` - opts = { - char = '┊', - show_trailing_blankline_indent = false, - }, + version = '3.2.4' }, } diff --git a/lua/plugins/lsp/langs/utils.lua b/lua/plugins/lsp/langs/lualang.lua similarity index 100% rename from lua/plugins/lsp/langs/utils.lua rename to lua/plugins/lsp/langs/lualang.lua diff --git a/lua/plugins/lsp/lspconfig.lua b/lua/plugins/lsp/lspconfig.lua index f32bdbc..0e3df13 100644 --- a/lua/plugins/lsp/lspconfig.lua +++ b/lua/plugins/lsp/lspconfig.lua @@ -1,5 +1,5 @@ -local langs = require('plugins.lsp.langs.utils') -local lua = langs.lualang() +-- local langs = require('plugins.lsp.langs.lualang') +-- local lualang = langs.lualang() return { -- LSP Configuration & Plugins @@ -216,10 +216,10 @@ return { telemetry = { enable = false }, }, }, - luacheck = {}, - luaformatter = {}, - ---@stylua ignore + -- luacheck = {}, + -- luaformatter = {}, -- efm = efmls_config, + -- lua = { lualang } } -- Setup neovim lua configuration diff --git a/lua/plugins/lsp/none-ls.lua b/lua/plugins/lsp/none-ls.lua new file mode 100644 index 0000000..bb14e75 --- /dev/null +++ b/lua/plugins/lsp/none-ls.lua @@ -0,0 +1,28 @@ +return { + 'nvimtools/none-ls.nvim', + requires = { 'nvim-lua/plenary.nvim' }, + config = function() + local null_ls = require('null-ls') + + local code_actions = null_ls.builtins.code_actions + local diagnostics = null_ls.builtins.diagnostics + local formatting = null_ls.builtins.formatting + local hover = null_ls.builtins.hover + local completion = null_ls.builtins.completion + + require('null-ls').setup({ + sources = { + code_actions.gitsigns, + code_actions.eslint.with({ + filetypes = {}, + }), + -- code_actions.elsint_d, + -- code_actions.cspell, + -- diagnostics.cspell, + formatting.stylua, + diagnostics.eslint, + completion.spell, + } + }) + end, +} diff --git a/lua/plugins/themes/colorschemes.lua b/lua/plugins/themes/colorschemes.lua index 893fef9..a3ffcb3 100644 --- a/lua/plugins/themes/colorschemes.lua +++ b/lua/plugins/themes/colorschemes.lua @@ -8,4 +8,8 @@ return { vim.cmd.colorscheme 'onedark' end, }, +-- { +-- 'ellisonleao/gruvbox.nvim', +-- priority = 1000, +-- }, } diff --git a/lua/plugins/utils/neorg.lua b/lua/plugins/utils/neorg.lua index 1b5ed15..562a19c 100644 --- a/lua/plugins/utils/neorg.lua +++ b/lua/plugins/utils/neorg.lua @@ -2,6 +2,7 @@ return { { "nvim-neorg/neorg", build = ":Neorg sync-parsers", + ft = "norg", dependencies = { "nvim-lua/plenary.nvim", "nvim-neorg/neorg-telescope" }, config = function() require("neorg").setup{ diff --git a/lua/plugins/utils/taskwiki.lua b/lua/plugins/utils/taskwiki.lua new file mode 100644 index 0000000..7f36126 --- /dev/null +++ b/lua/plugins/utils/taskwiki.lua @@ -0,0 +1,17 @@ +return { + { + 'tools-life/taskwiki', + lazy = false, + dependencies = { + 'powerman/vim-plugin-AnsiEsc', + 'majutsushi/tagbar', + 'farseer90718/vim-taskwarrior', + }, + init = function() + vim.g.taskwiki_maplocalleader="," + end, + }, +} + -- { -- TODO: + -- 'chipsenkbeil/vimwiki-server.nvim', + -- }, diff --git a/lua/plugins/utils/telescope.lua b/lua/plugins/utils/telescope.lua index 4ee4244..1154aaf 100644 --- a/lua/plugins/utils/telescope.lua +++ b/lua/plugins/utils/telescope.lua @@ -4,7 +4,7 @@ return { 'nvim-telescope/telescope.nvim', version = false, dependencies = { - 'nvim-lua/plenary.nvim', + { 'nvim-lua/plenary.nvim' }, { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make', @@ -12,7 +12,7 @@ return { return vim.fn.executable 'make' == 1 end, }, - 'debugloop/telescope-undo.nvim', + { 'debugloop/telescope-undo.nvim' }, { 'nvim-telescope/telescope-project.nvim', dependencies = { diff --git a/lua/plugins/utils/terminal.lua b/lua/plugins/utils/terminal.lua new file mode 100644 index 0000000..8814a61 --- /dev/null +++ b/lua/plugins/utils/terminal.lua @@ -0,0 +1,3 @@ +return { + 'voldikss/vim-floaterm', +} diff --git a/lua/plugins/utils/vimwiki.lua b/lua/plugins/utils/vimwiki.lua new file mode 100644 index 0000000..be450f7 --- /dev/null +++ b/lua/plugins/utils/vimwiki.lua @@ -0,0 +1,23 @@ +return { + { + 'vimwiki/vimwiki', + ft = 'markdown', + lazy = false, + init = function() + vim.g.vimwiki_list = {{ ['path'] = '$HOME/vimwiki/', ['syntax'] = 'default', ['ext'] = '.wiki' }} + vim.g.vimwiki_key_mappings = { + ['all_maps'] = 1, + ['global'] = 1, + ['headers'] = 1, + ['text_objs'] = 1, + ['table_format'] = 1, + ['table_mappings'] = 1, + ['lists'] = 1, + ['links'] = 1, + ['html'] = 1, + ['mouse'] = 1, + } + vim.g.vimwiki_map_prefix = 'w' + end + }, +} diff --git a/roadmap.norg b/roadmap.norg new file mode 100644 index 0000000..9f579a9 --- /dev/null +++ b/roadmap.norg @@ -0,0 +1,37 @@ +* Implement working 'trouble.nvim' +** Trouble +** Quickfix +*** Quickfix List + - figure out what the hell this even - (?) + +* UI Interface complexities/functions + - Have a xyz thing for 'help' + - How it should work: + 1. Press `h` or similar + 2. a `telescope` window pops up that lets you search the command (with autofill or suggestions) + 3. `` brings up the selected option + - #implement Marks (set, list, goto, etc. ) + +* Neorg setup + - add ability to add thoughts from anywhere in project + - add project detection + - add todo-search/detection from within project + - add ability to open `roadmap.norg` from anywhere within project + - #implement keybind for showing available tags and the like + - figure out how to #implement a small which-key window at the bottom - (?) + +* Coding setup (the typing out part) + - Fix the ability to list out commands and available subcommands + - #implement autocorrect for stuff like 'ture/true', etc. + +* LSP setup + - Add ability for `Mason` to autoinstall servers if a filetype is opened that both: + - has a supported filetype/server AND + - that server is not currently installed + +* General +** Tabs/Buffers + - explain in readme that tabs != buffers and vise versa, and that all "tabs" reffered to will be referencing the bufferline tabs unless otherwise noted +- #implement readme +- #implement persistent, per-file/per-filetype settings + diff --git a/taskwiki.wiki b/taskwiki.wiki new file mode 100644 index 0000000..b47d340 --- /dev/null +++ b/taskwiki.wiki @@ -0,0 +1,2 @@ +angostic nvim | project:agnvstic + diff --git a/vimwiki.wiki b/vimwiki.wiki new file mode 100644 index 0000000..8146998 --- /dev/null +++ b/vimwiki.wiki @@ -0,0 +1,56 @@ +With Vimwiki, you can: +- organize notes and ideas +- manage to-do lists +- write documentation +- maintain a diary +- export everything to html + +# To do a quick start: press 'ww' ("comma"ww) +- This will take you to your index wiki file. + - By default, this is located in `~/vimwiki/index.wiki`. + - (See :h vimwiki_list for registering a different path/wiki) + - TODO setup per-project indices for vimwiki + +Feed it with the following example: + += My Knowledge Base = + * [[Tasks]] -- things to be done _yesterday_!!! + * [[Project Gutenberg]] -- good books are power. + * Scratchpad -- various temp stuff. + +Place your cursor on Tasks and press Enter to create a link. +Once pressed, Tasks will become [[Tasks]] -- a vimwiki link. +Press enter again to open it. Edit the file, save it, then press backspace to jump back to your index. + +a vimwiki link can be constructed from more than one word. just [v] the words to be linked and press enter +Try it with project gutenberg^^ + +Basic Markup: += Header 1 = +== Header 2 == +=== Header 3 === +==== Header 4 ==== +etc. + +*bold* +_italic_ +[[wiki link]] +[[wiki link|description]] + +Lists: +* bullet list item 1 + - bullet list item 2 + - bullet list item 3 + * bullet list item 4 + * bullet list item 5 +* bullet list item 6 +* bullet list item 7 + - bullet list item 8 + - bullet list item 9 + +1. numbered list item 1 +2. numbered list item 2 + a) numbered list item 3 + b) numbered list item 4 ** must use paren, not period + +`:h vimwiki.txt` diff --git a/wiki.md b/wiki.md new file mode 100644 index 0000000..e378771 --- /dev/null +++ b/wiki.md @@ -0,0 +1 @@ +# Project TaskWiki diff --git a/wiki.wiki b/wiki.wiki new file mode 100644 index 0000000..3ca5076 --- /dev/null +++ b/wiki.wiki @@ -0,0 +1,6 @@ +test +foo +bar +baz +hit em wit da razzle daz +