Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshots #12

Open
talha-akram opened this issue Dec 19, 2024 · 0 comments
Open

Screenshots #12

talha-akram opened this issue Dec 19, 2024 · 0 comments

Comments

@talha-akram
Copy link
Owner

talha-akram commented Dec 19, 2024

Preview:

anvil preview

Completions

<A-Space> opens completions for available snippets where as <C-Space> open code completions

image

The completions are powered by the LSP and the snippets are provided by friendly-snippets. Additionally custom snippets can be added under snippets/${FILE_TYPE}.jsonwhich will get loaded automatically and become available for that file type. The snippets are defined using the LSP snippet definition format and will override any matching snippet from friendly-snippets.

Fast minimal picker using MiniPick:

Anvil uses mini.pick as the default fuzzy finder and general purpose list picker, primarily due to how easy it is to extend with functionality, ease of use, performance, small size and zero dependencies on other plugins / extensions.

image

Have a look at lua/plugins/picker.lua to see what is available and to use as a reference to help in building your own custom pickers.

Status Line

An easy to modify Status Line written in Lua shows detailed information related to your opened buffer:

  • Current mode indicator.
  • Current file path including unwritten state and read only indicator.
  • Stats related to diagnostics (number of Errors E, Warnings W, Information I and Hints H).
  • Attached Language Servers.
  • Cursor position (including selected characters and line count in visual mode).
  • File indentation and encoding information.
  • Buffer number information.
  • File type.
  • Scroll position.

All this without using any patched fonts, works great over ssh and locally and looks great everywhere!

StatusLine preview

image

An accent color is applied to the StatusBar depending on current mode. The accent color is only applied to the mode indicatior, cursor position, buffer number and file type information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant