lsp detection for docker compose yaml files
This commit is contained in:
parent
7f443fb843
commit
7eba0efed5
2 changed files with 10 additions and 3 deletions
7
init.lua
7
init.lua
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue