Giter Club home page Giter Club logo

projectmgr.nvim's Introduction

projectmgr.nvim's People

Contributors

charludo avatar sagarc03 avatar siddhantgoel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

projectmgr.nvim's Issues

Python support for pipenv or/and poetry

Hi, @charludo. At the beginning I will say it's great plugin.
I have a question about running pipenv or poetry python virtual env when switching projects. I tried to add "pipenv shell" in startup script, but it doesn't seem to work. Do you have some idea how to run virtualenv using your plugin ?

Projectmgr does not work properly with rmagatti/auto-session

I use projectmgr and rmagatti/auto-session, and they work fine if they aren't combined. When I start to use it together projectmgr hinders auto-session. This is the use case. I have a directory that was added to the project list. When open nvim in that directory auto-session cannot to load the session.

In order to fix this behavior I make one change in manage.lua file. I deleted api.nvim_command("bufdo bd") from M.close_project() function and after it auto-session starts work fine but this change broke projectmgr to load all buffers of a project.

Got `Error executing vim.schedule lua callback: attempt to index field 'semanticTokensProvider' (a nil value)` when open project

I am using NvChad with ProjectMgr.nvim. I added these lines onto my custom/plugins.lua.

  {
    "charludo/projectmgr.nvim",
    lazy = false, -- important!
  },

Then I run :ProjectMgr and to add new project. However, whenever I open my Typescript project through ProjectMgr, I always get this error upon entering and exiting Insert mode: Error executing vim.schedule lua callback, attempt to index field 'semanticTokensProvider'

image

My NvChad works fine when executing directly from the command line nvim <path>, but not when using :ProjectMgr. Would anyone know what are some potential causes of this error message?

Update project fails due to incorrect query.

"UPDATE projects SET name='"
.. name
.. "', path='"
.. path
.. "', commandstart='"
.. commandstart
.. "', '"
.. commandexit
.. "' WHERE name=='"
.. old_name
.. "';"
)

	local _ = db:exec(
		"UPDATE projects SET name='"
			.. name
			.. "', path='"
			.. path
			.. "', commandstart='"
			.. commandstart
			.. "', commandexit='" -- this 'commandexit=' is missing
			.. commandexit
			.. "' WHERE name=='"
			.. old_name
			.. "';"
	)

Dependecy for kkharji/sqlite.lua

sqlite.lua allow to use the same Lua library on many plugins.

Using It would allow an easier install, mainly for Windows users that is my case.

Also can be easier to install with anothers package manages other than packer (like Plug).

What you think?

Question: Startup/Shutdown Confusion

hello, I'm using projectmgr under AstroVim as a recent emacs convert. I'm trying to configure such that whatever buffers I have open are first saved and then closed before switching to the new project, which will open whatever files had been open in that session before. Then, if I switch back to the previous project, current state is saved, cleared and state from old project is restored.

Is this possible? I'm trying to simulate the concept of emacs "workspaces" essentially and would appreciate any help you can provide for how to do this. Thank you.

Git Info not displayed in Project Manager [Windows]

Although a .git folder is present in the directory, there is not git info being shown

Screenshot 2024-02-29 233803

This is due to a few commands in the file helpers.lua. In windows "2>/dev/null" is not a valid command (path is invalid). A temporary fix if powershell is used is to use "2>$null" instead.

[with the temporary fix]
Screenshot 2024-02-29 233551

There should be a way to check if one is using unix or windows to change that command input appropriately.

Make project store location configurable

Users should be able to specify where the file projectmgr saves the projects in lives.

Concrete usecase: the plugin does not work when installed through nixvim, since the projectfile is in the nix store and thus not writable.

Tab complete path when adding a project

It would be cool if path supports tab completion when adding a new project, similar to how :e[dit] command works. Otherwise it's bit annoying to copy/paste the path, not a big deal tho

Executing `:ProjectMgr` after install semi-fails

After following the installation steps on here (and manually installing the headers for sqlite3), I was able to successfully install ProjectMgr, however running the general command :ProjectMgr provides the following error

E5108: Error executing lua no such table: projects
stack traceback:
        [C]: in function 'nrows'
        ...cker/start/projectmgr.nvim/lua/projectmgr/db_adapter.lua:30: in function 'get_projects'
        ...k/packer/start/projectmgr.nvim/lua/projectmgr/window.lua:98: in function 'update_view'
        ...k/packer/start/projectmgr.nvim/lua/projectmgr/window.lua:115: in function 'open_window'
        [string ":lua"]:1: in main chunk

Note: after acknowledging the error, the floating window appears (with no contents, which makes sense as I haven't added any projects yet).

swap lsqlite3 to lsqlite3complete

Hi, let me start by saying great plugin and I appreciate the work you have put in.

I would like to invite you to consider swapping the dependencies from lsqlite3 to lsqlite3complete. The latter doesn't require you to have sqlite3 to be installed on you system, can find more information about his here. This avoids any conflicts with how things are complied for sqlite3 on the host system. If they are compiled using different complier you usually get this error.

symbol not found in flat namespace (_sqlite3_enable_load_extension)

I swapped the dependencies on my local copy of the plugin and the plugin works just fine.

Problem with lsqlite3

Hello, how are you? I hope that you are doing well!

I have a problem when opening nvim, this massage pop up:
2022-08-13_17:52:34

Feature request: telescope picker

Well, I think the title says it all: I would love to see the project selection to be doable via telescope.

Advantages:

  • searchable
  • easily define custom actions
  • have a previewer (this might be a bit more work)

Cursor position outside error

Below error occurs when executing :ProjectMgr,

E5108: Error executing lua ...ack/packer/start/projectmgr.nvim/lua/projectmgr/init.lua:150: Cursor position outside buffer
stack traceback:
        [C]: in function 'nvim_win_set_cursor'
        ...ack/packer/start/projectmgr.nvim/lua/projectmgr/init.lua:150: in function 'show_selection'
        [string ":lua"]:1: in main chunk

However it does open the Projects window, and the add keybinding works. But the project doesn't get added

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.