fix(neovim): fix .env.* filetype
This commit is contained in:
parent
2fea5e6bbf
commit
9a4835e394
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue