Skip to content

Commit a0dc27e

Browse files
committed
feat: add typst lsp
1 parent eeb58bb commit a0dc27e

File tree

3 files changed

+38
-33
lines changed

3 files changed

+38
-33
lines changed

flake.lock

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
home-manager.inputs.nixpkgs.follows = "nixpkgs";
88
vscode-server.url = "github:nix-community/nixos-vscode-server";
99
vscode-server.inputs.nixpkgs.follows = "nixpkgs";
10-
nixvim = {
11-
url = "github:nix-community/nixvim";
12-
inputs.nixpkgs.follows = "nixpkgs";
13-
};
10+
nixvim.url = "github:nix-community/nixvim";
11+
nixvim.inputs.nixpkgs.follows = "nixpkgs";
1412
nix-darwin.url = "github:LnL7/nix-darwin";
1513
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
1614

modules/nixvim.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ in
114114
lastplace.enable = true;
115115
# Improved buffer deletion
116116
bufdelete.enable = true;
117-
notify.enable = true;
117+
notify = {
118+
enable = true;
119+
topDown = false;
120+
};
118121
# Improved text wrapping
119122
wrapping.enable = true;
120123
# Automatically saves and restores session state
@@ -156,6 +159,7 @@ in
156159
};
157160
# TypeScript language server
158161
ts_ls.enable = true;
162+
tinymist.enable = true;
159163
};
160164
};
161165
# Add icons to completion menu
@@ -244,6 +248,9 @@ in
244248
# Load additional Lua configuration from init.lua
245249
extraConfigLua = builtins.readFile ./init.lua;
246250
# Add extra plugins (in this case, aiken-vim)
247-
extraPlugins = [ aiken-vim ];
251+
extraPlugins = [
252+
aiken-vim
253+
pkgs.vimPlugins.typst-preview-nvim
254+
];
248255
};
249256
}

0 commit comments

Comments
 (0)