pieces-app / vim-prototype

A prototype VIM plugin
MIT License
2 stars 1 forks source link

(1) Research, Pain Points, Setup and Learning #1

Open jwafu opened 6 months ago

jwafu commented 6 months ago

During the initial 3 weeks, the main focus will be project setup and configuration. This will help support the project and the project developer.

On our side we will spend this time getting the LUA SDK ready for you to use during stage 2.

shivay-at-pieces commented 6 months ago

Some inspiration:

  1. https://www.reddit.com/r/vim/comments/12io0gw/vimai_chatgpt_and_openai_plugin_new_features/
  2. https://www.reddit.com/r/vim/comments/zk4t88/aivim_plugin_for_editing_and_generating_text/
jwafu commented 6 months ago

Here is the PDF doc on the Vim Plugin Project:

Pieces Phase 1.pdf

jasroopdhingra commented 6 months ago

Updates to tasks below:

  • [x] Learning about LUA

    • Vim doesn't support plugins written in LUA, Vim and Neovim support plugins written in Vimscript
  • [x] understanding VIM vs NEOVim

  • [x] Understanding what your own pain points are with VIM, things that you do not like, annoyances in you workflow

    • difficult to search through code and files (multiple-step process)
  • [x] Adding the initial project problem, goal and some detail on how and why you would achieve this to the project README

    • edited the README (pull request needs to be reviewed and accepted)
  • [x] Researching other VIM plugins, their functionality, and where they are missing features

  • [x] Building a LUA starter project

starting with enabling plugin written in Vimscript to allow for multi-file search in Vim and Neovim

see Pieces Phase 1 pdf above for more details.

joshuadanpeterson commented 4 months ago

In response to the claim that Vim can't run Lua plugins and that plugins need to be written in Vimscript, this is not entirely accurate. If your Vim installation has Lua support (indicated by +lua), you can indeed run Lua plugins in Vim. To verify Lua support in your Vim, you can use the command :echo has('lua') in Vim. If it returns 1, Lua is enabled, allowing you to use Lua plugins.

kwrobert commented 3 months ago

Hey just a thought here, you can compile both Vim and Neovim with python support, which lets you interact with the editor and develop plugins in Python. Most package managers let you install both editors with Python support enabled.