mirror of
https://codeberg.org/Mo8it/server_dotfiles.git
synced 2024-12-04 23:50:31 +00:00
Compare commits
4 commits
32ac3f6cc4
...
70dc2a44d3
Author | SHA1 | Date | |
---|---|---|---|
70dc2a44d3 | |||
b9afc62ba0 | |||
8d7f599f2b | |||
339430d629 |
3 changed files with 18 additions and 23 deletions
4
.config/atuin/config.toml
Normal file
4
.config/atuin/config.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
auto_sync = false
|
||||
sync_address = ""
|
||||
|
||||
search_mode = "fuzzy"
|
|
@ -34,14 +34,10 @@ if status is-interactive
|
|||
set -x EDITOR /usr/bin/nvim
|
||||
|
||||
# Setup
|
||||
## McFly
|
||||
set -gx MCFLY_KEY_SCHEME vim
|
||||
set -gx MCFLY_FUZZY 1
|
||||
set -gx MCFLY_RESULTS 25
|
||||
set -gx MCFLY_INTERFACE_VIEW BOTTOM
|
||||
set -gx MCFLY_RESULTS_SORT LAST_RUN
|
||||
set -gx MCFLY_HISTORY_LIMIT 10000
|
||||
mcfly init fish | source
|
||||
## Atuin
|
||||
set -gx ATUIN_NOBIND true
|
||||
atuin init fish | source
|
||||
bind \cr _atuin_search
|
||||
|
||||
# Abbreviations
|
||||
## Replacements
|
||||
|
@ -50,7 +46,7 @@ if status is-interactive
|
|||
## Safety options
|
||||
abbr -ag cp "cp -i"
|
||||
abbr -ag mv "mv -i"
|
||||
abbr -ag rmi "rm -i"
|
||||
abbr -ag rmr "rm -r"
|
||||
|
||||
## Shortcuts
|
||||
abbr -ag pps "podman ps --format '{{.Names}}'"
|
||||
|
|
|
@ -2,19 +2,11 @@
|
|||
--------------
|
||||
|
||||
-- Highlight on yank
|
||||
local function custom_highlight_on_yank()
|
||||
vim.highlight.on_yank({ timeout = 1200 })
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
pattern = "*",
|
||||
callback = custom_highlight_on_yank,
|
||||
})
|
||||
|
||||
-- Autoresize
|
||||
vim.api.nvim_create_autocmd("VimResized", {
|
||||
pattern = "*",
|
||||
command = "wincmd =",
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ timeout = 1200 })
|
||||
end,
|
||||
})
|
||||
|
||||
-- keybindings.lua
|
||||
|
@ -36,11 +28,15 @@ set("", "<Space>", "<Nop>", opts)
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
--
|
||||
|
||||
set("n", "<space>l", cmd("noh"), opts)
|
||||
|
||||
set("v", ">", ">gv", opts)
|
||||
set("v", "<", "<gv", opts)
|
||||
|
||||
set("n", "<C-d>", cmd("bd"), opts)
|
||||
|
||||
-- options.lua
|
||||
--------------
|
||||
|
||||
|
@ -48,6 +44,8 @@ local o = vim.o
|
|||
|
||||
--
|
||||
|
||||
o.mouse = ""
|
||||
|
||||
o.expandtab = true
|
||||
o.tabstop = 4
|
||||
o.shiftwidth = 4
|
||||
|
@ -86,6 +84,3 @@ o.linebreak = true
|
|||
o.laststatus = 3
|
||||
|
||||
o.pumblend = 10
|
||||
|
||||
-- Disable diagnostics
|
||||
vim.diagnostic.disable()
|
||||
|
|
Loading…
Reference in a new issue