aboutsummaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-12-26 22:45:47 +0200
committersrdusr <trevorgray@srdusr.com>2022-12-26 22:45:47 +0200
commit5c8cb15da0051b5b611e9f3fbae31c75f6d7c970 (patch)
treeea9fe7fe08b7759ca9bd3158d59d24ee77bf899f /lua/user
parentf704bcce38c857a02d4ed6e370886ab265b32c84 (diff)
downloaddotfiles-5c8cb15da0051b5b611e9f3fbae31c75f6d7c970.tar.gz
dotfiles-5c8cb15da0051b5b611e9f3fbae31c75f6d7c970.zip
Squashed '.config/nvim/' changes from 4d96ae9..f685617
f685617 Fixed find_notes function cfac417 Fixed macros not working git-subtree-dir: .config/nvim git-subtree-split: f68561755f5011f59e333d72ddb4122ca25a8f92
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/opts.lua23
1 files changed, 17 insertions, 6 deletions
diff --git a/lua/user/opts.lua b/lua/user/opts.lua
index 6da4234..57b2949 100644
--- a/lua/user/opts.lua
+++ b/lua/user/opts.lua
@@ -1,13 +1,24 @@
--[[ opts.lua ]]
+-- " Load indent files, to automatically do language-dependent indenting.
+--vim.cmd([[
+-- "filetype plugin indent on
+--]])
+-- Let clipboard register be +
vim.cmd([[
- "filetype plugin indent on " Load indent files, to automatically do language-dependent indenting.
- "autocmd BufEnter * :syntax sync fromstart
- "syntax enable
let g:clipbrdDefaultReg = '+'
- "set nocompatible
- "autocmd FileType lua set comments=s1:---,m:--,ex:--
- nnoremap @ <cmd>execute "noautocmd norm! " . v:count1 . "@" . getcharstr()<cr> " Fast macros without lazyredraw
+]])
+
+--vim.cmd([[
+-- "autocmd BufEnter * :syntax sync fromstart
+-- "syntax enable
+-- "set nocompatible
+-- "autocmd FileType lua set comments=s1:---,m:--,ex:--
+--]])
+
+-- Fast macros without lazyredraw
+vim.cmd([[
+ nnoremap @ <cmd>execute "noautocmd norm! " . v:count1 . "@" . getcharstr()<cr>
xnoremap @ :<C-U>execute "noautocmd '<,'>norm! " . v:count1 . "@" . getcharstr()<cr>
]])