2024-11-03 12:23:54 +00:00
|
|
|
" (Neo)vim Configuration
|
|
|
|
" By Flying_Stitchman 4 Jan 2022
|
2023-08-06 16:25:52 +00:00
|
|
|
|
2024-11-03 12:23:54 +00:00
|
|
|
" Move this to the keymap file at some point later
|
2023-08-06 16:25:52 +00:00
|
|
|
inoremap jk <ESC>
|
2024-02-07 01:21:35 +00:00
|
|
|
xnoremap gy "+y
|
2024-11-03 12:23:54 +00:00
|
|
|
let mapleader = " "
|
|
|
|
" fast move
|
|
|
|
noremap J 6j
|
|
|
|
noremap K 6k
|
|
|
|
noremap H <Cmd>BufferLineCyclePrev<CR>
|
|
|
|
noremap L <Cmd>BufferLineCycleNext<CR>
|
|
|
|
" Moving between windows
|
|
|
|
noremap <C-h> <C-w>h
|
|
|
|
noremap <C-j> <C-w>j
|
|
|
|
noremap <C-k> <C-w>k
|
|
|
|
noremap <C-l> <C-w>l
|
|
|
|
" fix it
|
|
|
|
noremap gh K
|
|
|
|
noremap M J
|
|
|
|
tnoremap <Esc> <C-\><C-n>
|
|
|
|
|
|
|
|
" nvim builtin option config
|
|
|
|
luafile /etc/nixos/config/nvim/lua/options.lua
|
|
|
|
" nvim keymapping
|
|
|
|
luafile /etc/nixos/config/nvim/lua/keymap.lua
|
|
|
|
" Main Config stuffs
|
|
|
|
luafile /etc/nixos/config/nvim/nvim.lua
|