Commit Graph

895 Commits

Author SHA1 Message Date
Christian Clason
7ebc27d818 fix(actions): force insertmode after inserting symbol (#1618)
required after upstream changes to prompt buffer behavior
(see
 28134f4e78)

Fixes #1608
2021-12-27 09:40:37 +01:00
fdschmidt93
ebd2eb0337 feat(diagnostics): workspace or document in title (#1619) 2021-12-27 09:39:41 +01:00
August Masquelier
1849a8d701 fix(sorters): Ensure 'cb_filter' defined when creating new index-bias sorter (#1624) 2021-12-27 09:39:02 +01:00
Luke Kershaw
9aaaa0c5f3 fix: builtin only have entries for extension functions (#1587)
* fix: `builtin` only have entries for extension functions

* fix: add check for underscore and explanation of which functions included
2021-12-19 17:55:50 +00:00
Luke Kershaw
5f37fbfa83 feat: layout anchor (#1582)
* feat: add `anchor` option to some `layout_strategies`

* tests: improve tests for `resolve_height/width`
2021-12-10 19:08:24 +00:00
Simon Hauser
5e5351ef13 docs: README change lsp_*_diagnostics to diagnostics 2021-12-10 18:02:39 +01:00
Simon Hauser
56325fefb2 feat: migrate to Telescope diagnostics using vim.diagnostic (#1553) 2021-12-10 17:49:06 +01:00
Simon Hauser
61240ac75a break: bump the minimum required neovim version to 0.6 or higher (#1549)
So we can use `vim.json` and `vim.diagnostics`.

If you aren't able to update to 0.6.* yet you should pin the previous commit.
2021-12-10 16:32:28 +01:00
Luke Kershaw
80cdb00b22 feat: center layout mirror option (#1577) nvim-0.5.1 2021-12-10 11:48:14 +01:00
smhc
991d0127f0 fix: previewer for builtin.builtin (#1583) 2021-12-10 11:44:50 +01:00
Jieru Mei
3f4ee6f267 fix: which_key action foldenable=false by default (#1578) 2021-12-10 09:55:24 +01:00
Luke Kershaw
914da77bb7 fix: bottom_pane remove results border next to prompt (#1563) 2021-12-08 18:28:55 +00:00
Farbod Salamat-Zadeh
6b1579741a fix: git stash entry formatting (#1452) 2021-12-06 21:20:37 +01:00
Richard Lu
a20f01353b fix: ensure buffer is listed before edit_buffer (#1492) 2021-12-06 21:13:24 +01:00
GenesisTMS
a88d92417d typo: which_key (#1560) 2021-12-06 21:12:42 +01:00
h0adp0re
82e3cc322a fix: current_buffer_fuzzy_find in vue files (#1561) 2021-12-06 15:17:58 +01:00
Jun
182c43b9d1 fix: lsp concatenate err (#1558) 2021-12-05 16:25:49 +01:00
Luke Kershaw
e9759b0405 docs: functions in pickers.lua (#1554) 2021-12-05 08:45:50 +00:00
Simon Hauser
d0083f9e4c fix: git_branch previewer highlighter error (#1543) 2021-12-05 08:39:16 +01:00
Simon Hauser
1131e5f9e1 chore: better uv.spawn error handling and windows git spawn bugfix (#1498) 2021-12-05 08:29:03 +01:00
Simon Hauser
16b0188cf5 fix: current_buffer_fuzzy_find check if nvim-ts is okay before calling is_enabled 2021-12-05 08:19:23 +01:00
Simon Hauser
27294d73e4 fix: regression with grep builtins (#1548) 2021-12-03 17:57:28 +01:00
Luke Kershaw
582dbd4da8 defaults: change center layout default size (#1546)
* defaults: change `center` layout default size

- now matches the description and has space for a preview above the central block
2021-12-03 17:50:44 +01:00
Simon Hauser
4016ebe8e8 fix: actions.delete_buffer shouldnt force delete
fix #1541
2021-12-03 17:28:15 +01:00
Luke Kershaw
b50b364ae1 fix: check for Windows drive letter when parsing vimgrep (#1494) 2021-12-03 16:29:20 +01:00
fdschmidt93
9d7d322f85 feat: allow initial results in async_oneshot_finder (#1461) 2021-12-03 15:36:48 +01:00
Luke Kershaw
0c819d6605 docs: layout strategy usage (#1493) 2021-12-03 15:21:26 +01:00
Simon Hauser
60a4ce080f fix: dont change highlights when using current_buffer_fuzzy_find (#1524)
this happens if parsers are installed but highlight is set to false.
So parsing the buffer with treesitter will automatically apply them to
the buffer but because treesitter highlighting is disabled it will
change the buffer. Its stupid and i dont know why you want parser
installed but highlighting disabled but whatever.

We just dont calculate highlights for people who have highlight set
to false
2021-12-03 14:46:53 +01:00
Simon Hauser
4e075bf924 feat: highlight group for counter: TelescopePromptCounter
fix #1540
2021-12-03 14:36:32 +01:00
Simon Hauser
4b3efd2341 fix: lsp_workspace_symbols (#1535) 2021-12-02 18:00:26 +01:00
Chinmay Dalal
7462999202 fix: make lsp_* async (#1506) 2021-12-02 07:51:13 +01:00
Daniel Kempkens
aa41912ef8 fix: Remove symbol_msg substitution (#1525)
Because Elixir source code can contain `|`, the removed substitution
sometimes broke `lsp_document_symbols()`.

Example:

```
E5108: Error executing lua ...packer/start/telescope.nvim/lua/telescope/make_entry.lua:392: attempt to concatenate local 'symbol_name' (a nil value)
stack traceback:
        ...packer/start/telescope.nvim/lua/telescope/make_entry.lua:392: in function 'entry_maker'
        ...scope.nvim/lua/telescope/finders/async_static_finder.lua:17: in function 'new_table'
        ...acker/start/telescope.nvim/lua/telescope/builtin/lsp.lua:137: in function 'v'
        ...acker/start/telescope.nvim/lua/telescope/builtin/lsp.lua:500: in function 'v'
        ...cker/start/telescope.nvim/lua/telescope/builtin/init.lua:496: in function <...cker/start/telescope.nvim/lua/telescope/builtin/init.lua:467>
        ...ck/packer/start/telescope.nvim/lua/telescope/command.lua:179: in function 'run_command'
        ...ck/packer/start/telescope.nvim/lua/telescope/command.lua:241: in function 'load_command'
        [string ":lua"]:1: in main chunk
```

Closes #874
2021-12-01 18:27:53 +01:00
Martin Roa Villescas
ef245548a8 docs: fix Picker:get_row(index) doc string (#1515) 2021-11-30 21:27:20 +01:00
Patrick Ziegler
ce8c8d4a45 fix(highlight): Use TS built-in is_enabled function (#1513)
The function just replicated the logic from is_enabled and assumed the
`disable` setting is always a table. This is no longer the case
(https://github.com/nvim-treesitter/nvim-treesitter/pull/2009), it can
now also be a function.
2021-11-30 21:18:08 +01:00
Luke Kershaw
c9439871ef fix: keep previewer winid state updated on layout changes (#1522) 2021-11-30 21:15:43 +01:00
max397574
c1951b3722 add Normal highlights for prompt and results (#1514)
* feat(highlight): add Normal highlights for prompt and results

* fix(highlight): link to TelescopeNormal by default
2021-11-29 21:47:19 +00:00
Luke Kershaw
22e59556f9 chore: layout strategy tidying (#1509) 2021-11-29 10:42:23 +00:00
max397574
7cfddbfd93 feat: add preview width option for bottom_pane layout (#1505)
* feat(layout_strategies): started adding preview width for bottom pane

* fix(bottom_pane preview_width): fixed some values and added defualt

* fix(config): better default for preview cutoff

* fix(layout): removed unnecessary variable value
2021-11-28 17:32:50 +00:00
akiyosi
ed4adba6d0 fix: Border window also need to be winblend due to window overlap in multigrid UI (#1421) 2021-11-28 09:57:08 +00:00
Ismael Padilla
492f1d38f6 fix: typo in readme (#1502) 2021-11-27 19:15:19 +01:00
Luke Kershaw
414a7a5b44 feat: extend functionality of entry_display.create (#1408)
* feat: extend functionality of `entry_display.create`

- now allows passing functions or fractional values to `width` option

* refactor: cache `width` instead of results window size

* feat: use new `width` functionality for more entry makers
2021-11-27 16:00:24 +00:00
Luke Kershaw
b415e862bf fix: set nowrap in prompt buffer (#1499)
- fixes `strdisplaywidth` calculations for `dynamic_preview_title`
2021-11-26 22:43:51 +01:00
Simon Hauser
a8e9aa58a4 fix: issue when scrollbind is set (#1496) 2021-11-26 22:42:54 +01:00
Simon Hauser
1c57cc6140 Revert "fix: action mt so we can again concat actions from two different tables (#1143)" (#1486)
This reverts commit 6daf35c88c.
2021-11-23 23:51:25 +01:00
Simon Hauser
7695d224c8 fix: telescope close process and cleanup layout actions (#1480) 2021-11-23 21:11:05 +01:00
Simon Hauser
6daf35c88c fix: action mt so we can again concat actions from two different tables (#1143)
* fix: action mt so we can again concat actions from two different tables

- without actually changing the public interface
- without having a local table that keeps track of all actions

* this should clear actions now

we never actually called this function which is kinda a problem because
we never cleaned up previous mapping stores.
We can also make a better mappings store which has access to the keys
sequences which would help the showing actions part

* bugfix

* that should now clear everything

only tests left i think

* more tests

* cleanup

* hack: make sure all actions get cleared
2021-11-22 20:48:37 +01:00
Salomon Popp
6f82c6630c fix: error when opts is nil in pickers.new (#1471) 2021-11-20 16:07:52 +01:00
mroavi
af5a580310 docs: fix attempt to index nil opts in example (#1476) 2021-11-20 14:46:16 +01:00
Chris A James
7493f51700 docs: fix some spelling & grammar (#1475) 2021-11-20 11:03:52 +01:00
Luke Kershaw
d686fb2799 fix: cleanup of layout actions
* fix: finish docs and remove mistakes from merge

* fix: change order of `popup` changes based on type of change
  - removes "flash" issue where popups don't update in sync
2021-11-18 19:44:12 +00:00