Compare commits
No commits in common. "8f6650bbd1f28b2409fca4e7c325522c19a23432" and "67271f3ab9938006dc85e02b25668ba882d3df49" have entirely different histories.
8f6650bbd1
...
67271f3ab9
|
@ -137,13 +137,12 @@ in
|
||||||
# Emacs
|
# Emacs
|
||||||
windowrulev2 = opaque, class:^emacs$
|
windowrulev2 = opaque, class:^emacs$
|
||||||
|
|
||||||
|
|
||||||
# Fullscreen Applications
|
# Fullscreen Applications
|
||||||
${mkRules ["opaque" "noblur" "noborder" "noshadow" "forceinput"] ["fullscreen:1"]}
|
# ${mkRules ["opaque" "noblur" "noborder" "noshadow" "forceinput"] ["fullscreen:1"]}
|
||||||
|
|
||||||
${mkRules ["opaque" "noblur" "noshadow"] ["class:^jetbrains-pycharm$"]}
|
${mkRules ["opaque" "noblur" "noshadow"] ["class:^jetbrains-pycharm$"]}
|
||||||
|
|
||||||
${mkRules ["tile" "opaque"] ["class:^neovide$"]}
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
$windowMod = ALT
|
$windowMod = ALT
|
||||||
|
|
|
@ -19,77 +19,66 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.moritz = {
|
home-manager.users.moritz.programs.neovim = {
|
||||||
home.packages = with pkgs; [
|
enable = true;
|
||||||
(
|
package = pkgs.neovim-nightly;
|
||||||
if config.my.programs.hyprland.enable
|
vimAlias = true;
|
||||||
then neovide-hyprland
|
vimdiffAlias = true;
|
||||||
else neovide
|
withNodeJs = true;
|
||||||
)
|
withPython3 = true;
|
||||||
|
extraLuaConfig = builtins.readFile ./init.lua;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
alejandra
|
||||||
|
black
|
||||||
|
isort
|
||||||
|
nil
|
||||||
|
nixpkgs-fmt
|
||||||
|
rustfmt
|
||||||
|
shfmt
|
||||||
|
stylua
|
||||||
|
sumneko-lua-language-server
|
||||||
|
taplo
|
||||||
|
yamlfmt
|
||||||
|
];
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
catppuccin-nvim
|
||||||
|
cmp-nvim-lsp
|
||||||
|
cmp_luasnip
|
||||||
|
comment-nvim
|
||||||
|
copilot-cmp
|
||||||
|
copilot-lua
|
||||||
|
dashboard-nvim
|
||||||
|
formatter-nvim
|
||||||
|
gitsigns-nvim
|
||||||
|
lsp_lines-nvim
|
||||||
|
lspkind-nvim
|
||||||
|
lspsaga-nvim-original
|
||||||
|
lualine-lsp-progress
|
||||||
|
lualine-nvim
|
||||||
|
luasnip
|
||||||
|
neogit
|
||||||
|
noice-nvim
|
||||||
|
nui-nvim # for noice-nvim
|
||||||
|
nvim-autopairs
|
||||||
|
nvim-cmp
|
||||||
|
nvim-lastplace
|
||||||
|
nvim-lspconfig
|
||||||
|
nvim-surround
|
||||||
|
nvim-tree-lua
|
||||||
|
nvim-treesitter-textsubjects
|
||||||
|
nvim-treesitter.withAllGrammars
|
||||||
|
nvim-ts-context-commentstring
|
||||||
|
nvim-web-devicons # for dashboard-nvim
|
||||||
|
orgmode
|
||||||
|
plenary-nvim # for telescope, neogit
|
||||||
|
popup-nvim
|
||||||
|
smartcolumn-nvim
|
||||||
|
telescope-fzf-native-nvim
|
||||||
|
telescope-nvim
|
||||||
|
telescope-zoxide
|
||||||
|
vim-lion
|
||||||
|
which-key-nvim
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.neovim-nightly;
|
|
||||||
vimAlias = true;
|
|
||||||
vimdiffAlias = true;
|
|
||||||
withNodeJs = true;
|
|
||||||
withPython3 = true;
|
|
||||||
extraLuaConfig = builtins.readFile ./init.lua;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
alejandra
|
|
||||||
black
|
|
||||||
isort
|
|
||||||
jq
|
|
||||||
nil
|
|
||||||
nixpkgs-fmt
|
|
||||||
rustfmt
|
|
||||||
shfmt
|
|
||||||
stylua
|
|
||||||
sumneko-lua-language-server
|
|
||||||
taplo
|
|
||||||
yamlfmt
|
|
||||||
];
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
|
||||||
catppuccin-nvim
|
|
||||||
cmp-nvim-lsp
|
|
||||||
cmp_luasnip
|
|
||||||
comment-nvim
|
|
||||||
copilot-cmp
|
|
||||||
copilot-lua
|
|
||||||
dashboard-nvim
|
|
||||||
formatter-nvim
|
|
||||||
gitsigns-nvim
|
|
||||||
lsp_lines-nvim
|
|
||||||
lspkind-nvim
|
|
||||||
lspsaga-nvim-original
|
|
||||||
lualine-lsp-progress
|
|
||||||
lualine-nvim
|
|
||||||
luasnip
|
|
||||||
neogit
|
|
||||||
noice-nvim
|
|
||||||
nui-nvim # for noice-nvim
|
|
||||||
nvim-autopairs
|
|
||||||
nvim-cmp
|
|
||||||
nvim-lastplace
|
|
||||||
nvim-lspconfig
|
|
||||||
nvim-surround
|
|
||||||
nvim-tree-lua
|
|
||||||
nvim-treesitter-textsubjects
|
|
||||||
nvim-treesitter.withAllGrammars
|
|
||||||
nvim-ts-context-commentstring
|
|
||||||
nvim-web-devicons # for dashboard-nvim
|
|
||||||
orgmode
|
|
||||||
plenary-nvim # for telescope, neogit
|
|
||||||
popup-nvim
|
|
||||||
smartcolumn-nvim
|
|
||||||
telescope-fzf-native-nvim
|
|
||||||
telescope-nvim
|
|
||||||
telescope-zoxide
|
|
||||||
vim-lion
|
|
||||||
which-key-nvim
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ vim.opt.backupdir = { vim.fn.stdpath("state") .. "/nvim/backup//" } -- don't sto
|
||||||
vim.opt.clipboard = "unnamedplus" -- sync with system clipboard
|
vim.opt.clipboard = "unnamedplus" -- sync with system clipboard
|
||||||
vim.opt.conceallevel = 2
|
vim.opt.conceallevel = 2
|
||||||
vim.opt.expandtab = true -- spaces instead of tabs
|
vim.opt.expandtab = true -- spaces instead of tabs
|
||||||
|
vim.opt.guifont = "Fira Code Nerd Font:h1"
|
||||||
vim.opt.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
vim.opt.mouse = "a" -- mouse for all modes
|
vim.opt.mouse = "a" -- mouse for all modes
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
|
@ -32,11 +33,6 @@ vim.opt.updatetime = 300
|
||||||
vim.opt_local.spell = true
|
vim.opt_local.spell = true
|
||||||
vim.opt_local.spelllang = { "en", "de_20" } -- all English regions and new German spelling
|
vim.opt_local.spelllang = { "en", "de_20" } -- all English regions and new German spelling
|
||||||
|
|
||||||
if vim.g.neovide then
|
|
||||||
vim.opt.guifont = "Fira Code Nerd Font:h10"
|
|
||||||
vim.g.neovide_scale_factor = 0.7
|
|
||||||
end
|
|
||||||
|
|
||||||
require("catppuccin").setup({
|
require("catppuccin").setup({
|
||||||
compile_path = vim.fn.stdpath("cache") .. "/catppuccin", -- fix issue of writing to nix store
|
compile_path = vim.fn.stdpath("cache") .. "/catppuccin", -- fix issue of writing to nix store
|
||||||
integrations = {
|
integrations = {
|
||||||
|
@ -193,10 +189,11 @@ require("formatter").setup({
|
||||||
log_level = vim.log.levels.WARN,
|
log_level = vim.log.levels.WARN,
|
||||||
-- All formatter configurations are opt-in
|
-- All formatter configurations are opt-in
|
||||||
filetype = {
|
filetype = {
|
||||||
json = {
|
-- Formatter configurations for filetype "lua" go here
|
||||||
require("formatter.filetypes.json").jq,
|
-- and will be executed in order
|
||||||
},
|
|
||||||
lua = {
|
lua = {
|
||||||
|
-- "formatter.filetypes.lua" defines default configurations for the
|
||||||
|
-- "lua" filetype
|
||||||
require("formatter.filetypes.lua").stylua,
|
require("formatter.filetypes.lua").stylua,
|
||||||
},
|
},
|
||||||
nix = {
|
nix = {
|
||||||
|
|
|
@ -5,8 +5,7 @@ let
|
||||||
(builtins.substring 4 2 longDate)
|
(builtins.substring 4 2 longDate)
|
||||||
(builtins.substring 6 2 longDate)
|
(builtins.substring 6 2 longDate)
|
||||||
]);
|
]);
|
||||||
mkVersionSrc = src: "unstable-" + builtins.substring 0 7 src.rev;
|
mkVersionInput = input: "unstable" + mkDate (input.lastModifiedDate or "19700101") + "_" + (input.shortRev or "dirty");
|
||||||
mkVersionInput = input: "unstable-" + mkDate (input.lastModifiedDate or "19700101") + "_" + (input.shortRev or "dirty");
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
agenix = inputs.agenix.packages.${prev.system}.default;
|
agenix = inputs.agenix.packages.${prev.system}.default;
|
||||||
|
@ -57,19 +56,6 @@ in
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
neovide-hyprland = final.symlinkJoin {
|
|
||||||
name = "neovide-hyprland-${final.neovide.version}";
|
|
||||||
paths = [ final.neovide ];
|
|
||||||
nativeBuildInputs = [ final.makeWrapper ];
|
|
||||||
postBuild = ''
|
|
||||||
rm $out/bin/neovide
|
|
||||||
makeWrapper ${final.neovide}/bin/neovide $out/bin/neovide --set WINIT_UNIX_BACKEND x11
|
|
||||||
'';
|
|
||||||
meta = final.neovide.meta // {
|
|
||||||
mainProgram = "neovide";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
master = import inputs.master {
|
master = import inputs.master {
|
||||||
inherit (prev) system;
|
inherit (prev) system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
Loading…
Reference in New Issue