Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.did_filetype

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.did_filetype
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { did_filetype } = fn;

Returns TRUE when autocommands are being executed and the FileType event has been triggered at least once. Can be used to avoid triggering the FileType event again in the scripts that detect the file type. FileType Returns FALSE when :setf FALLBACK was used. When editing another file, the counter is reset, thus this really checks if the FileType event has been triggered for the current buffer. This allows an autocommand that starts editing another buffer to set 'filetype' and load a syntax file.

Returns

Promise<number>