Comments (4)
I'd appreciate a pointer on how post-setup lua code tends to be run for plugins that have setup for that.
Generally speaking, I think we normally do pre/post setup code by calling setup manually.
Plugins implemented with mkNeovimPlugin
tend to automatically generate code to call setup
, but mkNeovimPlugin
could easily be extended to accept pre
/postExtraConfigLua
arguments if needed.
In a normal neovim setting, those should be set after calling
setup()
. Which I think is the reason for why [it] does not work in my nix configuration
I don't think we ever call a DAP setup
function, however we do do some "setup config" by adding lines to plugins.dap.extensionConfigLua
(internal option) and here:
nixvim/plugins/dap/default.nix
Lines 86 to 99 in 40598fc
Maybe someone more familiar with our DAP module could help better here.
Maybe, you'd even want to generalize by always making it so that in nixvim, options that aren't accepted by the setup are then attempted to be added to the plugin's table.
I'm not sure what you mean by this, since the plugin settings table is what is passed to the setup function.
As for options unknown to nixvim, these are included in the table passed to setup
(as-per RFC42) for any module that has been written/refactored recently.
from nixvim.
oops, sorry for that "bug" label, that's inaccurate
from nixvim.
The chances of me implementing this myself dropped since I'm more fine interspersing lua code throughout my nixvim config.
Even though this feature is too my knowledge, still unimplemented, I'm fine with closing it.
from nixvim.
Even though this feature is too my knowledge, still unimplemented, I'm fine with closing it.
If you think others may find it useful, you're welcome to leave it open and "unsubscribe" if you're not interested in notificatione. Otherwise if you think it has no value, closing is fine.
from nixvim.
Related Issues (20)
- Better `package` option helpers HOT 1
- [BUG] The update CI schedules on forks
- [PLUGIN REQUEST] FeMaco
- [BUG] Alias @astrojs/language-server is still in node-packages.nix HOT 2
- [BUG] flaky codium test in cmp-sources
- [BUG] `disallowedRequisites` is used on a derivation that doesn't support it HOT 2
- [PLUGIN REQUEST] flutter-tools
- [BUG] Error with vscode-langservers-extracted dependent lsp servers HOT 3
- [BUG] Error when lsp html server is enabled HOT 1
- how to lazy: plugins with submodules
- [BUG] enabling some lsp servers fails to build because of `vscode-langservers-extracted` HOT 3
- [BUG] lightline is generating a wrong key name for component_function HOT 2
- [BUG] Conform plugin config using deprecated syntax for stop after first formatter HOT 4
- 'diagnostics' seemingly unavailable under programs.nixvim.* when used with home-manager HOT 2
- [PLUGIN REQUEST] helpview.nvim
- cmp `autoEnableSources` behaviour should be documented more prominently
- [PLUGIN REQUEST] Avante
- [PLUGIN REQUEST] ts-comments.nvim
- [PLUGIN REQUEST] sg.nvim (Cody)
- A flag to enable icon support in telescope
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixvim.