-- Options lvim.colorscheme = "tokyonight" lvim.log.level = "warn" lvim.format_on_save = true lvim.builtin.alpha.mode = "startify" lvim.builtin.nvimtree.show_icons.git = 1 local o = vim.opt o.timeoutlen = 300 o.shell = "/bin/sh" -- Keymappings local delete = function () end lvim.leader = "space" lvim.keys.normal_mode[""] = ":w" lvim.builtin.cmp.mapping[""] = delete() lvim.builtin.which_key.mappings["P"] = { "Telescope projects", "Projects" } lvim.builtin.which_key.mappings["t"] = { name = "+Trouble", r = { "Trouble lsp_references", "References" }, f = { "Trouble lsp_definitions", "Definitions" }, d = { "Trouble lsp_document_diagnostics", "Diagnostics" }, q = { "Trouble quickfix", "QuickFix" }, l = { "Trouble loclist", "LocationList" }, w = { "Trouble lsp_workspace_diagnostics", "Diagnostics" }, } lvim.builtin.which_key.mappings["n"] = { name = "+Neorg", s = { ":NeorgStart silent=true", "Start"}, t = { ":Neorg gtd capture", "New Task"}, v = { ":Neorg gtd views", "View Tasks"}, e = { ":Neorg gtd edit", "Edit Tasks"}, w = { ":Neorg news all", "Neorg News"}, d = { name = "+Journal", t = { ":Neorg journal today", "Today" }, y = { ":Neorg journal yesterday", "Yesterday" }, n = { ":Neorg journal tomorrow", "Tomorrow" }, c = { ":Neorg journal custom", "Custom" }, }, } -- Plugins local req = function (module) require(module) end lvim.builtin.notify.active = true lvim.builtin.terminal.active = true lvim.builtin.dap.active = true lvim.plugins = { { "folke/tokyonight.nvim", }, { "nvim-neorg/neorg", config = req "conf.neorg", }, { "folke/trouble.nvim", cmd = "TroubleToggle", }, } require "conf.luasnip"