mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-13 13:53:50 +00:00
Merge pull request #1511 from NotAShelf/revert-1505-patch/asm
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
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
Revert "language/asm: add more filetypes"
This commit is contained in:
commit
394ff0528e
2 changed files with 3 additions and 11 deletions
|
|
@ -304,8 +304,6 @@
|
||||||
|
|
||||||
- Added `languages.jq`. Supports highlighting, formatting and lsp.
|
- Added `languages.jq`. Supports highlighting, formatting and lsp.
|
||||||
|
|
||||||
- Extend `languages.asm` to support more filetypes out of the box.
|
|
||||||
|
|
||||||
- Didn't Add
|
- Didn't Add
|
||||||
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
|
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
|
||||||
you're crazy.
|
you're crazy.
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
asm-lsp = {
|
asm-lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cmd = [(getExe pkgs.asm-lsp)];
|
cmd = [(getExe pkgs.asm-lsp)];
|
||||||
filetypes = ["asm" "nasm" "masm" "vmasm" "fasm" "tasm" "tiasm" "asm68k" "asm8300"];
|
filetypes = ["asm" "vmasm"];
|
||||||
root_markers = [".asm-lsp.toml" ".git"];
|
root_markers = [".asm-lsp.toml" ".git"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -33,9 +33,7 @@ in {
|
||||||
default = config.vim.languages.enableTreesitter;
|
default = config.vim.languages.enableTreesitter;
|
||||||
defaultText = literalExpression "config.vim.languages.enableTreesitter";
|
defaultText = literalExpression "config.vim.languages.enableTreesitter";
|
||||||
};
|
};
|
||||||
packageASM = mkGrammarOption pkgs "asm";
|
package = mkGrammarOption pkgs "asm";
|
||||||
packageNASM = mkGrammarOption pkgs "nasm";
|
|
||||||
packagePicoASM = mkGrammarOption pkgs "picoasm";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
lsp = {
|
lsp = {
|
||||||
|
|
@ -55,11 +53,7 @@ in {
|
||||||
config = mkIf cfg.enable (mkMerge [
|
config = mkIf cfg.enable (mkMerge [
|
||||||
(mkIf cfg.treesitter.enable {
|
(mkIf cfg.treesitter.enable {
|
||||||
vim.treesitter.enable = true;
|
vim.treesitter.enable = true;
|
||||||
vim.treesitter.grammars = [
|
vim.treesitter.grammars = [cfg.treesitter.package];
|
||||||
cfg.treesitter.packageASM
|
|
||||||
cfg.treesitter.packageNASM
|
|
||||||
cfg.treesitter.packagePicoASM
|
|
||||||
];
|
|
||||||
})
|
})
|
||||||
|
|
||||||
(mkIf cfg.lsp.enable {
|
(mkIf cfg.lsp.enable {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue