Comments (2)
"Organize imports" is a standard code action kind. You can see if neovim has any built-in trigger mechanism. If not, you can send a code action request with CodeActionContext.only = [CodeActionKind.SourceOrganizeImports]
.
from language-tools.
Thank you for this. That pointed me in the right direction.
For anyone else looking for this, this is the lua command I ended up using:
vim.lsp.buf.code_action { context = { only = { 'source.organizeImports' } }, apply = true }
from language-tools.
Related Issues (20)
- Svelte 5 various tasks
- Types for snippets broken in @5.0.0-next.42 HOT 2
- Problems with updating `magic-string`
- Language Client Not Running in Svelte Extension for VSCode HOT 1
- Svelte 5 - Snippet type errors when using checkjs with regular javascript HOT 1
- Latest extension update throws : "Extension 'Svelte for VS Code' is configured as formatter but it cannot format 'Svelte'-files" and CTRL + Click a component does not transport to that component HOT 3
- `import.meta.dirname` does not work in `svelte.config.js` HOT 1
- The type of `<svelte:self>` seems to be `any` making it possible to pass any props
- Error: Cannot find module @rollup/rollup-darwin-arm64. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). HOT 1
- Svelte 5: Using slot props gives a TS error in parent
- using "bundler" as moduleResolution breaks full path imports from node_modules HOT 1
- Svelte 5: `children` markup between `{#snippet}`s HOT 1
- Svelte 5: Component Imports in TS files not behaving correctly HOT 1
- Provide type-safe `value`s to `<option />` when the parent `<select />` has its value bound by a typed variable.
- can not use Action type with async handler HOT 1
- Snippet props are unusable in Svelte 69 HOT 5
- False "Missing Property" Highlighting on some URLSearchParams methods HOT 7
- Volar hybrid mode compatibility with typescript-svelte-plugin
- svelte-check: No preprocess config found but lang tag exists HOT 5
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 language-tools.