summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2024-11-20 15:59:03 +0000
committerGitHub <noreply@github.com>2024-11-20 15:59:03 +0000
commit1a21a3ce7a7bf603cd13b4c59a3049bab4855485 (patch)
tree71e9041bc11cb0b9bb18625b32be40aa4696c8a6 /apps
parentafdf322037c4cf16f9f6902d5decf4414a7d78de (diff)
update nixvim config
Diffstat (limited to 'apps')
-rw-r--r--apps/nixvim.nix42
-rw-r--r--apps/spicetify.nix4
2 files changed, 44 insertions, 2 deletions
diff --git a/apps/nixvim.nix b/apps/nixvim.nix
index 7a959be..d2a112d 100644
--- a/apps/nixvim.nix
+++ b/apps/nixvim.nix
@@ -50,6 +50,12 @@
};
};
+ treesitter = {
+ enable = true;
+ folding = false;
+ settings.indent.enable = true;
+ };
+
lsp = {
enable = true;
servers = {
@@ -69,6 +75,42 @@
};
};
};
+
+ lspkind.enable = true;
+
+ luasnip.enable = true;
+
+ cmp = {
+ enable = true;
+ autoEnableSources = true;
+
+ settings = {
+ snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
+
+ mapping = {
+ "<Tab>" = "cmp.mapping.confirm({ select = true })";
+ "<S-Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
+ };
+
+ sources = [
+ {name = "path";}
+ {name = "nvim_lsp";}
+ {name = "luasnip";}
+ {name = "crates";}
+ {name = "buffer";}
+ ];
+ };
+ };
+
+ rustaceanvim = {
+ enable = false;
+
+ settings = {
+ tools.enable_clippy = true;
+ };
+ };
+
+ lualine.enable = true;
};
colorschemes.gruvbox.enable = true;
diff --git a/apps/spicetify.nix b/apps/spicetify.nix
index b1a0965..4177b47 100644
--- a/apps/spicetify.nix
+++ b/apps/spicetify.nix
@@ -12,9 +12,9 @@
enabledExtensions = with spicePkgs.extensions; [
adblock
hidePodcasts
- shuffle # shuffle+ (special characters are sanitized out of extension names)
+ # shuffle # shuffle+ (special characters are sanitized out of extension names)
];
theme = spicePkgs.themes.starryNight;
- # colorScheme = "mocha";
+ # colorScheme = "";
};
}