save
This commit is contained in:
@@ -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")
|
||||
@@ -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" }
|
||||
|
||||
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user