fix(neovim): fix .env.* filetype

This commit is contained in:
Felix Schröter 2023-04-09 21:35:23 +02:00
parent 2fea5e6bbf
commit 9a4835e394
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -15,7 +15,7 @@ vim.filetype.add({
rcall = "glsl",
},
pattern = {
[".env.*"] = "direnv",
[".env.*"] = "sh",
[".*"] = function(path, bufnr)
local first_line = vim.api.nvim_buf_get_lines(bufnr, 0, 1, true)[1]
if first_line ~= nil and first_line:match("^#!.*nix%-shell") ~= nil then