Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdheepak/ts-julia-actions
https://github.com/kdheepak/ts-julia-actions
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kdheepak/ts-julia-actions
- Owner: kdheepak
- License: mit
- Created: 2023-07-23T08:31:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-24T00:15:09.000Z (5 months ago)
- Last Synced: 2024-07-24T11:52:37.967Z (5 months ago)
- Language: Lua
- Size: 14.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-julia-actions
This is a Neovim plugin written in Lua that uses Tree-sitter to transform Julia function definitions from the single-line format to the multiline format.
https://github.com/kdheepak/ts-julia-actions/assets/1813121/b573438e-4987-40a2-84a9-8491d1cb91c3
### Prerequisites
- Neovim 0.9.0 or above
- Tree-sitter
- Julia Tree-sitter grammar### Installation
1. Use your favorite plugin manager:
**lazy.nvim**
```lua
return {
"kdheepak/ts-julia-actions",
opts = {},
dependencies = {
"nvim-treesitter/nvim-treesitter",
},
}
```2. Install Julia Tree-sitter grammar
Either automatically:
```lua
return {
"kdheepak/ts-julia-actions",
opts = {},
dependencies = {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
require'nvim-treesitter.configs'.setup {
ensure_installed = { "julia" },
}
end,
},
}
```Or manually:
```vim
:TSInstall julia
```### Usage
Place cursor anywhere inside a function and run `:JuliaShortToLongFunctionAction` or `JuliaLongToShortFunctionAction`.