diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-04 23:57:35 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-04 23:57:35 +0200 |
| commit | f58a55717e2d04af5ad0372cb0eb292f4fa61d3c (patch) | |
| tree | b39a9398913896f51c7bd0550e2af58a33e5798a /lua/user | |
| parent | 42bee9e81f4051f19e528895f54a50ad14115785 (diff) | |
| download | dotfiles-f58a55717e2d04af5ad0372cb0eb292f4fa61d3c.tar.gz dotfiles-f58a55717e2d04af5ad0372cb0eb292f4fa61d3c.zip | |
Squashed '.config/nvim/' changes from 23457da..193f3c2
193f3c2 Enable plugins.modify-blend
d957520 Changed relative option = 'cursor' in local win function
6789d92 Commented out various lines
45b6b32 Changed colorscheme to nightfly
b5a7704 Changed packer keybindings to <leader> then Capital P and whatever corresponding key needed
f678a1e Commented out plugins.modify-blend
bfad445 Add max_jobs option
e95ddcb Changed relative option = 'cursor' in local win function
e934c6e Add anchor = 'NE' option to local win
e637ecf Moved timelength option to opts.lua
0743806 Moved timelenght option to opts.lua
b848312 Commented out 'last search pattern'
git-subtree-dir: .config/nvim
git-subtree-split: 193f3c2c8f64118403ffde24bb1ce5e6d314409d
Diffstat (limited to 'lua/user')
| -rw-r--r-- | lua/user/keys.lua | 48 | ||||
| -rw-r--r-- | lua/user/opts.lua | 1 | ||||
| -rw-r--r-- | lua/user/pack.lua | 5 |
3 files changed, 28 insertions, 26 deletions
diff --git a/lua/user/keys.lua b/lua/user/keys.lua index f01a0c5..8feee85 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -152,7 +152,7 @@ map("n", "<leader>cd", ":cd %:p:h<CR>:pwd<CR>") map('n', '<leader>o', ':!xdg-open %<cr><cr>') -- Unsets the 'last search pattern' register by hitting return -map("n", "<CR>", "!silent :noh<CR><CR>") +--map("n", "<CR>", "!silent :noh<CR><CR>") -- Toggle completion map("n", "<Leader>tc", ":lua require('user.utils').toggle_completion()<CR>") @@ -266,11 +266,11 @@ map("n", "<C-t>", ":call OpenLastClosed() <CR>") ---------------- Plugin Operations ---------------- -- Packer -map("n", "<leader>pc", "<cmd>PackerCompile<cr>") -map("n", "<leader>pi", "<cmd>PackerInstall<cr>") -map("n", "<leader>ps", "<cmd>PackerSync<cr>") -map("n", "<leader>pS", "<cmd>PackerStatus<cr>") -map("n", "<leader>pu", "<cmd>PackerUpdate<cr>") +map("n", "<leader>Pc", "<cmd>PackerCompile<cr>") +map("n", "<leader>Pi", "<cmd>PackerInstall<cr>") +map("n", "<leader>Ps", "<cmd>PackerSync<cr>") +map("n", "<leader>PS", "<cmd>PackerStatus<cr>") +map("n", "<leader>Pu", "<cmd>PackerUpdate<cr>") -- Tmux navigation (aserowy/tmux.nvim) map('n', '<C-h>', '<CMD>NavigatorLeft<CR>') @@ -358,23 +358,23 @@ end map("n", "<leader>ww", ":lua Toggle_autopairs()<CR>", term_opts) -- Tabularize -vim.cmd([[ - vnoremap <expr> <Leader>mm ':Tabularize /^\s*\S.*\zs' . split(&commentstring, '%s')[0] . "<CR>" - nnoremap <expr> <Leader>mm ':Tabularize /^\s*\S.*\zs' . split(&commentstring, '%s')[0] . "<CR>" - "nnoremap <leader>i mc40A <esc>080lDgelD`cP - "vnoremap <leader>ii mc0f-20i<Space><Esc>`cdt=j -]]) +--vim.cmd([[ +-- vnoremap <expr> <Leader>mm ':Tabularize /^\s*\S.*\zs' . split(&commentstring, '%s')[0] . "<CR>" +-- nnoremap <expr> <Leader>mm ':Tabularize /^\s*\S.*\zs' . split(&commentstring, '%s')[0] . "<CR>" +-- "nnoremap <leader>i mc40A <esc>080lDgelD`cP +-- "vnoremap <leader>ii mc0f-20i<Space><Esc>`cdt=j +--]]) -- EasyAlign -vim.cmd([[ - " Start interactive EasyAlign in visual mode (e.g. vipga) - xmap ga <Plug>(EasyAlign) - " Start interactive EasyAlign for a motion/text object (e.g. gaip) - nmap ga <Plug>(EasyAlign) - if !exists('g:easy_align_delimiters') - let g:easy_align_delimiters = {} - endif - let g:easy_align_delimiters['--'] = { 'pattern': '--', 'ignore_groups': ['String'] } - nnoremap <F1> 21A <Esc>d21\| - imap <F1> <Esc><F1>a -]]) +--vim.cmd([[ +-- " Start interactive EasyAlign in visual mode (e.g. vipga) +-- xmap ga <Plug>(EasyAlign) +-- " Start interactive EasyAlign for a motion/text object (e.g. gaip) +-- nmap ga <Plug>(EasyAlign) +-- if !exists('g:easy_align_delimiters') +-- let g:easy_align_delimiters = {} +-- endif +-- let g:easy_align_delimiters['--'] = { 'pattern': '--', 'ignore_groups': ['String'] } +-- nnoremap <F1> 21A <Esc>d21\| +-- imap <F1> <Esc><F1>a +--]]) diff --git a/lua/user/opts.lua b/lua/user/opts.lua index 13e9c1c..90fe0f2 100644 --- a/lua/user/opts.lua +++ b/lua/user/opts.lua @@ -25,6 +25,7 @@ vim.cmd([[ -- Environment --vim.opt.shell = "zsh" -- +vim.o.updatetime = 250 vim.o.shell = "/bin/zsh" vim.scriptencoding = "utf-8" -- vim.opt.encoding = "utf-8" -- diff --git a/lua/user/pack.lua b/lua/user/pack.lua index 43b7a36..1a37d8b 100644 --- a/lua/user/pack.lua +++ b/lua/user/pack.lua @@ -15,7 +15,7 @@ if fn.empty(fn.glob(install_path)) > 0 then vim.cmd([[packadd packer.nvim]]) end --- Autocommand that reloads neovim whenever you save the plugins.lua file +-- Autocommand that reloads neovim whenever you save this file vim.cmd([[ augroup packer_user_config autocmd! @@ -29,9 +29,10 @@ if not status_ok then return end --- Have packer use a popup window +-- Have packer use a popup window and set a maximum number of jobs packer.init({ auto_reload_compiled = true, + max_jobs = 90, display = { open_fn = function() return require("packer.util").float({ border = "rounded" }) |
