Introduction In the flutter application I am creating I need a single place where the app theme can be added which will reflect in the whole application.This includes color,font size and other look and feel elements.This is so if any changes are required in the UI. It can be easily done at a single place.Also the text size and position of other elements should be dynamic based on the screen size for a responsive UI.
Fluter IDE with Neovim 0.5 ,built in LSP and lua on windows
Introduction So I recently upgraded to NeoVim 0.5 stable release.This release has a inbuilt LSP(Language server protocol) which is a client to LSP servers.It also includes a Lua framework for building enhanced LSP tools. I used coc-nvim earlier as LSP client to interact with Dart LSP server which it does automatically using coc-flutter extension.If you want to know how to do that read my previous blog post for more details.
Creating Vim binding for checkbox using regex for lua configuration
So I have todo list in my vim notes and I wanted to create vim bindings to create checkbox ,close checkbox,open checkbox.I found a article by marcelfischer which had a similar requirement.He had used regex to do so.I decided to do the same for my lua configuration. Requirement If there is item with * then we need to add a checkbox * todo item 1 * will change into * [ ]todo item 1 * [ ] If there is checkbox we should be able to close the same
Storing Dotfiles on git repository using git orphan branches
So recently Neovim 0.5 version was released with in built LSP(Language Server Protocol) and Lua language support. So I modifed my init.vim with ‘coc-nvim’ to init.lua and the in built LSP.I want to save both the config files in GitHub.I googled and found that people have dot files repository where they store all the configuration files.So I decided to follow the same approach.I used the git orphan branches to store different configuration files.
Vim folding to arrange NeoVim config file
Folding in vim I have started using NeoVim as my editor.So I have added lot of configurations in my init.vim file.I keep updating the same when I find some new requirements. So I wanted to manage all the configurations related to NeoVim and its Plugins. I checked various ways and found that folding was one of the methods to do that.Folding is a way of collapsing a group of lines into a single line.
Setup Vim as a Flutter IDE using coc-nvim on windows
I recently started using Neovim as my text editor.Also right now I am learning Flutter to create a mobile application for my personal project. So I decided to setup Neovim as a Flutter IDE.With this I can practice Vim with Flutter. Install Plugins To setup Neovim as Flutter IDE we need to use coc.nvim plugin .Also for formatting, I am using the dart_vim_plugin.We also need the snippets to be loaded like the ones for stateless/stateful widget.
Install Neovim on Windows
I had wanted to use vim as my editor for a long time.So in the lockdown time I gave it a try.I installed NeoVim on windows.Below are the steps for that Install Neovim using chocolatey So I use chocolatey package manager for installing different software on windows.I installed the Neovim also using chocolatey with the below command. Ensure you use the terminal with Run as administrator. choco install neovim Setting up init.
Hugo with Git Hub Pages on Windows
I created this blog using Hugo and Git Hub Pages on windows.Hugo is a static site generator.Its very fast and written in Go language.Git Hub Pages lets you host the static sites created using Hugo. Installing Hugo First install Hugo on windows.I used the chocolatey package manager to install Hugo on windows.There are two versions available to install.I installed the extended version as it is required if you plan to customize the themes you will be using.