charludo / projectmgr.nvim Goto Github PK
View Code? Open in Web Editor NEWQuickly switch between projects and automate startup tasks.
Home Page: https://github.com/charludo/projectmgr.nvim
License: GNU General Public License v3.0
Quickly switch between projects and automate startup tasks.
Home Page: https://github.com/charludo/projectmgr.nvim
License: GNU General Public License v3.0
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 ?
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.
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'
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?
projectmgr.nvim/lua/projectmgr/db_adapter.lua
Lines 179 to 190 in 3af871d
local _ = db:exec(
"UPDATE projects SET name='"
.. name
.. "', path='"
.. path
.. "', commandstart='"
.. commandstart
.. "', commandexit='" -- this 'commandexit=' is missing
.. commandexit
.. "' WHERE name=='"
.. old_name
.. "';"
)
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?
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.
Although a .git folder is present in the directory, there is not git info being shown
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.
There should be a way to check if one is using unix or windows to change that command input appropriately.
can you slow down the Demo
plz!
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.
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
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).
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.
Well, I think the title says it all: I would love to see the project selection to be doable via telescope.
Advantages:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.