Compare commits
6 Commits
3236e7e289
...
hypr-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
930b5f7190 | ||
|
|
c2941ef7ea | ||
|
|
be3ec8dc84 | ||
|
|
878bd5748e | ||
|
|
c08b9f3d01 | ||
|
|
764504185d |
87
init.lua
87
init.lua
@@ -4,7 +4,7 @@
|
|||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||||
vim.g.have_nerd_font = false
|
vim.g.have_nerd_font = true
|
||||||
|
|
||||||
|
|
||||||
vim.g.netrw_liststyle = 3
|
vim.g.netrw_liststyle = 3
|
||||||
@@ -67,6 +67,17 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
|
|||||||
|
|
||||||
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
|
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
|
||||||
|
|
||||||
|
|
||||||
|
-- run clear and make in open terminal
|
||||||
|
vim
|
||||||
|
.keymap.set('n','<leader>r','<cmd>TermExec cmd="clear && make"<CR>', { desc = '[r]un make in terminal' })
|
||||||
|
vim
|
||||||
|
.keymap
|
||||||
|
.set('n','<leader>n', '<cmd>ToggleTerm direction=vertical name=compile size=70<CR>', { desc = 'open a [n]ew terminal' })
|
||||||
|
vim.keymap.set('n','<leader>t', '<cmd>ToggleTerm<CR>', {desc = '[T]oggle all terminals'})
|
||||||
|
vim.keymap.set('n','<leader>l', '<cmd>TermExec cmd="eval (history | head -n 1)"<CR>')
|
||||||
|
-- vim.keymap.set('n','<leader>l', '<C-l>a<up><enter><esc><C-h>')
|
||||||
|
|
||||||
-- TIP: Disable arrow keys in normal mode
|
-- TIP: Disable arrow keys in normal mode
|
||||||
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
|
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
|
||||||
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
|
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
|
||||||
@@ -131,25 +142,57 @@ require("lazy").setup({
|
|||||||
install = { colorscheme = { "retrobox" } },
|
install = { colorscheme = { "retrobox" } },
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = true },
|
checker = { enabled = true },
|
||||||
},
|
})
|
||||||
{
|
|
||||||
ui = {
|
require('render-markdown').setup({
|
||||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
file_types = { 'markdown', 'quarto' },
|
||||||
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
render_modes = {'n','c','t'},
|
||||||
icons = vim.g.have_nerd_font and {} or {
|
link = {
|
||||||
cmd = '⌘',
|
enabled = true,
|
||||||
config = '🛠',
|
render_modes = false,
|
||||||
event = '📅',
|
footnote = {
|
||||||
ft = '📂',
|
enabled = true,
|
||||||
init = '⚙',
|
icon = ' ',
|
||||||
keys = '🗝',
|
body = function(ctx)
|
||||||
plugin = '🔌',
|
return ctx.text
|
||||||
runtime = '💻',
|
end,
|
||||||
require = '🌙',
|
superscript = true,
|
||||||
source = '📄',
|
prefix = '',
|
||||||
start = '🚀',
|
suffix = '',
|
||||||
task = '📌',
|
},
|
||||||
lazy = '💤 ',
|
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 = ' ' },
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
0
lua/config/markdown.lua
Normal file
0
lua/config/markdown.lua
Normal file
8
lua/plugins/render-markdown.lua
Normal file
8
lua/plugins/render-markdown.lua
Normal file
@@ -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
|
||||||
|
}
|
||||||
@@ -11,4 +11,9 @@ return {
|
|||||||
'nvim-tree/nvim-web-devicons', -- nerdfont!
|
'nvim-tree/nvim-web-devicons', -- nerdfont!
|
||||||
'nvim-lualine/lualine.nvim', -- lualine
|
'nvim-lualine/lualine.nvim', -- lualine
|
||||||
'TamaMcGlinn/vim-termhere', --simple terminal QOL
|
'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
|
||||||
|
{'RRethy/base16-nvim'},
|
||||||
|
{'vyfor/cord.nvim'} --discord rich presence
|
||||||
}
|
}
|
||||||
|
|||||||
6
lua/plugins/sql.lua
Normal file
6
lua/plugins/sql.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
'xemptuous/sqlua.nvim',
|
||||||
|
lazy = true,
|
||||||
|
cmd = 'SQLua',
|
||||||
|
config = function() require('sqlua').setup() end
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user