Skip to content

Commit

Permalink
monthly update
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakramani committed May 1, 2022
1 parent 7020749 commit d1384f7
Show file tree
Hide file tree
Showing 9 changed files with 3,851 additions and 12 deletions.
571 changes: 571 additions & 0 deletions cheatsheets/languages/bash.sh

Large diffs are not rendered by default.

452 changes: 452 additions & 0 deletions cheatsheets/languages/vim.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if empty(glob('$HOME/.config/nvim/autoload/plug.vim'))
endif
```
### Dependent packages for nvim
Plugin/packages/language servers such as `pyright`, `ripgrep`, `fd` are installed using `brew install ...`
Plugin/packages/language servers such as `pyright`, `ripgrep`, `fd`, `texlab` are installed using `brew install ...`
### Troubleshooting
Expand Down
6 changes: 3 additions & 3 deletions nvim/.config/nvim/autoload/plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function! plug#end()
endif
let lod = { 'ft': {}, 'map': {}, 'cmd': {} }

if exists('g:did_load_filetypes')
if get(g:, 'did_load_filetypes', 0)
filetype off
endif
for name in g:plugs_order
Expand Down Expand Up @@ -2766,9 +2766,9 @@ function! s:snapshot(force, ...) abort
1
let anchor = line('$') - 3
let names = sort(keys(filter(copy(g:plugs),
\'has_key(v:val, "uri") && !has_key(v:val, "commit") && isdirectory(v:val.dir)')))
\'has_key(v:val, "uri") && isdirectory(v:val.dir)')))
for name in reverse(names)
let sha = s:git_revision(g:plugs[name].dir)
let sha = has_key(g:plugs[name], 'commit') ? g:plugs[name].commit : s:git_revision(g:plugs[name].dir)
if !empty(sha)
call append(anchor, printf("silent! let g:plugs['%s'].commit = '%s'", name, sha))
redraw
Expand Down
Loading

0 comments on commit d1384f7

Please sign in to comment.