-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kbtz
committed
Feb 20, 2023
1 parent
6d454b7
commit 8a738ff
Showing
17 changed files
with
235 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
src/* linguist-language=bash | ||
cfg/nv/* linguist-language=lua |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--aug remember | ||
-- au! | ||
-- au BufReadPost * | ||
-- \ if line("'\"") > 1 && line("'\"") <= line("$") | ||
-- \ | exe "normal! g`\"" | ||
-- \ | endif | ||
--aug END | ||
-- | ||
--aug gutter | ||
-- au! | ||
-- hi LineNr ctermfg=12 | ||
-- au ModeChanged *:* exe 'hi LineNr ctermfg=' . | ||
-- \ get({ 'n': 12, 'i': 4, 'v': 13, '': 5 }, mode(), 12) | ||
--aug END | ||
-- |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package.path = | ||
vim.fn.stdpath 'config' .. '/?;' | ||
.. package.path | ||
|
||
require 'meta' | ||
|
||
use {opts,keys,lang,rune} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
vim.g.mapleader = " " | ||
function kmap(mode, keys) | ||
for key, cmd in pairs(keys) do | ||
vim.api.nvim_set_keymap(mode, '<leader>' .. key, cmd, {}) | ||
end | ||
end | ||
|
||
kmap('n', { | ||
r = ':w<cr>:lua reuse()<cr>' | ||
}) | ||
|
||
|
||
--let mapleader="-" | ||
-- | ||
--MAP MR | ||
--MAP NR n | ||
--MAP IR i | ||
--MAP VR v | ||
--MAP VL v <leader> | ||
--MAP NL n <leader> | ||
--MAP NLL n <leader><leader> | ||
-- | ||
--NL r :source\ $MYVIMRC<CR> | ||
--NLL r :silent\ w\ <bar>\ source\ $MYVIMRC<CR> none | ||
-- | ||
--NL n :tabe quickOpen | ||
--NL N none createFileFromExplorer workbench.files | ||
-- | ||
--NL <ESC> :q!<CR> closeActiveEditor | ||
-- | ||
--NL s :w<CR> files.save | ||
--NL w :call\ VSCodeNotify('macros.wq',1)<CR> | ||
--NL = none focusSideBar | ||
-- | ||
--NL c :%s///g<left><left><left> startFindReplaceAction editor | ||
--NL y none rename editor | ||
-- | ||
--NL h none showHover editor | ||
--NL g none revealDefinition editor | ||
--NL y none gotoSymbol | ||
--NL p none triggerParameterHints editor | ||
-- | ||
--"" search | ||
--VL v :call VSCodeNotifyVisual('noop', 1)<CR> | ||
--VL / y/\V<C-R>=escape(@",'/\')<CR><CR> | ||
--NR <silent>\ <ESC> :noh<CR> | ||
-- | ||
--"" visual | ||
--VR v <C-V> | ||
--VR i <S-I> | ||
-- | ||
--MR > >> | ||
--MR < << | ||
--MR <C-SPACE> >> | ||
--MR <C-A-SPACE> << | ||
-- | ||
--"" dirty new lines to keep indentation | ||
--NR o ox<BS><ESC> | ||
--NR O Ox<BS><ESC> | ||
-- | ||
--"" moving | ||
--MR <TAB> <Up> | ||
--MR <CR> <Down> | ||
--MR <TAB> <Up> | ||
--MR <CR> <Down> | ||
--MR <Home> gg | ||
--MR <End> G | ||
-- | ||
--"" line move | ||
--NR <S-TAB> <C-Y> | ||
--NR <S-CR> <C-E> | ||
-- | ||
--"" move selection | ||
--MR <M-TAB> none moveLinesUpAction editor | ||
--MR <M-CR> none moveLinesDownAction editor | ||
-- | ||
--"" scroll | ||
--MR <A-TAB> :m-2<CR>== | ||
--MR <A-CR> :m+<CR>== | ||
-- | ||
--"" snek sssss sssss | ||
--MR f <Plug>Sneak_f | ||
--MR F <Plug>Sneak_F | ||
--MR , <Plug>Sneak_; | ||
--MR ; <Plug>Sneak_, | ||
-- | ||
--"" wat ? | ||
--"nnoremap <C-P> a<C-R>0 | ||
--"inoremap <C-P> <C-R>0 | ||
-- | ||
--"inoremap <C-CR> <C-X><C-N> | ||
--"inoremap <S-TAB> <C-X><C-F> | ||
--"inoremap '' ''<left> | ||
--"inoremap ' ' | ||
--"inoremap (( ()<left> | ||
--"inoremap ( ( | ||
--"inoremap [[ []<left> | ||
--"inoremap <leader>[ ${]}<left><left> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
local dotfiles = vim.fn.expand('~f') | ||
local cfg = dotfiles .. '/cfg/' | ||
|
||
vim.filetype.add({ | ||
extension = { | ||
glsl = 'c', | ||
}, | ||
filename = { | ||
[cfg .. 'git'] = 'gitconfig', | ||
}, | ||
pattern = { | ||
[cfg .. 'nv/.*'] = 'lua', | ||
} | ||
}) |
Oops, something went wrong.