Skip to content
New issue

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

neovim v0.9.5 and astonvim install #11

Open
hholst80 opened this issue Jan 24, 2024 · 3 comments
Open

neovim v0.9.5 and astonvim install #11

hholst80 opened this issue Jan 24, 2024 · 3 comments

Comments

@hholst80
Copy link

How do I install this with AstoNvim?

nvim ~/.config/nvim/lua/user/plugins.lua

return {
  { "terrastruct/d2-vim", lazy = "false" },
}

but ft=d2 is not available when I open up a file with a .d2 suffix.

@ngoettin
Copy link

ngoettin commented Feb 2, 2024

I believe, I have the same problem:

Error detected while processing BufNewFile Autocommands for "*.d2"..FileType Autocommands for "*"..Syntax Autocommands for "d2"..function d2#syntax_post:                                                                                                                                                                    
line    1:                                                                                                                                                                                                                                                                                                                   
E121: Undefined variable: b:included_syntaxes                                                                                                                                                                                                                                                                                
E116: Invalid arguments for function index

on an empty .d2 file

@erzz
Copy link

erzz commented Apr 15, 2024

Same as @ngoettin here - on any .d2 file. Mine is a simple lazy setup via kickstarter where i am just loading as a plugin:

Its completely none functional... no highlighting or anything

EDIT: five mins later I found a solution

local d2 = {
    'terrastruct/d2-vim',
    ft = 'd2',
}
return { d2 }

@jcarpenter12
Copy link

Thanks @erzz for your solution that worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants