There are my favourite plugins and settings, in future I'll also extend it with snippets I am working on multiple devices so it's great to sync configs between.
Also, I love the idea of actually OWNING software Instead of paying each month (I am Jetbrains user since ~10 years)
bash <(curl -sL "https://raw.githubusercontent.com/marosiak/lazyvim-go-dart/refs/heads/master/install.sh")
- 💤 LazyVim (Golang + Flutter + Dart + WSL)
It's tested tested with
- Os X with M1 Pro (ARM)
- Windows WSL (Ubuntu)
- First of all install
neovim
git
curl
rust
withcargo
package managertree-sitter
(Should be shipped with neovim and available from your$PATH
)
Clipboard wont work unless you'll configure it. The required configs are already in this repo, so you'll need to install Win32Yank Just download release and unpack into place where your windows $PATH is configure.
Use :LazyHealth
and resolve at least problems.
In ideal scenario also warnings for the most optimal results
(PS. I don't recommend updating mason, let's stick with what lazyvim offers as long as it does the job)
Often it's that bin points into .exe instead of linux executable
For example you've copied text from your windows chrome, and you can't paste inside of nvim using p
Open windows terminal (without WSL) and type win32yank.exe - if it was not found, google how to setup $PATH on windows PS. Remember to fully restart terminal
WSL adds windows $PATH into your linux $PATH because thru WSL you can run .exe - often it's problematic
Simplest solution which I've found is to install desired tool on WSL.
Then check which dart
or which go
or any other tool
If it points into something like ❌/mnt/c/...
❌ then you'll need to edit your $PATH
I've searched .profile .zshrc and .bashrc but didn't find $PATH
So easies way is to add something like this to you bash profile:
PATH=$(REMOVE_PART="/mnt/c/flutter/bin" sh -c 'echo ":$PATH:" | sed "s@:$REMOVE_PART:@:@g;s@^:\(.*\):\$@\1@"')
Skip if you don't care
mv ~/.config/nvim{,.bak}
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
git clone [email protected]:marosiak/lazyvim-go-dart.git ~/.config/nvim
cd ~/.config/nvim && git pull
Open nvim, go into Lazy tab and sync
Press <leader>cg
in order to see extra features, for now just a few, but there are more LSP oriented just in <leader>c
Common ones: :GoBuild
:GoRun
:GoStop
:GoTest
:GoCoverage
You can close appearing terminal with GoTermClose
or just <leader>w
(basically use window navigations)
https://github.com/ray-x/go.nvim?tab=readme-ov-file#build-and-test
Full description: https://github.com/nvim-flutter/flutter-tools.nvim
Common commands: :FlutterRun
:FlutterDevices
:FlutterQuit
(and more)
and my favourite: :FlutterOutlineOpen
There are a lot of keymaps from lazyvim https://www.lazyvim.org/keymaps