NVIM
- adapting Transparency from Terminal
YAZI
- Keymaps for work related folders
ZSH
- updated aliases
This commit is contained in:
@@ -44,7 +44,7 @@ keymap("n", "j", "gj", opts)
|
||||
keymap("n", "k", "gk", opts)
|
||||
|
||||
-- toggle relativenumber
|
||||
keymap("n", "<leader>r", ":set invrnu<cr>", opts)
|
||||
keymap("n", "<leader>r", ":set number invrnu<cr>", opts)
|
||||
|
||||
-- easy folding
|
||||
-- toggle fold under cursor no jumping around
|
||||
@@ -55,8 +55,8 @@ keymap("v", ">", ">gv", opts)
|
||||
keymap("v", "<", "<gv", opts)
|
||||
|
||||
-- -- move text up and down in visual block mode
|
||||
-- keymap("x", "<s-j>", ":move '>+1<CR>gv-gv", opts)
|
||||
-- keymap("x", "<s-k>", ":move '<-2<CR>gv-gv", opts)
|
||||
keymap("x", "<s-j>", ":move '>+1<CR>gv-gv", opts)
|
||||
keymap("x", "<s-k>", ":move '<-2<CR>gv-gv", opts)
|
||||
|
||||
-- navigate buffers
|
||||
keymap("n", "<s-l>", ":bnext<cr>", opts)
|
||||
@@ -70,7 +70,8 @@ keymap("c", "<c-k>", "<c-p>", opts)
|
||||
keymap("n", "<leader>x", [[:!xdg-open %<cr><cr>]], opts)
|
||||
|
||||
-- -- no ex mode for me
|
||||
-- keymap("n", "Q", "<nop>", opts)
|
||||
keymap("n", "Q", "gq", opts)
|
||||
keymap("x", "Q", "gq", opts)
|
||||
|
||||
-- prevent accidentally record functionality
|
||||
keymap("n", "q", "<nop>", opts)
|
||||
@@ -105,3 +106,5 @@ keymap("c", "w!!", [[w !sudo tee %]], opt)
|
||||
|
||||
-- diff since last save
|
||||
keymap("n", "<leader>df", [[:w !diff % -<cr>]], opt)
|
||||
|
||||
|
||||
|
||||
@@ -102,20 +102,6 @@ require('packer').startup(function(use)
|
||||
require('plugins.vimtex')
|
||||
-- }}}
|
||||
|
||||
-- {{{ Telescope
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = { {'nvim-lua/plenary.nvim'} },
|
||||
config = function()
|
||||
-- Leader key mappings for Telescope
|
||||
vim.api.nvim_set_keymap('n', '<leader>ff', ':Telescope find_files<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fg', ':Telescope live_grep<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fb', ':Telescope buffers<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fh', ':Telescope help_tags<CR>', { noremap = true, silent = true })
|
||||
end
|
||||
}
|
||||
-- }}}
|
||||
|
||||
-- {{{ Outline
|
||||
use {
|
||||
'hedyhli/outline.nvim',
|
||||
@@ -130,7 +116,27 @@ require('packer').startup(function(use)
|
||||
require('orgmode').setup{}
|
||||
end
|
||||
}
|
||||
--}}}
|
||||
--}}}
|
||||
|
||||
-- {{{ Autocompletions
|
||||
use 'hrsh7th/nvim-cmp'
|
||||
use 'hrsh7th/cmp-nvim-lsp'
|
||||
-- }}}
|
||||
|
||||
-- {{{ Telescope
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = { {'nvim-lua/plenary.nvim'} },
|
||||
config = function()
|
||||
-- Leader key mappings for Telescope
|
||||
vim.api.nvim_set_keymap('n', '<leader>ff', ':Telescope find_files<CR>'
|
||||
, { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fg', ':Telescope live_grep<CR>',
|
||||
{ noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fb', ':Telescope buffers<CR>', {
|
||||
noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>fh', ':Telescope help_tags<CR>',
|
||||
{ noremap = true, silent = true })
|
||||
end
|
||||
}
|
||||
end)
|
||||
|
||||
|
||||
@@ -7,3 +7,9 @@ vim.opt.expandtab = true -- Use spaces instead of tabs
|
||||
vim.cmd [[colorscheme tokyonight]]
|
||||
|
||||
vim.cmd [[set spelllang=en]]
|
||||
|
||||
|
||||
vim.cmd([[
|
||||
highlight Normal ctermbg=none guibg=none
|
||||
highlight NonText ctermbg=none guibg=none
|
||||
]])
|
||||
|
||||
@@ -126,10 +126,11 @@ keymap = [
|
||||
# Goto
|
||||
{ on = [ "g", "h" ], run = "cd ~", desc = "Go home" },
|
||||
{ on = [ "g", "c" ], run = "cd ~/.config", desc = "Goto ~/.config" },
|
||||
{ on = [ "g", "a" ], run = "cd ~/tnh", desc = "Goto AK127132" },
|
||||
{ on = [ "g", "i" ], run = "cd ~/tng", desc = "Goto Intern" },
|
||||
{ on = [ "g", "d" ], run = "cd ~/Downloads", desc = "Goto ~/Downloads" },
|
||||
{ on = [ "g", "t" ], run = "cd ~/Torrents", desc = "Goto ~/Torrents" },
|
||||
{ on = [ "g", "t" ], run = "cd ~/Torrents", desc = "Goto ~/Torrents" },
|
||||
{ on = [ "g", "a" ], run = "cd /Volumes/AK127132", desc = "Goto AK127132" },
|
||||
{ on = [ "g", "i" ], run = "cd /Volumes/intern", desc = "Goto intern" },
|
||||
{ on = [ "g", "o" ], run = "cd ~/Library/Mobile\\ Documents/iCloud~md~obsidian/Documents/Privat", desc = "Goto ~/Obsidian" },
|
||||
{ on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Jump interactively" },
|
||||
|
||||
@@ -337,7 +338,7 @@ keymap = [
|
||||
|
||||
# Help
|
||||
{ on = "~", run = "help", desc = "Open help" },
|
||||
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||
{ on = "<F3>", run = "help", desc = "Open help" },
|
||||
]
|
||||
|
||||
[help]
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
max_width=1000
|
||||
max_height=1500
|
||||
|
||||
@@ -29,8 +29,8 @@ export KEYTIMEOUT=1
|
||||
# Aliases
|
||||
alias h="cd ~"
|
||||
alias cl="clear"
|
||||
alias tnh="cd /Volumes/TNHOME"
|
||||
alias tng="cd /Volumes/TNGROUP"
|
||||
alias tnh="cd /Volumes/AK127132"
|
||||
alias tng="cd /Volumes/intern"
|
||||
alias l='eza --color=always --icons -la --group-directories-first'
|
||||
alias n='nvim'
|
||||
alias ne='nvim ~/.zshenv'
|
||||
|
||||
Reference in New Issue
Block a user