shougo / dpp-ext-toml Goto Github PK
View Code? Open in Web Editor NEWToml ext for dpp.vim
License: MIT License
Toml ext for dpp.vim
License: MIT License
Unable to load toml file containing only [ftplugins]
Toml files containing only [ftplugins]
should load successfully without issues.
dpp-ext-toml version (SHA1): 3349787
dpp.vim version (SHA1): Shougo/dpp.vim@b0542d3
denops.vim version (SHA1): vim-denops/denops.vim@ea7370b
deno version(deno -V
output): deno 1.37.2
OS: Arch Linux
neovim/Vim :version
output: NVIM v0.10.0-dev-1388+g7a6e27958a
let s:dpp_dir = stdpath("data") . '/dpp'
let $BASE_DIR = stdpath("config")
execute 'set runtimepath+=' . s:dpp_dir . '/repos/github.com/Shougo/dpp.vim'
execute 'set runtimepath+=' . s:dpp_dir . '/repos/github.com/Shougo/dpp-ext-toml'
execute 'set runtimepath+=' . s:dpp_dir . '/repos/github.com/vim-denops/denops.vim'
autocmd User DenopsReady call dpp#make_state(s:dpp_dir, expand('$BASE_DIR/config.ts'))
import {
BaseConfig,
ConfigReturn,
ContextBuilder,
Dpp,
Plugin,
} from "https://deno.land/x/[email protected]/types.ts";
import { Denops, fn } from "https://deno.land/x/[email protected]/deps.ts";
export class Config extends BaseConfig {
override async config(args: {
denops: Denops;
contextBuilder: ContextBuilder;
basePath: string;
dpp: Dpp;
}): Promise<ConfigReturn> {
const [context, options] = await args.contextBuilder.get(args.denops);
await args.dpp.extAction(args.denops, context, options, "toml", "load", {
path: await fn.expand(args.denops, "$BASE_DIR/dpp_ft.toml"),
options: { lazy: false },
});
return {
plugins: [] as Plugin[],
};
}
}
[ftplugins]
lua = '''
setlocal tabstop=2
setlocal shiftwidth=0
setlocal expandtab
'''
$XDG_CONFIG_HOME/nvim-dpp-toml/
NVIM_APPNAME=nvim-dpp-toml nvim
:redir
and :message
(if errored)[denops] Failed to handle message 2,invoke,dispatch,dpp,makeState,/home/{username}/.local/share/nvim-dpp-toml/dpp,/home/{username}/.config/nvim-dpp-toml/config.ts,nvim TypeError: Cannot read properties of undefined (reading 'map')
[denops] at Object.callback (file:///home/{username}/.local/share/nvim-dpp-toml/dpp/repos/github.com/Shougo/dpp-ext-toml/denops/@dpp-exts/toml.ts:41:38)
[denops] at eventLoopTick (ext:core/01_core.js:183:11)
[denops] at async Dpp.extAction (file:///home/{username}/.local/share/nvim-dpp-toml/dpp/repos/github.com/Shougo/dpp.vim/denops/dpp/dpp.ts:98:17)
[denops] at async Config.config (file:///home/{username}/.config/nvim-dpp-toml/config.ts#128.640317:19:5)
[denops] at async Object.makeState (file:///home/{username}/.local/share/nvim-dpp-toml/dpp/repos/github.com/Shougo/dpp.vim/denops/dpp/app.ts#1264.5072559999999:55:28)
[denops] at async dispatch (https://deno.land/x/[email protected]/dispatcher.ts:36:12)
[denops] at async Session.#dispatch (https://deno.land/x/[email protected]/session.ts:244:22)
[denops] at async Session.#handleRequestMessage (https://deno.land/x/[email protected]/session.ts:271:33)
I've found some outdated descriptions in doc/dpp-ext-toml.txt
:
MultipleHook
is now exported from jsr:@shougo/dpp-vim
, users does not have to define it manually.dpp-ext-toml/doc/dpp-ext-toml.txt
Lines 36 to 41 in e854e37
undefined
.dpp-ext-toml/doc/dpp-ext-toml.txt
Line 63 in e854e37
dpp-ext-toml/doc/dpp-ext-toml.txt
Line 79 in e854e37
ftplugin
attribute in toml has been renamed to ftplugins
.dpp-ext-toml/doc/dpp-ext-toml.txt
Lines 107 to 108 in e854e37
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.