Skip to content

Commit

Permalink
fix(config): updates for latest nixvim
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Aug 24, 2024
1 parent ec9b4b6 commit cce9560
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 35 deletions.
20 changes: 11 additions & 9 deletions config/bufferline.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{pkgs, ...}: {
plugins.bufferline = {
enable = pkgs.lib.mkDefault true;
alwaysShowBufferline = pkgs.lib.mkDefault false;
offsets = [
{
filetype = "NvimTree";
text = "Explorer";
highlight = "PanelHeading";
padding = 1;
}
];
settings.options = {
alwaysShowBufferline = pkgs.lib.mkDefault false;
offsets = [
{
filetype = "NvimTree";
text = "Explorer";
highlight = "PanelHeading";
padding = 1;
}
];
};
};
}
2 changes: 1 addition & 1 deletion config/cmp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins = {
luasnip = {
enable = pkgs.lib.mkDefault true;
extraConfig = {
settings = {
enable_autosnippets = pkgs.lib.mkDefault true;
};
};
Expand Down
34 changes: 18 additions & 16 deletions config/keymaps/whichkey.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
{pkgs, ...}: {
plugins.which-key = {
enable = pkgs.lib.mkDefault true;
layout = {align = "center";};
triggersNoWait = ["`" "'" "<leader>" "g`" "g'" "\"" "<c-r>" "z="];
window = {
border = "rounded";
position = "bottom";
winblend = 10;
margin = {
top = 1;
right = 1;
bottom = 2;
left = 1;
settings = {
notify = false;
layout = {align = "center";};
triggersNoWait = ["`" "'" "<leader>" "g`" "g'" "\"" "<c-r>" "z="];
icons.colors = false;
win = {
border = "rounded";
title = true;
zindex = 10;
padding = [
1
2
];
};
registrations = {
"<leader>l" = "+LSP";
"<leader>z" = "+Zen";
"<leader>p" = "+Parameter swap";
};
};
registrations = {
"<leader>l" = "+LSP";
"<leader>z" = "+Zen";
"<leader>p" = "+Parameter swap";
};
};
}
2 changes: 1 addition & 1 deletion config/lsp/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
installRustc = pkgs.lib.mkDefault false;
};
tailwindcss.enable = pkgs.lib.mkDefault true;
typst-lsp.enable = pkgs.lib.mkDefault true;
# typst-lsp.enable = pkgs.lib.mkDefault true; # broken
cssls.enable = pkgs.lib.mkDefault true;
html.enable = pkgs.lib.mkDefault true;
htmx.enable = pkgs.lib.mkDefault true;
Expand Down
18 changes: 10 additions & 8 deletions config/plugins/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
lastplace.enable = pkgs.lib.mkDefault true;
todo-comments = {
enable = pkgs.lib.mkDefault true;
mergeKeywords = pkgs.lib.mkDefault true;
highlight = {
before = "";
after = "fg";
keyword = "wide";
};
keywords = {
QUESTION = {icon = "";};
settings = {
mergeKeywords = pkgs.lib.mkDefault true;
highlight = {
before = "";
after = "fg";
keyword = "wide";
};
keywords = {
QUESTION = {icon = "";};
};
};
};
comment.enable = pkgs.lib.mkDefault true;
Expand Down

0 comments on commit cce9560

Please sign in to comment.