Skip to content

Commit

Permalink
chore: update lockfile and nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Jul 3, 2024
1 parent c6cdd97 commit c5954a7
Show file tree
Hide file tree
Showing 13 changed files with 101 additions and 213 deletions.
213 changes: 59 additions & 154 deletions flake.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
flake-utils.url = "github:numtide/flake-utils";
flake-parts.url = "github:hercules-ci/flake-parts";

yazi.url = "github:sxyazi/yazi";

helix.url = "github:helix-editor/helix";

neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
Expand Down
1 change: 1 addition & 0 deletions home-modules/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ in
gcm = "git commit -S -m";
gp = "git push";
glog = "git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative";
convert = "magick";
};
shellInit = ''
touch $XDG_CONFIG_HOME/.curlrc
Expand Down
2 changes: 1 addition & 1 deletion home-modules/helix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
command = "tailwindcss-language-server";
args = [ "--stdio" ];
};
typescript-language-server = with nodePackages; {
typescript-language-server = with nodePackages_latest; {
config = {
hostInfo = "helix";
documentFormatting = false;
Expand Down
12 changes: 8 additions & 4 deletions home-modules/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
match = { };
files = { };
globals = { };
extraFiles = { };
localOpts = { };
extraFiles = { };
globalOpts = { };
extraConfigVim = "";
extraConfigLuaPre = "";
extraConfigLuaPost = "";
luaLoader.enable = true;
extraPackages = with pkgs; [ ];
extraLuaPackages = with pkgs; [ ];
extraPython3Packages = p: with p; [ ];
Expand All @@ -46,6 +47,10 @@
colorbuddy-nvim
nvim-web-devicons
nvim-colorizer-lua
# https://github.com/tzachar/highlight-undo.nvim
highlight-undo-nvim
# https://github.com/brenoprata10/nvim-highlight-colors
nvim-highlight-colors
];
plugins = {
cmp.enable = true;
Expand All @@ -67,7 +72,6 @@
navbuddy.enable = true;
gitsigns.enable = true;
diffview.enable = true;
coq-nvim.enable = true;
lightline.enable = true;
which-key.enable = true;
ts-autotag.enable = true;
Expand Down Expand Up @@ -114,14 +118,14 @@
lsp = import ./plugins/lsp.nix;
lint = import ./plugins/lint.nix;
noice = import ./plugins/noice.nix;
# coq-nvim = import ./plugins/coq.nix;
coq-nvim = import ./plugins/coq.nix;
barbar = import ./plugins/barbar.nix;
fidget = import ./plugins/fidget.nix;
notify = import ./plugins/notify.nix;
lspsaga = import ./plugins/lspsaga.nix;
fzf-lua = import ./plugins/fzf-lua.nix;
lualine = import ./plugins/lualine.nix;
none-ls = import ./plugins/none-ls.nix;
# none-ls = import ./plugins/none-ls.nix;
neo-tree = import ./plugins/neo-tree.nix;
neoscroll = import ./plugins/neoscroll.nix;
telescope = import ./plugins/telescope.nix;
Expand Down
21 changes: 21 additions & 0 deletions home-modules/neovim/extra-config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,24 @@ telescope.setup {
}

require("telescope").load_extension("lazygit")

require('nvim-highlight-colors').setup({})

require('highlight-undo').setup({
duration = 300,
undo = {
hlgroup = 'HighlightUndo',
mode = 'n',
lhs = 'u',
map = 'undo',
opts = {}
},
redo = {
hlgroup = 'HighlightRedo',
mode = 'n',
lhs = '<C-r>',
map = 'redo',
opts = {}
},
highlight_for_count = true,
})
2 changes: 1 addition & 1 deletion home-modules/neovim/plugins/coq.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/ms-jpq/coq_nvim
{
enable = true;
# installArtifacts = true;
installArtifacts = true;
settings = {
# auto_start = true;
# xdg path
Expand Down
4 changes: 4 additions & 0 deletions home-modules/neovim/plugins/lsp.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# https://nix-community.github.io/nixvim/plugins/lsp/index.html
# { pkgs, ... }:
{
enable = true;
# servers = {
# bashls = {
# package = pkgs.nodePackages_latest.bash-language-server;
# };
# astro.enable = true;
# svelte.enable = true;
# tsserver.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion home-modules/neovim/plugins/none-ls.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
statix.enable = true;
gitsigns.enable = true;
gitrebase.enable = true;
ts_node_action.enable = true;
# ts_node_action.enable = true;
};
diagnostics = {
statix.enable = true;
Expand Down
34 changes: 0 additions & 34 deletions home-modules/yazi/default.nix

This file was deleted.

13 changes: 0 additions & 13 deletions home-modules/yazi/plugins/smartenter.yazi/init.lua

This file was deleted.

5 changes: 4 additions & 1 deletion modules/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ with lib;
nix-diff
starship
nix-init
localsend
tailscale
superfile
fastfetch
Expand All @@ -98,13 +99,14 @@ with lib;
cspell
fnlfmt
statix
devenv
deadnix
gotools
proselint
cloudflared
nixpkgs-fmt
openscad-lsp
nixfmt-rfc-style
bash-language-server
yaml-language-server
# delve
# revive
Expand All @@ -122,6 +124,7 @@ with lib;
vscode-css-languageserver-bin
vscode-html-languageserver-bin
nodePackages_latest.typescript
nodePackages.bash-language-server
];

variables = {
Expand Down
3 changes: 1 addition & 2 deletions nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ nixpkgs.lib.nixosSystem rec {
modules = [
{ nixpkgs.overlays = overlays; }
./modules/configuration.nix
./modules/tailscale.nix
# ./modules/tailscale.nix
./modules/orbstack.nix
./modules/nixpkgs.nix
./modules/users.nix
Expand All @@ -34,7 +34,6 @@ nixpkgs.lib.nixosSystem rec {
{ home.stateVersion = "23.05"; }
inputs.nixvim.homeManagerModules.nixvim
./home-modules/fish
./home-modules/yazi
./home-modules/helix
./home-modules/zellij
./home-modules/neovim
Expand Down

0 comments on commit c5954a7

Please sign in to comment.