diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-07-21 14:46:45 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-07-21 14:46:45 +0100 |
| commit | 1afd76ff2fa2d7cfb408a78cd8e47209f0305a24 (patch) | |
| tree | 1318002a422e95e388b6e071af08eb32a2685240 | |
| parent | 0164e81b70138f925f287fea616695e910cc91d6 (diff) | |
added orgmode pluging and icons file from ChrisChiarulli
| -rw-r--r-- | lua/user/icons.lua | 220 | ||||
| -rw-r--r-- | lua/user/orgmode.lua | 13 |
2 files changed, 233 insertions, 0 deletions
diff --git a/lua/user/icons.lua b/lua/user/icons.lua new file mode 100644 index 0000000..bd039c5 --- /dev/null +++ b/lua/user/icons.lua @@ -0,0 +1,220 @@ +-- https://github.com/microsoft/vscode/blob/main/src/vs/base/common/codicons.ts +-- go to the above and then enter <c-v>u<unicode> and the symbold should appear +-- or go here and upload the font file: https://mathew-kurian.github.io/CharacterMap/ +-- find more here: https://www.nerdfonts.com/cheat-sheet +vim.g.use_nerd_icons = false +if vim.fn.has "mac" == 1 or vim.g.use_nerd_icons then + -- elseif vim.fn.has "mac" == 1 then + return { + kind = { + Text = "", + -- Method = "m", + -- Function = "", + -- Constructor = "", + Method = "", + Function = "", + Constructor = "", + Field = "", + -- Variable = "", + Variable = "", + Class = "", + Interface = "", + -- Module = "", + Module = "", + Property = "", + Unit = "", + Value = "", + Enum = "", + -- Keyword = "", + Keyword = "", + -- Snippet = "", + Snippet = "", + Color = "", + File = "", + Reference = "", + Folder = "", + EnumMember = "", + Constant = "", + Struct = "", + Event = "", + Operator = "", + TypeParameter = "", + }, + type = { + Array = "", + Number = "", + String = "", + Boolean = "蘒", + Object = "", + }, + documents = { + File = "", + Files = "", + Folder = "", + OpenFolder = "", + }, + git = { + Add = "", + Mod = "", + Remove = "", + Ignore = "", + Rename = "", + Diff = "", + Repo = "", + Octoface = "", + }, + ui = { + ArrowClosed = "", + ArrowOpen = "", + Lock = "", + Circle = "", + BigCircle = "", + BigUnfilledCircle = "", + Close = "", + NewFile = "", + Search = "", + Lightbulb = "", + Project = "", + Dashboard = "", + History = "", + Comment = "", + Bug = "", + Code = "", + Telescope = "", + Gear = "", + Package = "", + List = "", + SignIn = "", + SignOut = "", + Check = "", + Fire = "", + Note = "", + BookMark = "", + Pencil = "", + -- ChevronRight = "", + ChevronRight = ">", + Table = "", + Calendar = "", + CloudDownload = "", + }, + diagnostics = { + Error = "", + Warning = "", + Information = "", + Question = "", + Hint = "", + }, + misc = { + Robot = "ﮧ", + Squirrel = "", + Tag = "", + Watch = "", + Smiley = "ﲃ", + Package = "", + }, + } +else + -- פּ ﯟ 蘒練 some other good icons + return { + kind = { + Text = " ", + Method = " ", + Function = " ", + Constructor = " ", + Field = " ", + Variable = " ", + Class = " ", + Interface = " ", + Module = " ", + Property = " ", + Unit = " ", + Value = " ", + Enum = " ", + Keyword = " ", + Snippet = " ", + Color = " ", + File = " ", + Reference = " ", + Folder = " ", + EnumMember = " ", + Constant = " ", + Struct = " ", + Event = " ", + Operator = " ", + TypeParameter = " ", + Misc = " ", + }, + type = { + Array = " ", + Number = " ", + String = " ", + Boolean = " ", + Object = " ", + }, + documents = { + File = " ", + Files = " ", + Folder = " ", + OpenFolder = " ", + }, + git = { + Add = " ", + Mod = " ", + Remove = " ", + Ignore = " ", + Rename = " ", + Diff = " ", + Repo = " ", + Octoface = " ", + }, + ui = { + ArrowClosed = "", + ArrowOpen = "", + Lock = " ", + Circle = " ", + BigCircle = " ", + BigUnfilledCircle = " ", + Close = " ", + NewFile = " ", + Search = " ", + Lightbulb = " ", + Project = " ", + Dashboard = " ", + History = " ", + Comment = " ", + Bug = " ", + Code = " ", + Telescope = " ", + Gear = " ", + Package = " ", + List = " ", + SignIn = " ", + SignOut = " ", + NoteBook = " ", + Check = " ", + Fire = " ", + Note = " ", + BookMark = " ", + Pencil = " ", + ChevronRight = "", + Table = " ", + Calendar = " ", + CloudDownload = " ", + }, + diagnostics = { + Error = " ", + Warning = " ", + Information = " ", + Question = " ", + Hint = " ", + }, + misc = { + Robot = " ", + Squirrel = " ", + Tag = " ", + Watch = " ", + Smiley = " ", + Package = " " + }, + } +end diff --git a/lua/user/orgmode.lua b/lua/user/orgmode.lua new file mode 100644 index 0000000..74ecea2 --- /dev/null +++ b/lua/user/orgmode.lua @@ -0,0 +1,13 @@ +local status_ok, orgmode = pcall(require, "orgmode") +if not status_ok then + return +end + +require('orgmode').setup_ts_grammer() + +local config = require("orgmode").setup({ + org_agenda_files = {'~/org/**/*'}, + org_default_notes_files = {'~/org/refile.org'} +}) + + |
