Commit Graph

1210 Commits

Author SHA1 Message Date
Simon Hauser
486ab56776 Feat: Displayer now supports highlights for separator and elements (#304)
Separator Example: When creating the displayer
```lua
local displayer = entry_display.create {
  separator = " ",
  separator_hl = 'Visual', -- New
  items = {
    { width = opts.bufnr_width },
    { width = 4 },
    { remaining = true },
  },
}
```

Elements Example: When submitting data
```lua
local hl_group = x == y then 'Normal' or 'Visual'

return displayer {
  entry.bufnr,
  { entry.indicator, hl_group },
  display_bufname .. ":" .. entry.lnum,
}
```
2020-12-03 08:41:10 +01:00
Mike Hartington
424b98df15 fix: add back filetypedetect on edit (#283)
* add back filetypedetect on edit

* chore(): apply feedback
2020-12-03 00:37:07 -05:00
tamago324
f2b483edc5 Fix to pass opts to pickers (#301)
builtins were not passing `opts` correctly, but now do.
2020-12-02 23:54:09 -05:00
Senghan Bright
8546fdf610 new builtin - autocommands (#302)
* feat: new builtin - Autocommands finder

* fix: remove decorators to avoid confusion.

* make preview split same hl-group as border

* use highlight instead of marker character for preview selection hl
2020-12-02 00:27:54 +01:00
TJ DeVries
8d97b2dbdd fix: abstract and remove param 2020-12-01 12:47:43 -05:00
tami5
f3caae5dda fix: builtin runner insert issue (#266)
closes #262 , adds new parameter to action.close. Users know can have more control over the mode after action.close is called.
2020-12-01 14:03:14 +03:00
Simon Hauser
7dd79bf2ef Fix builtin.builtin for lsp and git modules (#300) 2020-11-28 22:11:46 +01:00
Simon Hauser
7514137e2a Remove less from default termopen_env (#295) 2020-11-28 13:33:19 +01:00
windwp
16f11b6c27 feat: add lsp range code actions (#297)
https://github.com/neovim/neovim/pull/12962

authored by: @windwp
2020-11-28 09:16:17 +03:00
Cedric M'Passi
6edbd1db5f feat: Make tab toggle between git add and git restore in builtin.git_status() (#289)
Very useful functionality to use git_status for. Now users can add a file or restore it by <tab>

authored by: @cempassi
2020-11-27 14:15:02 +03:00
Simon Hauser
4a8ea7763e Refactor builtin (#287) 2020-11-26 08:16:58 +01:00
Julian Berman
0f9fd84a97 fix: Use noremap when mapping. (#286)
Previously, if e.g. : was remapped, Telescope would be unclosable with
its mappings (<Esc>).

(Do the same for ensuring we :silent)
2020-11-24 15:29:46 -05:00
TJ DeVries
75311f2c04 feat: highlighter only 2020-11-23 12:30:09 -05:00
Simon Hauser
863328a96d feat: Buffers rework (indicators and sorting) (#208) 2020-11-23 10:11:46 -05:00
TJ DeVries
2ac0582c06 feat: v0.1 of extensions (#278) 2020-11-23 09:29:10 -05:00
Senghan Bright
124655608f Register finder (#275)
builtin: Registers finder. view and edit vim registers.
2020-11-23 11:07:53 +01:00
Simon Hauser
874139ee0b Various previewer fixes (#260)
- Set env vars for previewer with set_env({ key = value } fix #228)
- Set pager for git previewes (default is GIT_PAGER=less so users can scroll see #253)
- Use less for people who don't have bat but less installed
- Reset less env to only '-RS' because '-X' will break scrolling(fix #253, thanks @eth3lbert)
- Scrolling for buffer previewer(thanks @tami5 for helping)
  - Also new function to create buffer previewers (which has scrolling by default). Used for tags and help_tags previewer.
- Add new setting set_env to readme
2020-11-22 10:57:31 +01:00
Simon Hauser
d153c006e7 feat: Add highlights builtin (#267) 2020-11-21 21:33:27 -05:00
Simon Hauser
929a30378c Feat: Add filetypes builtin (#263) 2020-11-19 18:59:44 +01:00
YIQUN
319e8ed892 Fix: cwd detection of builtin.git_ (#264) 2020-11-19 09:03:08 +01:00
YIQUN
e16712f22e Fix: set_opts_cwd function will only call git once (#256) 2020-11-17 11:35:06 +01:00
YIQUN
5863e49773 Fix: check if opts.cwd is a git directory, not opts (#252) 2020-11-17 08:21:58 +01:00
Simon Hauser
749c86557e Update attach_mappings to use new actions api (#249) 2020-11-16 21:48:45 +01:00
Simon Hauser
57a7769845 Fix #250 (#251) 2020-11-16 15:43:31 -05:00
Simon Hauser
eaa7011f84 feat: Add tags (#219) 2020-11-16 15:17:13 -05:00
Simon Hauser
8117263027 feat: Add git builtins (#240)
Conni2461 is a great coder and contributor :)
2020-11-16 15:10:26 -05:00
Senghan Bright
c01b7ad024 Merge pull request #246 from parmort/rework-help-preview
[RFC] Fix help_tags previewer
2020-11-16 18:02:32 +01:00
TJ DeVries
985856946e feat: Allow overriding actions from mappings (#248) 2020-11-16 10:58:30 -05:00
Nolan Prochnau
f9f83004b6 Delete more debug things 2020-11-16 10:37:08 -05:00
Senghan Bright
ad7280e0b9 fix: use vim.lsp.diagnostic instead of deprecated util function. (#244) 2020-11-15 15:54:16 -05:00
Nolan Prochnau
50a87e502c Delete debug output 2020-11-15 14:33:22 -05:00
Nolan Prochnau
30aa3904ce Refactor to make logic less intense 2020-11-15 13:39:46 -05:00
Nolan Prochnau
8eecc9c9dc Manually search through tags
Probably slower, but the builtin `taglist()` only looks at the first
file in 'tags', not ideal for this application. This can probably be
cleaned up a little.
2020-11-15 13:26:30 -05:00
Nolan Prochnau
1495cbec5a Have plugin tags previewed
Still doesn't update for multiple files, but the first file in the
taglist is shown, so that's a start?
2020-11-15 10:54:33 -05:00
YIQUN
0ccd69f5a9 fix lsp_code_action error when no code action available (#243)
the results variable can be nil when there's no code action available,

check for nil results before checking the length
2020-11-15 08:41:58 -05:00
tami5
3c4a88efe4 Merge pull request #230 from parmort/rework-helptags
Rework helptags builtin, including helps tags from installed plugins
2020-11-15 09:53:03 +03:00
Carlos Hernandez
3c2dea3ea5 feat: Add built-in to search keymaps (#191)
* Add built-in to search keymaps

* Re-factor maps for cleaner codes

Rather than use function to return a results table for various key maps.
Assign results the key maps table itself. This makes for cleaner code.

* Keymaps: escape termcodes using built-in util

* Rename builtin.maps to builtin.keymaps
2020-11-14 14:38:21 -05:00
Anirudh Haritas Murali
24057365da Fix git files in non-git directories (#239)
0 is not a false value in Lua. Compare to 1 to check if it is a git
	directory. Fixed error syntax.
2020-11-13 15:20:52 -05:00
Simon Hauser
76e7fe8cb0 fix: Multiple Previewer fixes (#225)
Fixes previews for files beginning with ~/
Previewer will now show directories
Fix if clause with vim.fn.executable
2020-11-13 15:07:12 -05:00
TJ DeVries
9fad317d05 fix: #236 2020-11-13 14:56:57 -05:00
Simon Hauser
ba52c70a60 fix: selection_strategies row and follow (#218) 2020-11-13 10:20:09 -05:00
tami5
64aae0abd8 feat: Add c-v, c-x, c-t to help_tags (#229) 2020-11-13 10:14:40 -05:00
Nolan Prochnau
1678d7cb13 Rename and simplify make_entry function 2020-11-09 22:18:36 -05:00
Nolan Prochnau
48820cb1a0 Grab helptags from all paths defined in rtp 2020-11-09 22:05:02 -05:00
Simon Hauser
d8befe2437 Cat will no longer display binary files (#224) 2020-11-05 19:53:57 -05:00
Senghan Bright
051aefdb8c feat: v1 options menu (#133)
Still has a bunch of improvements that can be done, but wanted to merge in some of the related changes.

* options parser

* wip: vimoptions finder

* feat: pre-populate ex-command line with `:set foo=`

* use options current value when populating command line

* fix: use result.raw_value to store original option value

* .

* options: Continue work on option finder

* [WIP]: Tue 27 Oct 2020 10:34:09 PM EDT

* [WIP]: Mon 02 Nov 2020 08:20:13 PM EST

* [WIP]: Mon 02 Nov 2020 09:04:23 PM EST

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-11-02 21:05:10 -05:00
TJ DeVries
855d818a5d fix: #211 2020-11-02 17:07:32 -05:00
Simon Hauser
aba433c522 feat: Actions can now be summed up and center action (#204)
Closes: #182 

* Actions can now be summed up and center action

* fix: Make some complicated changes for metatable

* Update documentation

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-11-02 17:00:23 -05:00
TJ DeVries
a37e4699c4 feat: Closes #205 2020-10-30 18:31:06 -04:00
TJ DeVries
656f316aee nit: this is a temporary change 2020-10-30 18:01:27 -04:00