diff options
author | Linnnus <[email protected]> | 2024-08-01 18:12:55 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-08-01 18:12:55 +0200 |
commit | 472d7eda18132993222299e246471d6792d38ddc (patch) | |
tree | 2543035beb253c20343c92ef42224ad1b1500017 /hosts/muhammed/home | |
parent | af0feaa1c5216c8fa7a7b38ff4eada6789914bce (diff) |
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.
Diffstat (limited to 'hosts/muhammed/home')
-rw-r--r-- | hosts/muhammed/home/dev-utils/default.nix | 1 | ||||
-rw-r--r-- | hosts/muhammed/home/neovim/default.nix | 1 | ||||
-rw-r--r-- | hosts/muhammed/home/neovim/filetype.nix | 14 | ||||
-rw-r--r-- | hosts/muhammed/home/neovim/lsp.nix | 6 |
4 files changed, 22 insertions, 0 deletions
diff --git a/hosts/muhammed/home/dev-utils/default.nix b/hosts/muhammed/home/dev-utils/default.nix index f7de33f..209c17b 100644 --- a/hosts/muhammed/home/dev-utils/default.nix +++ b/hosts/muhammed/home/dev-utils/default.nix @@ -29,6 +29,7 @@ nim guile vemf + gleam # Rust ecosystem rustc 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 |