Skip to content

Commit

Permalink
lunatic++
Browse files Browse the repository at this point in the history
  • Loading branch information
kbtz committed Feb 20, 2023
1 parent 6d454b7 commit 8a738ff
Show file tree
Hide file tree
Showing 17 changed files with 235 additions and 196 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/* linguist-language=bash
cfg/nv/* linguist-language=lua
15 changes: 0 additions & 15 deletions cfg/nv/auc.vim

This file was deleted.

15 changes: 15 additions & 0 deletions cfg/nv/auto
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
--
13 changes: 0 additions & 13 deletions cfg/nv/cfg.vim

This file was deleted.

56 changes: 0 additions & 56 deletions cfg/nv/env.vim

This file was deleted.

6 changes: 0 additions & 6 deletions cfg/nv/ext.vim

This file was deleted.

7 changes: 7 additions & 0 deletions cfg/nv/init.lua
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}
12 changes: 0 additions & 12 deletions cfg/nv/init.vim

This file was deleted.

86 changes: 0 additions & 86 deletions cfg/nv/kbd.vim

This file was deleted.

98 changes: 98 additions & 0 deletions cfg/nv/keys
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>
14 changes: 14 additions & 0 deletions cfg/nv/lang
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',
}
})
Loading

0 comments on commit 8a738ff

Please sign in to comment.