Commit graph

356 commits

Author SHA1 Message Date
Rafael Madriz
6f8b96de9d
refactor(lualine): use string.format to return unique names (#4193)
To purpose of this change is to make code more redeable by making
`unique_client_names` a string with the unique names instead of a table
and later on calling `table.concat`. Then use `string.format` instead of
string concatenation with `..`
2023-05-25 08:12:55 +02:00
LostNeophyte
e548d6bc99
feat!: use prompts similar to :confirm in buf_kill (#4186) 2023-05-23 22:16:43 +02:00
Christian Chiarulli
ef3f25fd1d
feat: ignore missing keys for whichkey (#4185) 2023-05-20 07:58:53 -04:00
github-actions[bot]
f3c7195c8f
chore: bump plugins version (#4146)
* chore: bump plugins version

* Revert "fix(alpha): account for different icon byte sizes (#4130)"

This reverts commit 9efe4f25c3.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
2023-05-20 10:48:16 +02:00
Christian Chiarulli
dca9820843
feat(nvimtree): centralize selection (#4160) 2023-05-17 10:18:56 +02:00
Christian Chiarulli
af2db622d7
fix(icons): add some whitespace to the boolean icon (#4163)
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
2023-05-15 13:00:59 -04:00
opalmay
e32872a057
feat: lock new installations to nvim 0.9+ (#3858)
* feat: lock new installations to nvim 0.9+

* feat: newer compat tag
2023-05-13 21:37:13 +02:00
Christian Chiarulli
29f94e4361
fix: support text if marksman lang server (#4144) 2023-05-08 13:52:06 -04:00
Rafael Madriz
55f048aaae
fix(lualine): use get_active_clients instead of deprecated function (#4136)
* fix(lualine): use `get_active_clients` instead of deprecated function

`vim.lsp.get_active_clients()` accepts a table to filter returned
clients by id, bufnr and name. In this case when want to get clients for
current buffer, if bufnr is not given then it defaults to current
buffer, so need to pass anything here.

See `help vim.lsp.buf_get_clients()`

* refactor(lualine): simplify LSP component

`vim.lsp.get_active_clients` always returns a table, if that table is
empty, there's no clients attached, hence return appropriate message. No
need to use `next()`

Remove all the complicated logic with the `msg` parameter, no argument
is passed in any of the places that component is used, no need to have it.

* fix: only get clients attached to current buffer

---------

Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
2023-05-07 11:47:34 +02:00
LostNeophyte
9efe4f25c3
fix(alpha): account for different icon byte sizes (#4130)
* fix(alpha): account for different icon byte sizes

* chore: format
2023-05-06 17:46:26 +02:00
Bailey Burnsed
b1c7254154
fix(treesitter): add a few parsers to ensure_installed (#4121)
* This sould fix the conflix, I had to rebase

* chore: format

---------

Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
2023-05-04 08:39:02 +02:00
CPea
4e1db216ae
fix(nvim-tree): use local buffer keymaps (#4090) 2023-04-28 11:20:01 +02:00
github-actions[bot]
4cefc89506
chore: bump plugins version (#4054)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: CPea <vienpro2506@gmail.com>
2023-04-28 07:34:19 +07:00
Mateusz Bączek
261c677a8b
fix(user_command): update url in LvimDocs command (#4081) 2023-04-24 20:22:45 +07:00
LostNeophyte
70ce6b7ddc
fix: make FileOpened autocmd work with quickfix (#4040) 2023-04-15 13:48:06 -04:00
YinAqu
6544837f42
fix: use require instead of reload in pcalls (#4038)
fix(core): reload error signal
2023-04-15 13:03:25 +02:00
Olegek
23ace671d6
fix(nvim-tree): remove deprecated option (nvim-tree/nvim-tree.lua#2122) (#4033)
fix: remove deprecated option nvim-tree/nvim-tree.lua#2122
2023-04-13 08:10:15 +02:00
sigmaSd
b5cc0a51bd
feat(keybindings): add code action to visual mode (#4022)
* feat(keybindings): add code action to visual mode

* fmt
2023-04-12 08:23:35 +02:00
Akihiro Okuno
ad6a0e3d18
feat(mason): add on_config_done option to lvim.builtin.mason (#3991) 2023-04-07 14:02:09 +02:00
kylo252
0b13c9f6bc
feat(mason): add support for mason-registry (#3994)
* feat(mason): add support for mason-registry

* fix(lazy)!: wrap refresh for mason-registry
2023-04-04 10:10:36 +02:00
gtscherer
b765f95508
fix(nvimtree): don't overwrite update_focused_file.ignore_list (#3986)
fix(plugin): Prevent Overwriting NvimTree update_focused_file.ignore_list

Fix #3985

Co-authored-by: Greggory Scherer <greggory.scherer@sony.com>
2023-03-28 08:39:11 +02:00
Zhizhen He
0ca97f7755
fix(which-key): typo (#3963) 2023-03-20 11:29:24 -07:00
Jieru Mei
76040d25ff
fix(dap): invalid border value (#3951) 2023-03-19 21:55:02 -07:00
Khilseith
57395bcc8a
fix: copilot indent reset (#3343) (#3960) 2023-03-19 21:54:41 -07:00
Jieru Mei
b5800bc3c4
fix(breadcrumbs): disable for neotest (#3921) 2023-03-05 22:01:33 -05:00
Marco
c86dfabab7
chore(custom-finders): don't use deprecated _close action (#3903)
solve deprecation warning

`_close` in `telescope.actions` is deprecated, telescopedocs says to use `close` instead
2023-03-01 11:45:07 +01:00
CPea
732fd6fc2b
fix(terminal): don't set the shell by default (#3867)
* fix(terminal): set user's shell before calling setup

* refactor: set `vim.o.shell` directly in `cmd` opts
2023-02-19 11:53:35 +01:00
kylo252
ddc86f3a8a
fix(cmp): handle deprecated tree-sitter api (#3853) 2023-02-16 16:51:35 +01:00
LostNeophyte
23a16d9330
feat(autocmds): add NvimTreeNormalNC to transparent mode (#3850) 2023-02-16 14:14:23 +07:00
opalmay
fde46c4b16
perf(toggleterm): on-demand lazy load (#3811)
* perf(toggleterm): on-demand lazy load

* fix: keys

* fix: move setup, on_config_done (for terminal obj)

* fix: add some cmds

* refactor: remove redundant `lazy = true`
2023-02-11 19:43:38 +02:00
LostNeophyte
4bcf9d75a1
feat(which-key): keybind for :Telescope resume (#3826) 2023-02-08 09:40:32 +01:00
opalmay
17c5b8dd02
fix: remove deprecated nvim-tree options (#3810)
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2023-02-04 17:38:51 +02:00
LostNeophyte
b9e1952421
refactor(alpha): remove laststatus and tabline autocmds (#3809) 2023-02-04 16:24:56 +01:00
LostNeophyte
60c7ad77fd
perf: lazy load most plugins (#3750)
* perf: lazy load most plugins

* fix(lazy): suggested fixes for pref/lazyloading branch (#3754)

fix(lazy): Suggested fixes from previous comments

fix(lazy): applying suggestions from code review

Co-authored-by: LostNeophyte <lostneophyte@tuta.io>

Co-authored-by: Pratyush Bharati <pbharati@Pratyushs-MacBook-Pro.local>
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>

* chore: format

* move lazy utils to modules.lua

* simplify telescope actions

* refactor: cmp_window local name

* feat: more lazy loading cmds

* refactor(cmp): minor clean up

* perf: set lazy loading by default

* refactor(alpha): remove broken lazy load

* revert: explictily set lazy loading

This reverts commit ba38193e4e.

* test: enable lazy-loading for bigfile

* perf: defer projects and alpha to VimEnter

* refactor(bufferline): add comment

* perf: better lazy load dap/dapui

* perf: lazy load ts-commentstring with Comment.nvim pre_hook

---------

Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com>
Co-authored-by: Pratyush Bharati <pbharati@Pratyushs-MacBook-Pro.local>
Co-authored-by: opalmay <opal.mizrahi2@gmail.com>
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2023-02-04 17:22:41 +02:00
LostNeophyte
c18cd3f0a8
feat(ts): enable indent for c and cpp (#3783) 2023-01-26 11:37:51 -05:00
Anchal Singh
0c94c6a5bd
feat(alpha): add quit button to dashboard (#3767)
* feat(alpha): adding option to turn off ESC keybind to exit

chore: formatting

* Update lua/lvim/core/alpha.lua

Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com>

* Update lua/lvim/core/autocmds.lua

Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com>

* Apply suggestions from code review

* remove <esc> keybind

Co-authored-by: Anchal Singh <anchal.singh@dpworld.com>
Co-authored-by: pr-313 <46706232+pr-313@users.noreply.github.com>
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
2023-01-26 16:20:07 +01:00
Jieru Mei
8ea68830a0
refactor!: remove % and $ autopairs rules (#3759) 2023-01-23 12:31:29 +01:00
LostNeophyte
98ef4a1a24
fix(logger): fix errors with older structlog versions (#3755) 2023-01-19 20:21:53 +01:00
Luc Sinet
e7d7aa9273
refactor(logger): adapt to new changes upstream (#3695) 2023-01-19 14:54:30 +01:00
LostNeophyte
b97298ccf5
fix(indentlines): typo (#3743)
* fix(indentlines): set indent_char to LineLeft

* fix(indentlines): typo
2023-01-17 08:54:58 +01:00
LostNeophyte
de2f4bb776
fix(indentlines): set indent_char to LineLeft (#3741) 2023-01-17 01:10:28 -05:00
opalmay
ea9b648a52
fix(breadcrumbs): refresh on TabEnter (#3727)
* fix(breadcrumbs): refresh on TabEnter
2023-01-14 15:31:05 +02:00
LostNeophyte
2922a42743
fix(lir): nil check, simpler logic (#3725)
* fix(lir): nil check

* simpler logic
2023-01-13 16:48:37 +01:00
LostNeophyte
3115088e92
fix(icons): make devicons optional (#3616)
* fix(icons): make devicons optional

* code review suggestion

* fix: devicons_enable > devicons.enable
2023-01-13 15:24:05 +01:00
opalmay
28acebe7dd
feat(dap-ui): update setup table (#3724)
* feat(dap-ui): update setup table

* chore: lint
2023-01-13 15:46:41 +02:00
opalmay
4455bd2add
refactor(quit)!: use native quit confirm (#3721) 2023-01-13 14:44:09 +02:00
opalmay
f4ec3fc620
refactor: move to upstream lir (#3711)
* refactor: move to upstream lir

* chore: lint
2023-01-12 09:59:00 +02:00
LostNeophyte
ccb80e41ee
refactor: migrate to lazy.nvim (#3647)
* refactor: convert plugins spec to lazy

* refactor(lazy): remove impatient

* fix(telescope): no more errors if theme is nil

* refactor(lazy): use lazy in plugin_loader

* refactor(lazy): pin plugins with packer's snapshot

* fix: add plugins to rtp before config:init

* fix: fs_stat nil check

* feat: lazy cache

* feat(lazy): reloading

* refactor(lazy): plugin-loader functions

* feat(lazy): cache reset

* refactor: set runtimepath manually

* fix: runtimepath

* refactor(rtp)

* refactor(lazy): packer -> lazy in various places

* fix(lazy): disable tree-sitter ensure installed

* refactor(lazy): restore order to bootstrap

* refactor(lazy): remove unused impatient profiler

* small fixes

* `lvim.plugins` deprecation handling

* fix: deprecation of `requires` in plugin specs

* feat: core plugins pinning

* refactor(lazy): plugin loader tests

* refactor(lazy): use lazy in scripts

* refactor(lazy): which-key keybinds

* chore: format

* fix: installer

* fix: first time setup

* feat: changes required for packaging

commit 951ac2b7c01b5200b973660c967852d1706cce28
Author: LostNeophyte <lostneophyte@tuta.io>
Date:   Wed Dec 28 13:49:44 2022 +0100

    fix: clean folder before copying plugins

commit 64e9afa44b8e528ba527e0510d0d8c2d2237a095
Author: LostNeophyte <lostneophyte@tuta.io>
Date:   Wed Dec 28 13:35:41 2022 +0100

    feat: copy core plugins on first run

commit 2d8e72090c7624f68c09a9aa6582223373a810c1
Author: LostNeophyte <lostneophyte@tuta.io>
Date:   Wed Dec 28 13:11:22 2022 +0100

    feat(utils): fs_copy

commit 85c1f025a6ba13183e85141f75f60e2eefc77bb5
Author: LostNeophyte <lostneophyte@tuta.io>
Date:   Wed Dec 28 13:04:38 2022 +0100

    fix: copy correct example config

* fix: packer specs deprecation handling

* fix: plugin specs deprecation

* feat: pin lazy's version

* fix: remove plugins form rtp before loading lazy

* fix: plugin-loader test

* feat(lazy): add keymappings for profile, log, and debug (#3665)

* feat(lazy): Add keymappings for profile, log, and debug

* feat(lazy): Add keymap for cleaning

* chore: format

* pref: lazy load many plugins

Co-authored-by: Uzair Aftab <uzaaft@outlook.com>

* fix: bootstrap correct version of lazy

* fix: also use CmdLineEnter event for cmp

* fix: don't use lazy's modules before it's set up

* perf: (hack) enable lazy's cache before loading lazy

* fix: plugins.lua

* fix: plugins bump script

* chore: remove debug print

* feat: add rounded border for `:Lazy`

* fix: bufferline flashing

* fix: don't close lazy on startup

* fix: load breadcrumbs on startup

* fix: don't lazy load bufferline

* chore: bump lazy's version

* fix: remove site from rtp (fixes treesitter issues)

* revert default config copying changes

* fix(bootstrap): actually remove plugins dir on windows

* chore: bump lazy's version

* chore: bump lazy's version

Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
Co-authored-by: Uzair Aftab <48220549+Uzaaft@users.noreply.github.com>
Co-authored-by: Uzair Aftab <uzaaft@outlook.com>
Co-authored-by: opalmay <opal.mizrahi2@gmail.com>
2023-01-10 21:18:17 +01:00
kylo252
5fe3075b34
refactor(treesitter)!: use auto-install by default (#3677) 2023-01-10 10:32:41 -05:00
LostNeophyte
38587e2241
fix(telescope): backwards compability (#3596)
* fix(telescope): no more errors if theme is nil

* fix: backwards compability
2023-01-10 09:58:48 +01:00