2024-11-03 04:23:54 -08:00
|
|
|
" (Neo)vim Configuration
|
|
|
|
" By Flying_Stitchman 4 Jan 2022
|
2023-08-06 09:25:52 -07:00
|
|
|
|
2024-11-03 04:23:54 -08:00
|
|
|
" Move this to the keymap file at some point later
|
2023-08-06 09:25:52 -07:00
|
|
|
inoremap jk <ESC>
|
2024-02-06 17:21:35 -08:00
|
|
|
xnoremap gy "+y
|
2024-11-03 04:23:54 -08: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
|