Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.75 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.75 KB

Nvim plugin for helm-ls

A neovim lua plugin for Helm adding additional features using helm-ls. The plugin can be used as an alternative to towolf/vim-helm for neovim.

The plugin is in early development.

Features

  • Filetypes for Helm

  • experimental: Overwrite templates with their current values using virtual text (See Demos)

  • experimental: Show hints highlighting the effect of nindent and indent functions (See Demos)

Installing

Using lazy

{
    "qvalentin/helm-ls.nvim",
    ft = "helm",
    opts = {
        -- leave emtpy or see below
    },
}

If you are not using lazy make sure to call require("helm-ls").setup() in your lua config.

Requirments

The plugin requires helm-ls and the helm tree-sitter grammar for the additional features. Install the helm tree-sitter grammar using TSInstall after installing the nvim-treesitter plugin.

:TSInstall helm

Configuration

Default config:

{
  conceal_templates = {
    -- enable the replacement of templates with virtual text of their current values
    enabled = true, -- this might change to false in the future
  },
  indent_hints = {
    -- enable hints for indent and nindent functions
    enabled = true,
    -- show the hints only for the line the cursor is on
    only_for_current_line = true,
  },
}

Demos

361241380-900c5083-d53c-45be-b6d5-0a56c8d04b97.mp4

demo for indent hints