mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: add more info
This commit is contained in:
@@ -19,9 +19,12 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
||||||
|
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
|
||||||
|
|
||||||
git clone git@github.com:Theaninova/home-manager-config.git ~/.config/home-manager
|
git clone git@github.com:Theaninova/home-manager-config.git ~/.config/home-manager
|
||||||
cd ~/.config/home-manager
|
cd ~/.config/home-manager
|
||||||
sudo nixos-rebuild switch --flake .#
|
sudo nixos-rebuild switch --flake .#MONSTER
|
||||||
```
|
```
|
||||||
|
|
||||||
After that reload the shell
|
After that reload the shell
|
||||||
|
|||||||
@@ -286,20 +286,18 @@ in {
|
|||||||
""
|
""
|
||||||
];
|
];
|
||||||
on_new_config = {
|
on_new_config = {
|
||||||
__raw =
|
__raw = ''
|
||||||
# lua
|
function(new_config, new_root_dir)
|
||||||
''
|
new_config.cmd = {
|
||||||
function(new_config, new_root_dir)
|
new_root_dir .. "/node_modules/@angular/language-server/bin/ngserver",
|
||||||
new_config.cmd = {
|
"--stdio",
|
||||||
new_root_dir .. "/node_modules/@angular/language-server/bin/ngserver",
|
"--tsProbeLocations",
|
||||||
"--stdio",
|
new_root_dir .. "/node_modules",
|
||||||
"--tsProbeLocations",
|
"--ngProbeLocations",
|
||||||
new_root_dir .. "/node_modules",
|
new_root_dir .. "/node_modules",
|
||||||
"--ngProbeLocations",
|
}
|
||||||
new_root_dir .. "/node_modules",
|
end
|
||||||
}
|
'';
|
||||||
end
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
filetypes = [
|
filetypes = [
|
||||||
"typescript"
|
"typescript"
|
||||||
@@ -310,15 +308,13 @@ in {
|
|||||||
"html.angular"
|
"html.angular"
|
||||||
];
|
];
|
||||||
on_attach = {
|
on_attach = {
|
||||||
__raw =
|
__raw = ''
|
||||||
# lua
|
function(client, bufnr)
|
||||||
''
|
if vim.bo[bufnr].filetype == "html" then
|
||||||
function(client, bufnr)
|
vim.bo[bufnr].filetype = "angular"
|
||||||
if vim.bo[bufnr].filetype == "html" then
|
|
||||||
vim.bo[bufnr].filetype = "angular"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
'';
|
end
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
@@ -354,18 +350,16 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
mode = "symbol_text";
|
mode = "symbol_text";
|
||||||
cmp = {
|
cmp = {
|
||||||
after =
|
after = ''
|
||||||
# lua
|
function(entry, vim_item, kind)
|
||||||
''
|
if entry.source.name == "npm" then
|
||||||
function(entry, vim_item, kind)
|
kind.kind = ""
|
||||||
if entry.source.name == "npm" then
|
kind.kind_hl_group = "CmpItemKindNpm"
|
||||||
kind.kind = ""
|
|
||||||
kind.kind_hl_group = "CmpItemKindNpm"
|
|
||||||
end
|
|
||||||
kind.kind = kind.kind .. " "
|
|
||||||
return kind
|
|
||||||
end
|
end
|
||||||
'';
|
kind.kind = kind.kind .. " "
|
||||||
|
return kind
|
||||||
|
end
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
symbolMap = { Copilot = ""; };
|
symbolMap = { Copilot = ""; };
|
||||||
};
|
};
|
||||||
@@ -395,7 +389,6 @@ in {
|
|||||||
];
|
];
|
||||||
formatting.fields = [ "abbr" "kind" ];
|
formatting.fields = [ "abbr" "kind" ];
|
||||||
snippet.expand =
|
snippet.expand =
|
||||||
# lua
|
|
||||||
"function(args) require('luasnip').lsp_expand(args.body) end";
|
"function(args) require('luasnip').lsp_expand(args.body) end";
|
||||||
window = {
|
window = {
|
||||||
completion.border = "rounded";
|
completion.border = "rounded";
|
||||||
|
|||||||
Reference in New Issue
Block a user