49 lines
1.4 KiB
Lua
49 lines
1.4 KiB
Lua
local M = {}
|
|
|
|
-- vim.filetype.add({
|
|
-- pattern = {
|
|
-- ['.*/templates/.*%.ya?ml'] = 'yaml.helm-values',
|
|
-- ['.*/templates/.*%.tpl'] = 'yaml.helm-values',
|
|
-- },
|
|
-- })
|
|
|
|
-- vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, {
|
|
-- pattern = '**/templates/**/*.y?ml',
|
|
-- callback = function()
|
|
-- vim.bo.filetype = 'yaml.helm-values'
|
|
-- end,
|
|
-- })
|
|
--
|
|
function M.get()
|
|
return {
|
|
{
|
|
ft = 'yaml.helm-values',
|
|
ts = 'helm',
|
|
lsp = 'helm-ls',
|
|
},
|
|
{
|
|
ft = 'yaml',
|
|
ts = 'yaml',
|
|
lsp = 'yaml-language-server',
|
|
format = { 'prettierd', 'prettier' },
|
|
},
|
|
{ ts = { 'yaml', 'toml', 'sql', 'diff', 'dockerfile', 'gitcommit', 'gitignore' } },
|
|
{ ts = { 'c', 'cpp', 'go', 'rust', 'python' } },
|
|
|
|
{ ft = 'markdown', ts = { 'markdown', 'markdown_inline' }, format = 'prettier' },
|
|
{ ft = 'bash', lsp = 'bash-language-server', lint = 'shellcheck', format = 'shfmt' },
|
|
{ ft = 'lua', lsp = 'lua-language-server', lint = 'luacheck', format = 'stylua' },
|
|
{ ft = { 'json', 'jsonc' }, lsp = 'json-lsp' },
|
|
{ ft = 'html', lsp = 'html-lsp' },
|
|
{ ft = 'css', lsp = { 'css-lsp', 'tailwindcss-language-server' } },
|
|
{
|
|
ft = { 'javascript', 'typescript', 'javascriptreact', 'typescriptreact' },
|
|
ts = { 'javascript', 'typescript', 'tsx' },
|
|
lsp = { 'vtsls', 'eslint-lsp' },
|
|
format = { 'prettierd', 'prettier' },
|
|
},
|
|
}
|
|
end
|
|
|
|
return M
|