lsp detection for docker compose yaml files
This commit is contained in:
parent
7f443fb843
commit
7eba0efed5
7
init.lua
7
init.lua
|
@ -204,6 +204,13 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
end,
|
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 ]]
|
-- [[ Install `lazy.nvim` plugin manager ]]
|
||||||
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
|
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
|
||||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||||
|
|
|
@ -2,9 +2,9 @@ local M = {}
|
||||||
|
|
||||||
-- any cases where name of package is different from the binary name
|
-- any cases where name of package is different from the binary name
|
||||||
local name_to_bin = {
|
local name_to_bin = {
|
||||||
['csharp-language-server'] = 'csharp-ls',
|
-- ['csharp-language-server'] = 'csharp-ls',
|
||||||
['python-lsp-server'] = 'pylsp',
|
-- ['python-lsp-server'] = 'pylsp',
|
||||||
['docker-compose-language-service'] = 'docker-compose-langserver',
|
-- ['docker-compose-language-service'] = 'docker-compose-langserver',
|
||||||
}
|
}
|
||||||
|
|
||||||
-- We guarantee 'ensure_installed' package is installed locally
|
-- We guarantee 'ensure_installed' package is installed locally
|
||||||
|
|
Loading…
Reference in New Issue