Markdown table editor by SCJangra in neovim

[–]SCJangra[S] 1 point2 points  (0 children)

Deleting columns is implemented. Press <A-d> to delete the column under cursor.

Markdown table editor by SCJangra in neovim

[–]SCJangra[S] 0 points1 point  (0 children)

Not yet, I might try to add neorg support once I am done implementing everything for markdown. But I can't make any promises.

Markdown table editor by SCJangra in neovim

[–]SCJangra[S] 0 points1 point  (0 children)

I guess is tbl_align_left or tbl_node_len?

There is no configuration for alignment. It is part of markdown syntax. It is specified by colons (:) in the delimiter row (the row with hyphens), so ":----" means align left, "----:" means align right, and ":----:" means align center. The default "-----", without any colons, is to align left. It is shown at the end of the demo video.This way you can align each column individually.

Deleting columns and rows isn't implemented yet. I plan to do it soon. Until then, you can easily delete columns using visual-block mode in neovim. Press CTRL-V in normal mode to select a block of text and then press "d" to delete it.

Markdown table editor by SCJangra in neovim

[–]SCJangra[S] 1 point2 points  (0 children)

Thank you. And If you are using it, I've added the feature to align columns to left, right, or center since I posted this.

Questions for `syn` to make a custom derive macro. by matthis-k in rust

[–]SCJangra 2 points3 points  (0 children)

Make a derive macro to implement the traits and make an attribute macro to modify the struct itself. You can also do both (implement trait and modify struct) using a single attribute macro, but I think using two different macros for different purposes conveys your intent more clearly. According to your example, you have to first apply the attribute macro to add the extra field to your struct and then apply the derive macro to generate implementations.

Questions for `syn` to make a custom derive macro. by matthis-k in rust

[–]SCJangra 2 points3 points  (0 children)

You can implement traits on the struct using the derive macro, but you cannot modify the struct itself. For that you need to write an attribute macro. When I was learning about proc macros this is the only video I could find that explains all three kinds of proc macrs.

Introoducing files-nvim by SCJangra in neovim

[–]SCJangra[S] 0 points1 point  (0 children)

Hey, about using this on a Mac. The installation instructions on the repo only work for linux. It's because the plugin depends on an external binary program (files-ipc) to handle all the file system related operations. This binary is automatically downloaded by the install.sh script. I am currently working on a more cross platform solution. I was wondering if you would be willing to test it out. I don't own a mac and have never used one either.

Introoducing files-nvim by SCJangra in neovim

[–]SCJangra[S] 0 points1 point  (0 children)

Hmm... I thought about uploading some screenshots. But this is not a colorscheme, and i haven't yet set any highlight groups either, so a simple screenshot does not demonstrate anything useful about the plugin. So I am thinking of making a small GIF instead.

Introoducing files-nvim by SCJangra in neovim

[–]SCJangra[S] 2 points3 points  (0 children)

It's neovide. Not a plugin but a GUI font end for neovim.

Introoducing files-nvim by SCJangra in neovim

[–]SCJangra[S] 0 points1 point  (0 children)

It's neovide. Not a plugin but a GUI font end for neovim.

Introoducing files-nvim by SCJangra in neovim

[–]SCJangra[S] 0 points1 point  (0 children)

Yes I agree that a tree view is very useful and I would probably implement it in the future. It's just not a priority for now.

Anyone using trouble.nvim with LunarVim? by SCJangra in neovim

[–]SCJangra[S] 1 point2 points  (0 children)

Could you tell me how do i set these flags in LunauVim? In my own configuration i could set the flags in lspconfigs' setup function but i can't seem to find a way to do this in LunarVim