summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorbh <qn+git@excalibur.computer>2025-12-03 17:35:13 +0800
committerbh <qn+git@excalibur.computer>2025-12-03 17:35:13 +0800
commit6a0b3e2a9e68bf5942bd9dc81ba8a7dfeea446c3 (patch)
treea79af78b0d93cf8567177b0198c292e547e02f9d /init.lua
parent738c8311b1a6b85822ff035aa50088ef0ff50852 (diff)
Cleaned up even more
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua48
1 files changed, 0 insertions, 48 deletions
diff --git a/init.lua b/init.lua
index 40eb510..3e750c1 100644
--- a/init.lua
+++ b/init.lua
@@ -79,27 +79,12 @@ vim.opt.smartindent = true
-- 🪶 Basic Keybindings
--------------------------------------------------------
--- Keybindings
-
--- Swap Ctrl + C to Esc
--- vim.api.nvim_set_keymap('i', '<C-c>', '<Esc>', { noremap = true, silent = true })
--- vim.api.nvim_set_keymap('i', '<C-g>', '<Esc>', { noremap = true, silent = true })
--- vim.api.nvim_set_keymap('i', '<Esc>', '<C-c>', { noremap = true, silent = true })
-
-
-- Leader Key
vim.g.mapleader = ' '
-- Tree
vim.api.nvim_set_keymap('n', '<leader>t', ':NvimTreeToggle<CR>', { noremap = true, silent = true })
--- vim.keymap.set('n', '<Space>;', function()
--- -- Append a semicolon at the end of the line without moving the cursor
--- local col = vim.fn.col('.') -- save current column
--- vim.cmd('normal! A;') -- go to end of line and append ;
--- vim.fn.cursor(vim.fn.line('.'), col) -- restore cursor
--- end, { noremap = true, silent = true })
-
-- ~/.config/nvim/lua/keymaps.lua
vim.keymap.set('n', '<Space>;', function()
local row, col = unpack(vim.api.nvim_win_get_cursor(0)) -- save cursor
@@ -206,36 +191,3 @@ vim.cmd [[
highlight Folded guifg=#74c4c4 guibg=#003636
highlight FoldColumn guifg=#74c4c4 guibg=#003636
]]
-
--- -- KEEP THIS AS BACKUP
--- -- desired icon background colour
--- local ICON_BG = "#003636"
---
--- local function fix_devicon_bg()
--- for _, name in ipairs(vim.fn.getcompletion('DevIcon', 'highlight')) do
--- local hl = vim.api.nvim_get_hl(0, { name = name })
--- -- Only change background (keep fg)
--- vim.api.nvim_set_hl(0, name, { fg = hl.fg, bg = ICON_BG })
--- end
--- end
---
--- -- Hook on colorscheme change / startup
--- vim.api.nvim_create_autocmd({ "ColorScheme", "VimEnter" }, {
--- callback = function() vim.schedule(fix_devicon_bg) end,
--- })
---
--- -- Hook when buffers enter (so new filetypes show up)
--- vim.api.nvim_create_autocmd("BufEnter", {
--- callback = function() vim.schedule(fix_devicon_bg) end,
--- })
---
--- -- Wrap devicons.refresh
--- local ok, devicons = pcall(require, "nvim-web-devicons")
--- if ok then
--- local orig_refresh = devicons.refresh
--- devicons.refresh = function(...)
--- local result = orig_refresh(...)
--- vim.schedule(fix_devicon_bg)
--- return result
--- end
--- end