blob: 01f48029696ae095e015080434db3a295c12c89b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# This module configures development tools for Svelte.
{pkgs, ...}: {
programs.neovim = {
plugins = with pkgs.vimPlugins; [
vim-svelte
];
extraLuaConfig = ''
local util = require("lspconfig.util")
require("lspconfig")["svelte"].setup({
cmd = { "${pkgs.nodePackages_latest.svelte-language-server}/bin/svelteserver", "--stdio" },
root_dir = util.root_pattern("package.json", ".git", "deno.json", "deno.jsonc"),
})
'';
};
}
|