mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 12:12:13 +02:00
initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- ### AstroNvim C Extensions
|
||||
|
||||
local ffi = require "ffi"
|
||||
|
||||
-- Custom C extension to get direct fold information from Neovim
|
||||
ffi.cdef [[
|
||||
typedef struct {} Error;
|
||||
typedef struct {} win_T;
|
||||
typedef struct {
|
||||
int start; // line number where deepest fold starts
|
||||
int level; // fold level, when zero other fields are N/A
|
||||
int llevel; // lowest level that starts in v:lnum
|
||||
int lines; // number of lines from v:lnum to end of closed fold
|
||||
} foldinfo_T;
|
||||
foldinfo_T fold_info(win_T* wp, int lnum);
|
||||
win_T *find_window_by_handle(int Window, Error *err);
|
||||
int compute_foldcolumn(win_T *wp, int col);
|
||||
]]
|
||||
|
||||
return ffi
|
||||
Reference in New Issue
Block a user