We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ftplugins]
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
deno -V
OS: Arch Linux
neovim/Vim :version output: NVIM v0.10.0-dev-1388+g7a6e27958a
:version
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/dpp_vim@v0.0.5/types.ts"; import { Denops, fn } from "https://deno.land/x/dpp_vim@v0.0.5/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
:message
[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/messagepack_rpc@v2.0.3/dispatcher.ts:36:12) [denops] at async Session.#dispatch (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:244:22) [denops] at async Session.#handleRequestMessage (https://deno.land/x/messagepack_rpc@v2.0.3/session.ts:271:33)
The text was updated successfully, but these errors were encountered:
OK. Fixed.
Sorry, something went wrong.
No branches or pull requests
Problems summary
Unable to load toml file containing only
[ftplugins]
Expected
Toml files containing only
[ftplugins]
should load successfully without issues.Environment Information
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.2OS: Arch Linux
neovim/Vim
:version
output: NVIM v0.10.0-dev-1388+g7a6e27958aProvide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
$XDG_CONFIG_HOME/nvim-dpp-toml/
NVIM_APPNAME=nvim-dpp-toml nvim
Screenshot (if possible)
Upload the log messages by
:redir
and:message
(if errored)The text was updated successfully, but these errors were encountered: