Skip to content

Commit

Permalink
build: change tmux theme; improve nixvim cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnakedev committed Dec 19, 2024
1 parent 20b0ebd commit 7fc0287
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 27 deletions.
24 changes: 5 additions & 19 deletions modules/nixvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ in
wrapping.enable = true;
# Automatically saves and restores session state
auto-session.enable = true;
markdown-preview.enable = true;

# Language Server Protocol (LSP)
lsp = {
Expand Down Expand Up @@ -174,29 +175,22 @@ in
completion.border = "rounded";
documentation.border = "rounded";
};
# Automatically enable completion sources
snippet.expand = ''
function(args)
require('luasnip').lsp_expand(args.body)
end
'';
# Define completion sources
performance.max_view_entries = 20;
sources = [
{ name = "nvim_lsp"; }
{ name = "luasnip"; }
{ name = "path"; }
{ name = "buffer"; }
{ name = "luasnip"; }
{ name = "snippets"; }
{ name = "friendly_snippets"; }
];
# Completion key mappings
mapping = {
# Show completion menu
"<C-Space>" = "cmp.mapping.complete()";
# Scroll documentation up
"<C-u>" = "cmp.mapping.scroll_docs(-4)";
"<S-k>" = "cmp.mapping.scroll_docs(-4)";
# Scroll documentation down
"<C-d>" = "cmp.mapping.scroll_docs(4)";
"<S-j>" = "cmp.mapping.scroll_docs(4)";
# Confirm selection
"<CR>" = "cmp.mapping.confirm({ select = true })";
# Navigate completion menu (previous item)
Expand All @@ -216,16 +210,8 @@ in
enable_autosnippets = true;
};
};
# Snippet management plugin
nvim-snippets = {
enable = true;
settings = {
friendly-snippets = true;
};
};
# Pre-configured Snippet Collection
friendly-snippets.enable = true;

};
# Load additional Lua configuration from init.lua
extraConfigLua = builtins.readFile ./init.lua;
Expand Down
21 changes: 13 additions & 8 deletions modules/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@
baseIndex = 1;
# customPaneNavigationAndResize = true;
plugins = with pkgs.tmuxPlugins ; [
vim-tmux-navigator
# {
# plugin = dracula;
# extraConfig = ''
# set -g @dracula-plugins "cpu-usage ram-usage time"
# set -g @dracula-show-battery false
# set -g @dracula-show-powerline true
# set -g @dracula-refresh-rate 10
# set -g @dracula-show-flags true
# '';
# }
{
plugin = dracula;
extraConfig = ''
set -g @dracula-plugins "cpu-usage ram-usage time"
set -g @dracula-show-battery false
set -g @dracula-show-powerline true
set -g @dracula-refresh-rate 10
set -g @dracula-show-flags true
plugin = catppuccin;
extraConfig = ''
'';
}
vim-tmux-navigator
];
extraConfig = ''
#Configure True Colors
Expand Down

0 comments on commit 7fc0287

Please sign in to comment.