fix finder highlight in grep

This commit is contained in:
2026-02-03 11:12:59 +02:00
parent b84e46bda1
commit 2c8524df9d
4 changed files with 72 additions and 43 deletions

View File

@@ -7,10 +7,23 @@ vim.env.PATH = vim.fn.stdpath('data') .. '/mason/bin:' .. vim.env.PATH
vim.filetype.add({
pattern = {
['.*/templates/.*%.ya?ml'] = 'yaml.helm-values',
['.*/templates/.*%.ya?ml'] = 'helm',
['.*/manifests/.*%.ya?ml'] = 'helm',
['.*/crds/.*%.ya?ml'] = 'helm',
['.*/kubernetes/.*%.ya?ml'] = 'helm',
['.*/k8s/.*%.ya?ml'] = 'helm',
['.*/charts/.*%.ya?ml'] = 'helm',
},
})
function _G.see(val)
local lines = vim.split(vim.inspect(val), '\n')
vim.cmd('new')
vim.api.nvim_buf_set_lines(0, 0, -1, false, lines)
vim.bo.buftype = 'nofile'
vim.bo.bufhidden = 'wipe'
end
require('core.options')
require('core.keymaps')
require('core.events')