Commit graph

13 commits

Author SHA1 Message Date
kylo252
d01ba08eae
refactor: auto-generate language configuration (#1584)
Refactor the monolithic `lvim.lang` design into a more modular approach.

IMPORTANT: run `:LvimUpdate` in order to generate the new ftplugin template files.
2021-10-03 16:13:46 +02:00
chaesngmin
254ab2102b
[Feature] Add lunarvim latest release tag to dashboard (#1436)
* feat: add lunarvim latest release tag to dashboard

* Add a function to center-align text

Rename align to align_left
Rename shift_left to shift_right

* refactor(dashboard): remove unnecessary comment

* refactor(dashboard): use `home_dir` variable for `lv_path`

* refactor(dashboard): use $LUNARVIM_RUNTIME_DIR for lv_path

* feat(bootstrap): add fn that returns lvim version

* refactor(dashboard): use version, lunarvim dir with bootstrap fns

* build: add global get_version() from bootstrap

Co-authored-by: Luc Sinet <luc.sinet@gmail.com>
2021-09-17 04:13:52 -07:00
Luc Sinet
00b895d9e9
[Feature] Encapsulate config logic (#1338)
* Define core/builtins, streamline status_color interface

* Encapsulate configuration in its own module

* Add fallback to lv-config.lua

* Rectify settings loading order to allow overriding vim options

* Move default-config into config/ module

* replace uv.fs_stat with utils.is_file
2021-08-25 07:47:48 +02:00
Luc Sinet
9b36872d88
[Feature] Encapsulate interface logic (#1320)
* Provide a utility function for aligning text

* Replace lvim banner with one using only ASCII chars

* Use strings.format instead of .. operator

* Center text in the popup based on its dimentions

* Minor improvements

* Provide a popup factory function

* Add function documentation

* Improve text alignment

* Print marker only if provider list is not empty

* Format client capabilities as list

* Pretty format lsp client capabilities

* Add a metatable to popup.lua

* Improve rendering when no lsp is available

* Take cmdheight into acount when computing popup size and pos

Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2021-08-16 16:07:46 +03:00
Pasi Bergman
9c9bcb1e0a
fix: lviminfo highlight match fix (#1316) 2021-08-14 14:43:48 +03:00
Luc Sinet
70d139ac27
[Refactor/Bugfix] Improve null ls handler (#1277) 2021-08-14 01:02:56 +04:30
Pasi Bergman
6bbce4ee07
fix: use correct highlight group with LvimInfo (#1302) 2021-08-12 17:28:45 +04:30
Abouzar Parvan
333b103425
Fix lunarvim info nil issue (#1289)
* fix lunarvim info nil issue

* fix num_caps counting issue
2021-08-11 13:11:36 +03:00
Abouzar Parvan
cbbaf010f6
luaString highlight group is not always available 2021-08-11 11:36:32 +04:30
Abouzar Parvan
abbde6c138
remove useless print for LunarVim info 2021-08-11 11:32:33 +04:30
Pasi Bergman
e7c6275879
[Refactor] LunarVim Info UI (#1281)
* refactor: lunarvim info ui

* refactor: lunarvim info ui - remove close hint, add highlighting

* refactor: lunarvim info ui - remove TODO
2021-08-11 01:54:53 -04:00
Ahmed Khalf
6828787780
Fix window borders for lunarvim info (#1280) 2021-08-10 19:29:05 +04:30
kylo252
47ebd70817
Add LunarVim info panel (Experimental) (#1241)
* feat: lunarvim info (Experimental)

* Add missing providers info

* Use nvim api directly to create the popup

* width tweaks
2021-08-06 16:27:19 +02:00