Skip to content

qvalentin/helm-ls.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • File types for Helm (including values.yaml files required for helm-ls)

  • 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.nvim

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

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

Requirements

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