Merge pull request #1668 from snoweuph/fixes
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions

Fixes
This commit is contained in:
Snoweuph 2026-06-25 02:44:28 +02:00 committed by GitHub
commit 3a76436590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 41 additions and 11 deletions

View file

@ -377,6 +377,10 @@
- `bash` = `ash`, `dash`, `zsh`
- `yaml` = `yaml`
- Fix `astro-language-server` missing typescript.
- Fixed broken filetypes.
- Added `vim.lsp.presets.<name>` to contain LSP configurations. This allows for
more flexibility in nvf and reuse of LSPs across languages. Dropped
`deprecatedSingleOrListOf` in favor of `listOf` for the affected LSP options.

View file

@ -45,6 +45,17 @@ in {
};
config = mkIf cfg.enable (mkMerge [
{
vim.filetype.extension = {
vert = "glsl";
tesc = "glsl";
tese = "glsl";
frag = "glsl";
geom = "glsl";
comp = "glsl";
};
}
(mkIf cfg.treesitter.enable {
vim.treesitter = {
enable = true;
@ -56,7 +67,7 @@ in {
vim.lsp = {
presets = genAttrs cfg.lsp.servers (_: {enable = true;});
servers = genAttrs cfg.lsp.servers (_: {
filetypes = ["glsl" "vert" "tesc" "tese" "frag" "geom" "comp"];
filetypes = ["glsl"];
});
};
})

View file

@ -190,6 +190,13 @@ in {
};
config = mkIf cfg.enable (mkMerge [
{
vim.filetype.extension = {
gohtml = "gotmpl";
tmpl = "gotmpl";
};
}
(mkIf cfg.treesitter.enable {
vim.treesitter = {
enable = true;

View file

@ -112,7 +112,7 @@ in {
vim.lsp = {
presets = genAttrs cfg.lsp.servers (_: {enable = true;});
servers = genAttrs cfg.lsp.servers (_: {
filetypes = ["html" "shtml" "xhtml" "htm"];
filetypes = ["html" "xhtml"];
});
};
})

View file

@ -153,6 +153,10 @@ in {
};
config = mkIf cfg.enable (mkMerge [
{
vim.filetype.extension.mdx = "markdown";
}
(mkIf cfg.treesitter.enable {
vim.treesitter.enable = true;
vim.treesitter.grammars = [cfg.treesitter.mdPackage cfg.treesitter.mdInlinePackage];
@ -162,7 +166,7 @@ in {
vim.lsp = {
presets = genAttrs cfg.lsp.servers (_: {enable = true;});
servers = genAttrs cfg.lsp.servers (_: {
filetypes = ["markdown" "mdx"];
filetypes = ["markdown"];
});
};
})

View file

@ -82,7 +82,7 @@ in {
vim.lsp = {
presets = genAttrs cfg.lsp.servers (_: {enable = true;});
servers = genAttrs cfg.lsp.servers (_: {
filetypes = ["qml" "qmljs"];
filetypes = ["qml"];
});
};
})

View file

@ -18,11 +18,18 @@ in {
config = mkIf cfg.enable {
vim.lsp.servers.astro-language-server = {
enable = true;
cmd = [(getExe pkgs.astro-language-server) "--stdio"];
cmd = [
(getExe (pkgs.symlinkJoin {
name = "astro-ls-wrapper";
paths = [pkgs.astro-language-server];
meta.mainProgram = "astro-ls";
buildInputs = [pkgs.makeBinaryWrapper];
postBuild = "wrapProgram $out/bin/astro-ls --prefix NODE_PATH : '${pkgs.typescript}/lib/node_modules'";
}))
"--stdio"
];
root_markers = [".git" "package.json" "tsconfig.json" "jsconfig.json"];
init_options = {
typescript = {};
};
init_options.typescript = {};
before_init = mkLuaInline ''
function(_, config)
if config.init_options and config.init_options.typescript and not config.init_options.typescript.tsdk then

View file

@ -17,13 +17,11 @@
"cmake"
"cpp"
"cs"
"daml"
"dart"
"gitcommit"
"go"
"haskell"
"html"
"ink"
"java"
"javascript"
"javascriptreact"

View file

@ -39,7 +39,6 @@
"leaf"
"liquid"
"markdown"
"mdx"
"mustache"
"njk"
"nunjucks"