chore: change themes

This commit is contained in:
huyjaky
2025-08-24 22:14:35 +07:00
parent 44d2f8999a
commit 04c5dcd06a
15 changed files with 172 additions and 243 deletions

View File

@@ -5,7 +5,7 @@ vim.api.nvim_create_augroup("auto_wrap", { clear = true })
vim.api.nvim_create_augroup("disable_suspend_with_c_z", { clear = true })
vim.api.nvim_create_augroup("clear_last_search", { clear = true })
vim.keymap.set("v", "K", "<Nop>", { silent = true })
-- vim.keymap.set("v", "K", "<Nop>", { silent = true })
vim.api.nvim_create_autocmd("BufEnter", {
desc = "Disable auto insert comment newline",

View File

@@ -23,43 +23,21 @@ return function()
----------- Utility functions -------------
-------------------------------------------
mappings.n["<C-z>"] = { "u", desc = "Undo" }
-- mappings.n["<S-k>"] = { "u", desc = "Undo" }
-- mappings.n["K"] = { function() vim.lsp.buf.hover() end, desc = "Hover symbol details"}
mappings.i["<C-z>"] = { "<C-o>u", desc = "Undo" }
mappings.i["<C-Del>"] = { "<C-o>dw", desc = "Delete a word backward" }
mappings.i["<C-s>"] = { "<Cmd>w!<CR>", desc = "Save file" }
mappings.i["jj"] = { "<Esc>", desc = "Normal mode" }
mappings.i["<S-Tab>"] = { "<C-d>", desc = "Unindent line" }
mappings.v["<Tab>"] = { ">gv", desc = "Indent line" }
mappings.v["<S-Tab>"] = { "<gv", desc = "Unindent line" }
-- Separate cut and delete motion
-- for key, map in pairs {
-- ["d"] = { '"_d', desc = "Delete" },
-- ["X"] = { "d", desc = "Cut" },
-- } do
-- mappings.n[key] = map
-- mappings.v[key] = map
-- end
mappings.v["K"] = { "<Nop>", desc = "Ignore error when hover on visual" }
------ Motions related to jumping or selecting ------
-- for key, map in pairs {
-- ["H"] = { "^", desc = "Jump to beginning of line" },
-- ["L"] = { "$", desc = "Jump to end of line" },
-- ["K"] = { "5k", desc = "Move up 5 lines" },
-- ["J"] = { "5j", desc = "Move down 5 lines" },
-- } do
-- mappings.n[key] = map
-- mappings.v[key] = map
-- end
mappings.n["<C-a>"] = { "ggVG", desc = "Select all lines" }
------ My customs keybinding ------
mappings.n["<leader>xn"] = { "<Cmd>Telescope notify<CR>", desc = "Notifications" }
return mappings
return mappings
end

View File

@@ -21,7 +21,7 @@ return {
tabstop = 2, -- set the number of space in a tab to 4
softtabstop = 2, -- can be differnt from tabstop
showtabline = 0, -- always show tabline
expandtab = true, -- use spaces instead of tab
expandtab = false, -- use spaces instead of tab
undofile = true, -- enable persistent undo
},
-- vim.g.<key>
@@ -29,5 +29,6 @@ return {
-- configure global vim variables (vim.g)
-- NOTE: `mapleader` and `maplocalleader` must be set in the AstroNvim opts or before `lazy.setup`
-- This can be found in the `lua/lazy_setup.lua` file
copilot_no_tab_map = true,
},
}