lsp detection for docker compose yaml files

This commit is contained in:
peturparkur 2024-08-28 15:55:10 +02:00
parent 7f443fb843
commit 7eba0efed5
2 changed files with 10 additions and 3 deletions

View file

@ -204,6 +204,13 @@ vim.api.nvim_create_autocmd('TextYankPost', {
end,
})
-- vim.api.nvim_create_augroup('DockerFileTypeDetection', { clear = true })
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
pattern = { 'docker-compose.yaml', 'compose.yaml' },
command = 'set filetype=yaml.docker-compose',
-- group = 'DockerFileTypeDetection',
})
-- [[ Install `lazy.nvim` plugin manager ]]
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'