This commit is contained in:
2025-01-07 19:28:07 -05:00
parent 4053990dcd
commit de77f6ab4b
3 changed files with 2 additions and 25 deletions

View File

@@ -1,17 +0,0 @@
local fn = vim.fn
fn.matchadd("Comment", ";;.*")
fn.matchadd("Number", "\\v[-+]?[0-9]+") -- Matches integers
fn.matchadd("Float", "\\v[-+]?[0-9]*\\.[0-9]+") -- Matches floats
fn.matchadd("String", '".*"')
fn.matchadd("Type", "\\v\\<\\(int|string\\)\\>")
fn.matchadd(
"Operator",
"\\v(\\+\\+|--|==|!=|<=|>=|<|>|\\|\\||&&|!|~|\\^|\\||&|=|<<|>>|\\+=|-=|\\*=|/=|%=|<<=|>>=|&=|\\|=|\\^=|\\+|-|\\*|/|%)"
)
fn.matchadd("Keyword", "SYSCALL")
fn.matchadd("Function", "exit")

View File

@@ -35,12 +35,7 @@ return {
vim.keymap.set("n", "<space>fg", builtin.live_grep)
vim.keymap.set("n", "<space>/", builtin.current_buffer_fuzzy_find)
vim.keymap.set("n", "<space>gw", builtin.grep_string)
vim.keymap.set("n", "<space>fa", function()
---@diagnostic disable-next-line: param-type-mismatch
builtin.find_files { cwd = vim.fs.joinpath(vim.fn.stdpath "data", "lazy") }
end)
vim.keymap.set("n", "<space>fw", builtin.grep_string)
vim.keymap.set("n", "<space>fn", function()
builtin.find_files { cwd = vim.fn.stdpath "config" }

View File

@@ -21,8 +21,7 @@ map("n", "<C-u>", "<C-u>zz")
map("n", "-", ":Oil<CR>")
-- terminal --
map("n", "<leader>t", "<C-z>")
map("t", "<Esc><Esc>", "<C-\\><C-n>")
map("t", "<C-k>", "<C-\\><C-n><C-w><C-k>")
-- Exec
map("n", "<leader>x", ":.lua<CR>")