diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2024-10-24 09:36:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-24 09:36:22 -0700 |
| commit | 5fd8b5608121d29919830e42a00ccddd9f31dadd (patch) | |
| tree | 57760ca88941d16003f4950da29e4d54961dda58 /lua/lspconfig/configs/helm_ls.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-5fd8b5608121d29919830e42a00ccddd9f31dadd.tar nvim-lspconfig-5fd8b5608121d29919830e42a00ccddd9f31dadd.tar.gz nvim-lspconfig-5fd8b5608121d29919830e42a00ccddd9f31dadd.tar.bz2 nvim-lspconfig-5fd8b5608121d29919830e42a00ccddd9f31dadd.tar.lz nvim-lspconfig-5fd8b5608121d29919830e42a00ccddd9f31dadd.tar.xz nvim-lspconfig-5fd8b5608121d29919830e42a00ccddd9f31dadd.tar.zst nvim-lspconfig-5fd8b5608121d29919830e42a00ccddd9f31dadd.zip | |
refactor(docs): drop redundant default_config #3398
Problem:
default_config duplicated in `docs` items.
Solution:
delete it. docgen autogenerates this now.
Diffstat (limited to 'lua/lspconfig/configs/helm_ls.lua')
| -rw-r--r-- | lua/lspconfig/configs/helm_ls.lua | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/lua/lspconfig/configs/helm_ls.lua b/lua/lspconfig/configs/helm_ls.lua index 4908e238..2bd77326 100644 --- a/lua/lspconfig/configs/helm_ls.lua +++ b/lua/lspconfig/configs/helm_ls.lua @@ -1,20 +1,18 @@ local util = require 'lspconfig.util' -local default_capabilities = { - workspace = { - didChangeWatchedFiles = { - dynamicRegistration = true, - }, - }, -} - return { default_config = { cmd = { 'helm_ls', 'serve' }, filetypes = { 'helm' }, root_dir = util.root_pattern 'Chart.yaml', single_file_support = true, - capabilities = default_capabilities, + capabilities = { + workspace = { + didChangeWatchedFiles = { + dynamicRegistration = true, + }, + }, + }, }, docs = { description = [[ @@ -28,9 +26,5 @@ The default `cmd` assumes that the `helm_ls` binary can be found in `$PATH`. If need Helm file highlight use [vim-helm](https://github.com/towolf/vim-helm) plugin. ]], - default_config = { - root_dir = [[root_pattern("Chart.yaml")]], - capabilities = [[default capabilities, with dynamicRegistration for didChangeWatchedFiles true]], - }, }, } |
