mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: improve neovim
This commit is contained in:
@@ -36,6 +36,7 @@ with pkgs; [
|
|||||||
# creative
|
# creative
|
||||||
gimp-with-plugins
|
gimp-with-plugins
|
||||||
inkscape-with-extensions
|
inkscape-with-extensions
|
||||||
|
scribus
|
||||||
audacity
|
audacity
|
||||||
# friture TODO: broken
|
# friture TODO: broken
|
||||||
blender
|
blender
|
||||||
@@ -57,6 +58,7 @@ with pkgs; [
|
|||||||
|
|
||||||
# utils
|
# utils
|
||||||
gh
|
gh
|
||||||
|
git-filter-repo
|
||||||
neofetch
|
neofetch
|
||||||
pinentry-gnome
|
pinentry-gnome
|
||||||
ranger
|
ranger
|
||||||
|
|||||||
32
programs/affinity-photo.nix
Normal file
32
programs/affinity-photo.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
fetchurl,
|
||||||
|
pkgs,
|
||||||
|
p7zip,
|
||||||
|
wineWowPackages,
|
||||||
|
winetricks,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "affinity-photo";
|
||||||
|
version = "1.10.6";
|
||||||
|
|
||||||
|
src = ./affinity-photo-${version}.exe;
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
buildInputs = [wineWowPackages.stable winetricks];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/$name
|
||||||
|
cd $out/share/$name
|
||||||
|
${p7zip}/bin/7z x $src
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cd $out/bin
|
||||||
|
echo "#!${stdenv.shell}" >> $name
|
||||||
|
echo "export WINEARCH=win64" >> $name
|
||||||
|
echo "export WINEPREFIX=~/.config/$name" >> $name
|
||||||
|
echo "${winetricks}/bin/winetricks -q corefonts dotnet472" >> $name
|
||||||
|
echo "${wineWowPackages.stable}/bin/wine $out/share/$name/App.exe" >> $name
|
||||||
|
chmod +x $name
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -141,11 +141,6 @@ in {
|
|||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
require("darkman").setup()
|
require("darkman").setup()
|
||||||
require("cmp-npm").setup({})
|
require("cmp-npm").setup({})
|
||||||
require("codewindow").setup({
|
|
||||||
auto_enable = true,
|
|
||||||
window_border = "none",
|
|
||||||
minimap_width = 10,
|
|
||||||
})
|
|
||||||
|
|
||||||
local signs = {
|
local signs = {
|
||||||
{ name = "DiagnosticSignError", text = "" },
|
{ name = "DiagnosticSignError", text = "" },
|
||||||
@@ -340,6 +335,7 @@ in {
|
|||||||
direction = "vertical";
|
direction = "vertical";
|
||||||
size = 60;
|
size = 60;
|
||||||
};
|
};
|
||||||
|
luasnip.enable = true;
|
||||||
|
|
||||||
telescope = {
|
telescope = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -369,7 +365,12 @@ in {
|
|||||||
shellcheck.enable = true;
|
shellcheck.enable = true;
|
||||||
};
|
};
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
eslint_d.enable = true;
|
eslint_d = {
|
||||||
|
enable = true;
|
||||||
|
withArgs = ''
|
||||||
|
{only_local = "node_modules/.bin"}
|
||||||
|
'';
|
||||||
|
};
|
||||||
shellcheck.enable = true;
|
shellcheck.enable = true;
|
||||||
};
|
};
|
||||||
formatting = {
|
formatting = {
|
||||||
@@ -385,6 +386,7 @@ in {
|
|||||||
stylua.enable = true;
|
stylua.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
sourcesItems = [{__raw = "require('null-ls').builtins.diagnostics.stylelint";}];
|
||||||
onAttach =
|
onAttach =
|
||||||
/*
|
/*
|
||||||
lua
|
lua
|
||||||
@@ -450,17 +452,23 @@ in {
|
|||||||
|
|
||||||
lspkind = {
|
lspkind = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mode = "symbol";
|
mode = "symbol_text";
|
||||||
cmp.after = ''
|
cmp = {
|
||||||
function(entry, vim_item, kind)
|
after =
|
||||||
if entry.source.name == "npm" then
|
/*
|
||||||
kind.kind = ""
|
lua
|
||||||
kind.kind_hl_group = "CmpItemKindNpm"
|
*/
|
||||||
end
|
''
|
||||||
kind.kind = kind.kind .. " "
|
function(entry, vim_item, kind)
|
||||||
return kind
|
if entry.source.name == "npm" then
|
||||||
end
|
kind.kind = ""
|
||||||
'';
|
kind.kind_hl_group = "CmpItemKindNpm"
|
||||||
|
end
|
||||||
|
kind.kind = kind.kind .. " "
|
||||||
|
return kind
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
symbolMap = {
|
symbolMap = {
|
||||||
Copilot = "";
|
Copilot = "";
|
||||||
};
|
};
|
||||||
@@ -476,6 +484,7 @@ in {
|
|||||||
sources = [
|
sources = [
|
||||||
{name = "copilot";}
|
{name = "copilot";}
|
||||||
{name = "path";}
|
{name = "path";}
|
||||||
|
{name = "luasnip";}
|
||||||
{
|
{
|
||||||
name = "npm";
|
name = "npm";
|
||||||
keywordLength = 4;
|
keywordLength = 4;
|
||||||
@@ -485,7 +494,7 @@ in {
|
|||||||
{name = "nvim_lsp_signature_help";}
|
{name = "nvim_lsp_signature_help";}
|
||||||
{name = "nvim_lsp_document_symbol";}
|
{name = "nvim_lsp_document_symbol";}
|
||||||
];
|
];
|
||||||
formatting.fields = ["kind" "abbr" "menu"];
|
formatting.fields = ["abbr" "kind"];
|
||||||
window = {
|
window = {
|
||||||
completion.border = "rounded";
|
completion.border = "rounded";
|
||||||
documentation.border = "rounded";
|
documentation.border = "rounded";
|
||||||
@@ -500,11 +509,10 @@ in {
|
|||||||
nix.enable = true;
|
nix.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = [angular-ls pkgs.nodePackages.typescript-language-server];
|
extraPackages = [angular-ls pkgs.nodePackages.typescript-language-server pkgs.nodePackages.stylelint];
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
vim-startuptime
|
vim-startuptime
|
||||||
vim-mergetool
|
vim-mergetool
|
||||||
codewindow-nvim
|
|
||||||
darkman
|
darkman
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user