118 Commits (main)

Author SHA1 Message Date
bhagwan 93ca0a3adf git_status preview now shows deleted and untracked files 3 years ago
bhagwan 7b9fe4495e 'git_xxx' now supports 'cwd' option (closes issue #82) 3 years ago
bhagwan 1b1de47c57 even better method for filetype detection, ty @jdrouhard! 3 years ago
bhagwan 96bbe33406 better filetype detection, closes issue #74 3 years ago
bhagwan 5472c41f20 bugfix: live_grep with underlying 'grep' 3 years ago
bhagwan 46f186c954 adjust fzf win size when closing preview (issue #73) 3 years ago
francisco souza 9dbaad9f94 Fix empty line in the builtin previewer
Whenever the file ends with newline, the builtin previewer was adding an
empty line at the end of the file. That's a side effect splitting and
rejoining the lines with \n. Basically, when we split a\nb\nc\n we get
{'a', 'b', 'c', ''}, then nvim_buf_set_lines treats each item in the
table as a line, and inserts an empty line at the end.

We do need to account for files that don't end with a new line though,
hence the check.

I don't have a way to test the \r\n logic locally, no Windows hosts
around, but it should work too.
3 years ago
bhagwan 757d6392f0 added builtin previewer options for syntax bytes/lines limits 3 years ago
bhagwan 37a6f3b999 closes issue #62 3 years ago
francisco souza 941064ed5b Set cursorlineopt=both in the builtin previewer
This way, if the user has defined cursorlineopt=number elsewhere, we
override it to behave as intended.
3 years ago
bhagwan e89018baf9 builtin previewer: misc config options added 3 years ago
bhagwan a7c093e774 set filetype in a pcall to circumvent error (issue #58) 3 years ago
bhagwan a2470b81e1 should close issue#58 3 years ago
bhagwan eefed45175 added builtin previewer 3 years ago
bhagwan d1fe6479c1 bugfix: lsp_workspace_symbols filename (issue #34) 3 years ago
bhagwan 0d05954397 previewers migrated to new async_action 3 years ago
bhagwan b21f5a6308 previewer fix for fish shell 3 years ago
bhagwan ec2e870614 refactor previewers 3 years ago