1
0
Fork 0
mirror of https://codeberg.org/Mo8it/server_dotfiles.git synced 2024-12-04 23:50:31 +00:00

Compare commits

...

4 commits

Author SHA1 Message Date
70dc2a44d3 Use rmr 2022-09-09 00:35:52 +02:00
b9afc62ba0 Add Atuin config 2022-09-09 00:17:46 +02:00
8d7f599f2b Replace McFly with Atuin 2022-09-09 00:17:40 +02:00
339430d629 Update config from normal nvim config 2022-09-09 00:17:29 +02:00
3 changed files with 18 additions and 23 deletions

View file

@ -0,0 +1,4 @@
auto_sync = false
sync_address = ""
search_mode = "fuzzy"

View file

@ -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}}'"

View file

@ -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()