nvim/README.md
RingOfStorms (Joshua Bell) eb7f522795 all the languages!
2024-05-03 18:56:57 -05:00

2.4 KiB

NVIM config

Goals:

  • Works with or without nix
  • LSP integration with the current project's settings if available

Running

With Nix

nix run 'github:ringofstorms/nvim/nix-flake'

in NixOS

-- in flake.nix#inputs
ringofstorms-nvim = {
  url = "github:RingOfStorms/nvim/nix-flake";
  inputs.nixpkgs.follows = "nixpkgs";
};
-- in nix module
environment.systemPackages = with pkgs; [
  ringofstorms-nvim.packages.${settings.system.system}.neovim
];

Without Nix

TODO update this section

  • Must have all required programs installed and available on path
    • neovim >= 0.5
    • Evertying listed in flake.nix runtime dependencies variable near the top of the file
      • These must be available on the path
      • Treesitter/Lazy/Mason will install all other requirements needed on other systems
git clone https://github.com/RingOfStorms/nvim ~/.config/nvim
nvim --headless "+Lazy! sync" +qa

Backup existing config:

DATE=$(date +"%Y%m%d")
mv ~/.config/nvim ~/.config/nvim_$DATE.bak
mv ~/.local/share/nvim ~/.local/share/nvim_$DATE.bak
mv ~/.local/state/nvim ~/.local/state/nvim_$DATE.bak

or remove existing config:

rm -rf ~/.config/nvim 
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim 

NOTES/TODOS

  • See what linters/formaters to add or are the LSP's enough?

FUTURE