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)
|
keymap("n", "k", "gk", opts)
|
||||||
|
|
||||||
-- toggle relativenumber
|
-- toggle relativenumber
|
||||||
keymap("n", "<leader>r", ":set invrnu<cr>", opts)
|
keymap("n", "<leader>r", ":set number invrnu<cr>", opts)
|
||||||
|
|
||||||
-- easy folding
|
-- easy folding
|
||||||
-- toggle fold under cursor no jumping around
|
-- toggle fold under cursor no jumping around
|
||||||
@@ -55,8 +55,8 @@ keymap("v", ">", ">gv", opts)
|
|||||||
keymap("v", "<", "<gv", opts)
|
keymap("v", "<", "<gv", opts)
|
||||||
|
|
||||||
-- -- move text up and down in visual block mode
|
-- -- move text up and down in visual block mode
|
||||||
-- keymap("x", "<s-j>", ":move '>+1<CR>gv-gv", opts)
|
keymap("x", "<s-j>", ":move '>+1<CR>gv-gv", opts)
|
||||||
-- keymap("x", "<s-k>", ":move '<-2<CR>gv-gv", opts)
|
keymap("x", "<s-k>", ":move '<-2<CR>gv-gv", opts)
|
||||||
|
|
||||||
-- navigate buffers
|
-- navigate buffers
|
||||||
keymap("n", "<s-l>", ":bnext<cr>", opts)
|
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)
|
keymap("n", "<leader>x", [[:!xdg-open %<cr><cr>]], opts)
|
||||||
|
|
||||||
-- -- no ex mode for me
|
-- -- no ex mode for me
|
||||||
-- keymap("n", "Q", "<nop>", opts)
|
keymap("n", "Q", "gq", opts)
|
||||||
|
keymap("x", "Q", "gq", opts)
|
||||||
|
|
||||||
-- prevent accidentally record functionality
|
-- prevent accidentally record functionality
|
||||||
keymap("n", "q", "<nop>", opts)
|
keymap("n", "q", "<nop>", opts)
|
||||||
@@ -105,3 +106,5 @@ keymap("c", "w!!", [[w !sudo tee %]], opt)
|
|||||||
|
|
||||||
-- diff since last save
|
-- diff since last save
|
||||||
keymap("n", "<leader>df", [[:w !diff % -<cr>]], opt)
|
keymap("n", "<leader>df", [[:w !diff % -<cr>]], opt)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,105 +2,126 @@
|
|||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
require('packer').startup(function(use)
|
require('packer').startup(function(use)
|
||||||
|
|
||||||
-- {{{ Packer manages itself
|
-- {{{ Packer manages itself
|
||||||
use 'wbthomason/packer.nvim' -- Packer manages itself
|
use 'wbthomason/packer.nvim' -- Packer manages itself
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ VIM AutoSave
|
-- {{{ VIM AutoSave
|
||||||
use({
|
use({
|
||||||
'okuuva/auto-save.nvim',
|
'okuuva/auto-save.nvim',
|
||||||
tag = 'v1*',
|
tag = 'v1*',
|
||||||
config = function()
|
config = function()
|
||||||
require('auto-save').setup({
|
require('auto-save').setup({
|
||||||
-- your config goes here
|
-- your config goes here
|
||||||
-- or just leave it empty :)
|
-- or just leave it empty :)
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Headlines for Markdown and TeX
|
-- {{{ Headlines for Markdown and TeX
|
||||||
use {
|
use {
|
||||||
'lukas-reineke/headlines.nvim',
|
'lukas-reineke/headlines.nvim',
|
||||||
after = 'nvim-treesitter',
|
after = 'nvim-treesitter',
|
||||||
config = function()
|
config = function()
|
||||||
require('headlines').setup()
|
require('headlines').setup()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Nvim-Tree
|
-- {{{ Nvim-Tree
|
||||||
use {
|
use {
|
||||||
'nvim-tree/nvim-tree.lua',
|
'nvim-tree/nvim-tree.lua',
|
||||||
config = function()
|
config = function()
|
||||||
require('plugins.nvim-tree').setup()
|
require('plugins.nvim-tree').setup()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Themes
|
-- {{{ Themes
|
||||||
use 'gruvbox-community/gruvbox' -- Gruvbox theme
|
use 'gruvbox-community/gruvbox' -- Gruvbox theme
|
||||||
use 'folke/tokyonight.nvim' -- Tokyo Night theme
|
use 'folke/tokyonight.nvim' -- Tokyo Night theme
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Treesitter
|
-- {{{ Treesitter
|
||||||
use {
|
use {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
run = ':TSUpdate' -- Keep parsers up to date
|
run = ':TSUpdate' -- Keep parsers up to date
|
||||||
}
|
}
|
||||||
require('plugins.treesitter')
|
require('plugins.treesitter')
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Rainbow Delimiters
|
-- {{{ Rainbow Delimiters
|
||||||
use 'HiPhish/rainbow-delimiters.nvim'
|
use 'HiPhish/rainbow-delimiters.nvim'
|
||||||
require('plugins.rainbow_delimiters')
|
require('plugins.rainbow_delimiters')
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Git Integration
|
-- {{{ Git Integration
|
||||||
use 'lewis6991/gitsigns.nvim' -- Git decorations in the gutter
|
use 'lewis6991/gitsigns.nvim' -- Git decorations in the gutter
|
||||||
use 'tpope/vim-fugitive' -- Git commands in Neovim
|
use 'tpope/vim-fugitive' -- Git commands in Neovim
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Status Line
|
-- {{{ Status Line
|
||||||
use {
|
use {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
requires = { 'kyazdani42/nvim-web-devicons', opt = true } -- Optional icons
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true } -- Optional icons
|
||||||
}
|
}
|
||||||
require('plugins.lualine')
|
require('plugins.lualine')
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ HardTime
|
-- {{{ HardTime
|
||||||
use {
|
use {
|
||||||
'm4xshen/hardtime.nvim',
|
'm4xshen/hardtime.nvim',
|
||||||
requires = { 'MunifTanjim/nui.nvim' }
|
requires = { 'MunifTanjim/nui.nvim' }
|
||||||
}
|
}
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ FZF
|
-- {{{ FZF
|
||||||
use {
|
use {
|
||||||
'junegunn/fzf',
|
'junegunn/fzf',
|
||||||
run = function() vim.fn['fzf#install']() end
|
run = function() vim.fn['fzf#install']() end
|
||||||
}
|
}
|
||||||
use 'junegunn/fzf.vim'
|
use 'junegunn/fzf.vim'
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Cool Startup Dashboard
|
-- {{{ Cool Startup Dashboard
|
||||||
use {
|
use {
|
||||||
'glepnir/dashboard-nvim',
|
'glepnir/dashboard-nvim',
|
||||||
requires = { 'kyazdani42/nvim-web-devicons' }
|
requires = { 'kyazdani42/nvim-web-devicons' }
|
||||||
}
|
}
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Productivity
|
-- {{{ Productivity
|
||||||
use 'numToStr/Comment.nvim'
|
use 'numToStr/Comment.nvim'
|
||||||
use 'windwp/nvim-autopairs'
|
use 'windwp/nvim-autopairs'
|
||||||
use 'tpope/vim-surround'
|
use 'tpope/vim-surround'
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ LaTeX
|
-- {{{ LaTeX
|
||||||
use 'lervag/vimtex'
|
use 'lervag/vimtex'
|
||||||
require('plugins.vimtex')
|
require('plugins.vimtex')
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Outline
|
||||||
|
use {
|
||||||
|
'hedyhli/outline.nvim',
|
||||||
|
config = function()
|
||||||
|
require('plugins.outline').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
-- }}}
|
||||||
|
|
||||||
|
-- {{{ Org-Mode
|
||||||
|
use {'nvim-orgmode/orgmode', config = function()
|
||||||
|
require('orgmode').setup{}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
--}}}
|
||||||
|
|
||||||
|
-- {{{ Autocompletions
|
||||||
|
use 'hrsh7th/nvim-cmp'
|
||||||
|
use 'hrsh7th/cmp-nvim-lsp'
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Telescope
|
-- {{{ Telescope
|
||||||
use {
|
use {
|
||||||
@@ -108,29 +129,14 @@ require('packer').startup(function(use)
|
|||||||
requires = { {'nvim-lua/plenary.nvim'} },
|
requires = { {'nvim-lua/plenary.nvim'} },
|
||||||
config = function()
|
config = function()
|
||||||
-- Leader key mappings for Telescope
|
-- 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>ff', ':Telescope find_files<CR>'
|
||||||
vim.api.nvim_set_keymap('n', '<leader>fg', ':Telescope live_grep<CR>', { noremap = true, silent = true })
|
, { 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>fg', ':Telescope live_grep<CR>',
|
||||||
vim.api.nvim_set_keymap('n', '<leader>fh', ':Telescope help_tags<CR>', { noremap = true, silent = true })
|
{ 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
|
||||||
}
|
}
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{ Outline
|
|
||||||
use {
|
|
||||||
'hedyhli/outline.nvim',
|
|
||||||
config = function()
|
|
||||||
require('plugins.outline').setup()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- {{{ Org-Mode
|
|
||||||
use {'nvim-orgmode/orgmode', config = function()
|
|
||||||
require('orgmode').setup{}
|
|
||||||
end
|
|
||||||
}
|
|
||||||
--}}}
|
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
@@ -7,3 +7,9 @@ vim.opt.expandtab = true -- Use spaces instead of tabs
|
|||||||
vim.cmd [[colorscheme tokyonight]]
|
vim.cmd [[colorscheme tokyonight]]
|
||||||
|
|
||||||
vim.cmd [[set spelllang=en]]
|
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
|
# Goto
|
||||||
{ on = [ "g", "h" ], run = "cd ~", desc = "Go home" },
|
{ on = [ "g", "h" ], run = "cd ~", desc = "Go home" },
|
||||||
{ on = [ "g", "c" ], run = "cd ~/.config", desc = "Goto ~/.config" },
|
{ 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", "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", "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", "o" ], run = "cd ~/Library/Mobile\\ Documents/iCloud~md~obsidian/Documents/Privat", desc = "Goto ~/Obsidian" },
|
||||||
{ on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Jump interactively" },
|
{ on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Jump interactively" },
|
||||||
|
|
||||||
@@ -337,7 +338,7 @@ keymap = [
|
|||||||
|
|
||||||
# Help
|
# Help
|
||||||
{ on = "~", run = "help", desc = "Open help" },
|
{ on = "~", run = "help", desc = "Open help" },
|
||||||
{ on = "<F1>", run = "help", desc = "Open help" },
|
{ on = "<F3>", run = "help", desc = "Open help" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[help]
|
[help]
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
max_width=1000
|
||||||
|
max_height=1500
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ export KEYTIMEOUT=1
|
|||||||
# Aliases
|
# Aliases
|
||||||
alias h="cd ~"
|
alias h="cd ~"
|
||||||
alias cl="clear"
|
alias cl="clear"
|
||||||
alias tnh="cd /Volumes/TNHOME"
|
alias tnh="cd /Volumes/AK127132"
|
||||||
alias tng="cd /Volumes/TNGROUP"
|
alias tng="cd /Volumes/intern"
|
||||||
alias l='eza --color=always --icons -la --group-directories-first'
|
alias l='eza --color=always --icons -la --group-directories-first'
|
||||||
alias n='nvim'
|
alias n='nvim'
|
||||||
alias ne='nvim ~/.zshenv'
|
alias ne='nvim ~/.zshenv'
|
||||||
|
|||||||
Reference in New Issue
Block a user