aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim
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
commitc453915ee28ae32d06d58907a46127460c8bbe85 (patch)
treec00bbfe0f1bcada4c7eca31cf984bb7c40de4f11 /.config/nvim
parent8d36cd04483c46597f709bd33aa1f246e0f981a2 (diff)
parent5c8cb15da0051b5b611e9f3fbae31c75f6d7c970 (diff)
downloaddotfiles-c453915ee28ae32d06d58907a46127460c8bbe85.tar.gz
dotfiles-c453915ee28ae32d06d58907a46127460c8bbe85.zip
Merge commit 'update nvim'
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/plugins/telescope.lua2
-rw-r--r--.config/nvim/lua/user/opts.lua23
2 files changed, 18 insertions, 7 deletions
diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua
index f878b77..abf4e5e 100644
--- a/.config/nvim/lua/plugins/telescope.lua
+++ b/.config/nvim/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/.config/nvim/lua/user/opts.lua b/.config/nvim/lua/user/opts.lua
index 6da4234..57b2949 100644
--- a/.config/nvim/lua/user/opts.lua
+++ b/.config/nvim/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>
]])