From 472d7eda18132993222299e246471d6792d38ddc Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 1 Aug 2024 18:12:55 +0200 Subject: muhammed: Add Gleam This patch sets up a Gleam development environment on Muhammed. I also took this opportunity to move a whole bunch of development-related filetype plugins to Muhammed, reducing closure size on Ahmed. --- hosts/muhammed/home/neovim/default.nix | 1 + hosts/muhammed/home/neovim/filetype.nix | 14 ++++++++++++++ hosts/muhammed/home/neovim/lsp.nix | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 hosts/muhammed/home/neovim/filetype.nix (limited to 'hosts/muhammed/home/neovim') diff --git a/hosts/muhammed/home/neovim/default.nix b/hosts/muhammed/home/neovim/default.nix index bba50be..8efb97d 100644 --- a/hosts/muhammed/home/neovim/default.nix +++ b/hosts/muhammed/home/neovim/default.nix @@ -3,5 +3,6 @@ {...}: { imports = [ ./lsp.nix + ./filetype.nix ]; } diff --git a/hosts/muhammed/home/neovim/filetype.nix b/hosts/muhammed/home/neovim/filetype.nix new file mode 100644 index 0000000..73d5f5a --- /dev/null +++ b/hosts/muhammed/home/neovim/filetype.nix @@ -0,0 +1,14 @@ +# This module configures various syntax/filetype plugins for Neovim. +{pkgs, ...}: { + programs.neovim.plugins = with pkgs; + with vimPlugins; [ + # Filetype plugins + vim-nix + vim-noweb + vim-janet + nim-vim + vim-crystal + vim-svelte + gleam-vim + ]; +} diff --git a/hosts/muhammed/home/neovim/lsp.nix b/hosts/muhammed/home/neovim/lsp.nix index 71d97c5..b776b08 100644 --- a/hosts/muhammed/home/neovim/lsp.nix +++ b/hosts/muhammed/home/neovim/lsp.nix @@ -79,6 +79,12 @@ rust_analyzer = { cmd = { "${pkgs.rust-analyzer}/bin/rust-analyzer" }, }, + rust_analyzer = { + cmd = { "${pkgs.rust-analyzer}/bin/rust-analyzer" }, + }, + gleam = { + cmd = { "${pkgs.gleam}/bin/gleam", "lsp" }, + }, }; for server, config in pairs(servers) do -- set common options -- cgit v1.2.3