Skip to main content
Module

x/ddc_vim/deps.ts>fn.did_filetype

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.did_filetype
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/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.

Parameters

denops: Denops

Returns

Promise<unknown>