-- in my packer.nvim config
use {
'anasinnyk/nvim-k8s-crd',
requires = { 'neovim/nvim-lspconfig' },
config = function()
require('k8s-crd').setup({
cache_dir = vim.fn.expand("$HOME/.cache/nvim-k8s-crd/"),
k8s = { file_mask = "*.yaml", },
})
end
}
what ends up happening is that $HOME/.cache/nvim-k8s-crd/ ends up being expanded, but then the LSP server never pulls any data while editing any files. however if I change the dir to .cache/nvim-k8s-crd/, all JSON schemas get downloaded to my cwd, and the LSP loads in suggestions/annotations properly.
very weird.
PS: this plugin is actually really friggen awesome, great work and thank you!
my config:
what ends up happening is that
$HOME/.cache/nvim-k8s-crd/
ends up being expanded, but then the LSP server never pulls any data while editing any files. however if I change the dir to.cache/nvim-k8s-crd/
, all JSON schemas get downloaded to mycwd
, and the LSP loads in suggestions/annotations properly.very weird.
PS: this plugin is actually really friggen awesome, great work and thank you!