1
0

add some stuff

This commit is contained in:
2025-02-18 20:50:08 +01:00
parent e7fcc5a5e3
commit 4b33fbac0b
5 changed files with 93 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
require("ink.remap") require("ink.remap")
require("ink.lsp") require("ink.lsp")
require("ink.tabline")
vim.opt.hlsearch = false -- do not highlight matches vim.opt.hlsearch = false -- do not highlight matches
vim.wo.number = true vim.wo.number = true

View File

@@ -41,6 +41,11 @@ map("v", "p", '"_dP', { desc = "Paste without yanking underlying text" })
map("n", "gl", "`.", { desc = "Jump to the last change in the file" }) map("n", "gl", "`.", { desc = "Jump to the last change in the file" })
map("n", "C-d", "<C-d>zz")
map("n", "C-u", "<C-u>zz")
map("n", "C-f", "<C-f>zz")
map("n", "C-b", "<C-b>zz")
-- map('n', '<C-f>', 'za', { desc = 'Toggle cursor fold' }) -- map('n', '<C-f>', 'za', { desc = 'Toggle cursor fold' })
-- map('n', '<C-down>', 'zm', { desc = 'Toggle all folds at cursor' }) -- map('n', '<C-down>', 'zm', { desc = 'Toggle all folds at cursor' })
-- map('n', '<C-S-down>', 'zM', { desc = 'Close all open folds' }) -- map('n', '<C-S-down>', 'zM', { desc = 'Close all open folds' })

View File

@@ -0,0 +1,27 @@
--- @return string
local function tab_info()
local fname = vim.fn.expand("%:p")
if fname == "" then
return ""
end
return "%#WildMenu# " .. fname .. " %*"
end
--- @return string
local function filestatus()
if vim.bo.modified == true then
return "%#Error# ● %*"
end
if vim.bo.readonly == true then
return "%#Error#  %*"
end
return ""
end
TabLine = function()
return table.concat({
tab_info(),
filestatus(),
})
end
vim.opt.tabline = "%!v:lua.TabLine()"

View File

@@ -37,4 +37,52 @@ return {
require("mini.surround").setup() require("mini.surround").setup()
end, end,
}, },
{
"folke/flash.nvim",
event = "VeryLazy",
---@type Flash.Config
opts = {},
keys = {
{
"zk",
mode = { "n", "x", "o" },
function()
require("flash").jump()
end,
desc = "Flash",
},
{
"Zk",
mode = { "n", "x", "o" },
function()
require("flash").treesitter()
end,
desc = "Flash Treesitter",
},
{
"r",
mode = "o",
function()
require("flash").remote()
end,
desc = "Remote Flash",
},
{
"R",
mode = { "o", "x" },
function()
require("flash").treesitter_search()
end,
desc = "Treesitter Search",
},
{
"<c-s>",
mode = { "c" },
function()
require("flash").toggle()
end,
desc = "Toggle Flash Search",
},
},
},
} }

View File

@@ -13,18 +13,18 @@ alias egrep='egrep --color=auto'
alias d='dirs -v' alias d='dirs -v'
for index ({1..9}) alias "c$index"="cd +${index}"; unset index for index ({1..9}) alias "c$index"="cd +${index}"; unset index
# alias tf="aws-vault exec feedzai-main -d 8h -- terraform" alias tf="aws-vault exec feedzai-main -d 8h -- terraform"
# alias tfi="aws-vault exec feedzai-main -d 8h -- terraform init" alias tfi="aws-vault exec feedzai-main -d 8h -- terraform init"
# alias tfp="aws-vault exec feedzai-main -d 8h -- terraform plan -lock=false" alias tfp="aws-vault exec feedzai-main -d 8h -- terraform plan -lock=false"
# alias tfa="aws-vault exec feedzai-main -d 8h -- terraform apply" alias tfa="aws-vault exec feedzai-main -d 8h -- terraform apply"
# alias tfu="aws-vault exec feedzai-main -d 8h -- terraform get -update" alias tfu="aws-vault exec feedzai-main -d 8h -- terraform get -update"
#
# alias tg="aws-vault exec feedzai-main -d 8h -- terragrunt" alias tg="aws-vault exec feedzai-main -d 8h -- terragrunt"
# alias tgi="aws-vault exec feedzai-main -d 8h -- terragrunt init" alias tgi="aws-vault exec feedzai-main -d 8h -- terragrunt init"
# alias tgp="aws-vault exec feedzai-main -d 8h -- terragrunt plan -lock=false" alias tgp="aws-vault exec feedzai-main -d 8h -- terragrunt plan -lock=false"
# alias tga="aws-vault exec feedzai-main -d 8h -- terragrunt apply" alias tga="aws-vault exec feedzai-main -d 8h -- terragrunt apply"
# alias tgu="aws-vault exec feedzai-main -d 8h -- terragrunt get -update" alias tgu="aws-vault exec feedzai-main -d 8h -- terragrunt get -update"
# alias tgg="aws-vault exec feedzai-main -d 8h -- terragrunt graph-dependencies" alias tgg="aws-vault exec feedzai-main -d 8h -- terragrunt graph-dependencies"
alias idot='dot -Tsvg -Goverlap=scale -Grankdir=RL -Gbgcolor="#282a36" -Ncolor="#f8f8f2" -Ecolor="#f8f8f2" -Nfontcolor="#f8f8f2" -Gfontname="PragmataPro Mono Liga Regular" -Gfontsize=13 -Nfontname="PragmataPro" -Nfontsize=13 -Nshape=box -Earrowhead=normal' alias idot='dot -Tsvg -Goverlap=scale -Grankdir=RL -Gbgcolor="#282a36" -Ncolor="#f8f8f2" -Ecolor="#f8f8f2" -Nfontcolor="#f8f8f2" -Gfontname="PragmataPro Mono Liga Regular" -Gfontsize=13 -Nfontname="PragmataPro" -Nfontsize=13 -Nshape=box -Earrowhead=normal'