From c2941ef7ea0079b215244380df1f695bc18b67a0 Mon Sep 17 00:00:00 2001 From: river Date: Tue, 3 Feb 2026 22:10:50 -0600 Subject: [PATCH] configured for hyprland --- init.lua | 75 ++++++++++++++++++++++++--------- lua/config/markdown.lua | 0 lua/plugins/render-markdown.lua | 8 ++++ lua/plugins/simple.lua | 4 +- 4 files changed, 65 insertions(+), 22 deletions(-) create mode 100644 lua/config/markdown.lua create mode 100644 lua/plugins/render-markdown.lua diff --git a/init.lua b/init.lua index 56d5b2f..450a084 100644 --- a/init.lua +++ b/init.lua @@ -72,6 +72,7 @@ vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' } vim.keymap.set('n','r','TermExec cmd="clear && make"', { desc = '[r]un make in terminal' }) vim.keymap.set('n','n', 'ToggleTerm direction=vertical name=compile size=70', { desc = 'open a [n]ew terminal' }) vim.keymap.set('n','t', 'ToggleTerm', {desc = '[T]oggle all terminals'}) +vim.keymap.set('n','l', ':wa') -- TIP: Disable arrow keys in normal mode vim.keymap.set('n', '', 'echo "Use h to move!!"') @@ -137,25 +138,57 @@ require("lazy").setup({ install = { colorscheme = { "retrobox" } }, -- automatically check for plugin updates checker = { enabled = true }, -}, -{ - ui = { - -- If you are using a Nerd Font: set icons to an empty table which will use the - -- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table - icons = vim.g.have_nerd_font and {} or { - cmd = '⌘', - config = '🛠', - event = '📅', - ft = '📂', - init = '⚙', - keys = '🗝', - plugin = '🔌', - runtime = '💻', - require = '🌙', - source = '📄', - start = '🚀', - task = '📌', - lazy = '💤 ', - }, - }, +}) + +require('render-markdown').setup({ + file_types = { 'markdown', 'quarto' }, + render_modes = {'n','c','t'}, + link = { + enabled = true, + render_modes = false, + footnote = { + enabled = true, + icon = '󰯔 ', + body = function(ctx) + return ctx.text + end, + superscript = true, + prefix = '', + suffix = '', + }, + image = '󰥶 ', + email = '󰀓 ', + hyperlink = '󰌹 ', + highlight = 'RenderMarkdownLink', + highlight_title = 'RenderMarkdownLinkTitle', + wiki = { + enabled = true, + icon = '󱗖 ', + body = function() + return nil + end, + highlight = 'RenderMarkdownWikiLink', + scope_highlight = nil, + }, + custom = { + web = { pattern = '^http', icon = '󰖟 ' }, + apple = { pattern = 'apple%.com', icon = ' ' }, + discord = { pattern = 'discord%.com', icon = '󰙯 ' }, + github = { pattern = 'github%.com', icon = '󰊤 ' }, + gitlab = { pattern = 'gitlab%.com', icon = '󰮠 ' }, + google = { pattern = 'google%.com', icon = '󰊭 ' }, + hackernews = { pattern = 'ycombinator%.com', icon = ' ' }, + linkedin = { pattern = 'linkedin%.com', icon = '󰌻 ' }, + microsoft = { pattern = 'microsoft%.com', icon = ' ' }, + neovim = { pattern = 'neovim%.io', icon = ' ' }, + reddit = { pattern = 'reddit%.com', icon = '󰑍 ' }, + slack = { pattern = 'slack%.com', icon = '󰒱 ' }, + stackoverflow = { pattern = 'stackoverflow%.com', icon = '󰓌 ' }, + steam = { pattern = 'steampowered%.com', icon = ' ' }, + twitter = { pattern = 'x%.com', icon = ' ' }, + wikipedia = { pattern = 'wikipedia%.org', icon = '󰖬 ' }, + youtube = { pattern = 'youtube[^.]*%.com', icon = '󰗃 ' }, + youtube_short = { pattern = 'youtu%.be', icon = '󰗃 ' }, + }, + }, }) diff --git a/lua/config/markdown.lua b/lua/config/markdown.lua new file mode 100644 index 0000000..e69de29 diff --git a/lua/plugins/render-markdown.lua b/lua/plugins/render-markdown.lua new file mode 100644 index 0000000..1ca95fc --- /dev/null +++ b/lua/plugins/render-markdown.lua @@ -0,0 +1,8 @@ +return { + 'MeanderingProgrammer/render-markdown.nvim', + dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim' }, -- if you use the mini.nvim suite + -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.icons' }, -- if you use standalone mini plugins + -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons + ---@module 'render-markdown' +-- ---@type render.md.UserConfig +} diff --git a/lua/plugins/simple.lua b/lua/plugins/simple.lua index 32b4ae2..7055272 100644 --- a/lua/plugins/simple.lua +++ b/lua/plugins/simple.lua @@ -13,5 +13,7 @@ return { 'TamaMcGlinn/vim-termhere', --simple terminal QOL "rktjmp/lush.nvim", -- better theme editing { "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart - {'akinsho/toggleterm.nvim', version = "*", config = true} -- terminal toggling and commands + {'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands + {'RRethy/base16-nvim'}, + {'vyfor/cord.nvim'} --discord rich presence }