From 5c8cb15da0051b5b611e9f3fbae31c75f6d7c970 Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 26 Dec 2022 22:45:47 +0200 Subject: 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 --- lua/plugins/telescope.lua | 2 +- lua/user/opts.lua | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index f878b77..abf4e5e 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -329,7 +329,7 @@ function M.find_notes() prompt_title = " Find Notes", path_display = { "smart" }, search_dirs = { - "~/documents", + "~/documents/notes", }, --cwd = "~documents/notes", layout_strategy = "horizontal", 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 @ execute "noautocmd norm! " . v:count1 . "@" . getcharstr() " 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 @ execute "noautocmd norm! " . v:count1 . "@" . getcharstr() xnoremap @ :execute "noautocmd '<,'>norm! " . v:count1 . "@" . getcharstr() ]]) -- cgit v1.2.3