feat: failed direnv attempt ig
This commit is contained in:
parent
79b65f3640
commit
830e4ade9d
|
@ -7,28 +7,28 @@ Table of my own keybinds. Here as documentation for myself. I am yet to include
|
||||||
> Things written using italics are chords
|
> Things written using italics are chords
|
||||||
> (aka all the keys need to be pressed at the same time)
|
> (aka all the keys need to be pressed at the same time)
|
||||||
|
|
||||||
| Keybind | Description | Plugins |
|
| Keybind | Description | Plugins |
|
||||||
| ---------------- | ------------------------------------------- | ------------------ |
|
| ------------ | ------------------------------------------- | ------------------ |
|
||||||
| vv | Create vertical split | |
|
| vv | Create vertical split | |
|
||||||
| \<Space>\<Space> | Save | |
|
| _jl_ | Save | |
|
||||||
| _jk_ | Exit insert mode | |
|
| _jk_ | Exit insert mode | |
|
||||||
| _\<leader>k_ | Insert digraph | |
|
| _\<leader>k_ | Insert digraph | |
|
||||||
| _\<leader>a_ | Swap last 2 used buffers | |
|
| _\<leader>a_ | Swap last 2 used buffers | |
|
||||||
| C-n | Open tree | nvim-tree |
|
| C-n | Open tree | nvim-tree |
|
||||||
| _vp_ | Run command in another tmux pane | vimux |
|
| _vp_ | Run command in another tmux pane | vimux |
|
||||||
| _sk_ | Move to previous lh-bracket marker | lh-brackets |
|
| _sk_ | Move to previous lh-bracket marker | lh-brackets |
|
||||||
| _sj_ | Move to next lh-bracket marker | lh-brackets |
|
| _sj_ | Move to next lh-bracket marker | lh-brackets |
|
||||||
| _mo_ | Move outside the current brackets | lh-brackets |
|
| _mo_ | Move outside the current brackets | lh-brackets |
|
||||||
| _ml_ | Remove all markers and move to the last one | lh-brackets |
|
| _ml_ | Remove all markers and move to the last one | lh-brackets |
|
||||||
| C-hjkl | Navigation between vim & tmux panes | vim-tmux-navigator |
|
| C-hjkl | Navigation between vim & tmux panes | vim-tmux-navigator |
|
||||||
| J | Show line diagnostics | lspconfig |
|
| J | Show line diagnostics | lspconfig |
|
||||||
| K | Show hover info | lspconfig |
|
| K | Show hover info | lspconfig |
|
||||||
| L | Signature help (?) | lspconfig |
|
| L | Signature help (?) | lspconfig |
|
||||||
| gD | Go to declaration | lspconfig |
|
| gD | Go to declaration | lspconfig |
|
||||||
| gd | Go to definition | lspconfig |
|
| gd | Go to definition | lspconfig |
|
||||||
| gi | Go to implementation | lspconfig |
|
| gi | Go to implementation | lspconfig |
|
||||||
| \<leader>rn | Rename | lspconfig |
|
| \<leader>rn | Rename | lspconfig |
|
||||||
| \<leader>f | format | lspconfig |
|
| \<leader>f | format | lspconfig |
|
||||||
|
|
||||||
### Lh-brackets
|
### Lh-brackets
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ The default brackets I load in each buffer are (), [], "", '', {} and \`\`. Diff
|
||||||
| \<leader>s | Show symbols using tree-sitter | |
|
| \<leader>s | Show symbols using tree-sitter | |
|
||||||
| \<leader>gj | List git commits | |
|
| \<leader>gj | List git commits | |
|
||||||
| \<leader>gk | List git branches | |
|
| \<leader>gk | List git branches | |
|
||||||
| \<leader>p | Interactive file broswer | telescope-file-browser |
|
| _jp_ | Interactive file broswer | telescope-file-browser |
|
||||||
| _ui_ | Insert unicode char | |
|
| _ui_ | Insert unicode char | |
|
||||||
|
|
||||||
### Idris
|
### Idris
|
||||||
|
|
|
@ -26,7 +26,7 @@ local bindings = {
|
||||||
git_commits = "<Leader>gj",
|
git_commits = "<Leader>gj",
|
||||||
git_branches = "<Leader>gk"
|
git_branches = "<Leader>gk"
|
||||||
},
|
},
|
||||||
["extensions.file_browser.file_browser"] = "<Leader>p",
|
["extensions.file_browser.file_browser"] = {chord = 1, key = "jp"},
|
||||||
extensions = {
|
extensions = {
|
||||||
unicode = {
|
unicode = {
|
||||||
picker = {mode = "i", kind = "dropdown", key = "ui", chord = 1}
|
picker = {mode = "i", kind = "dropdown", key = "ui", chord = 1}
|
||||||
|
|
|
@ -383,7 +383,7 @@
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs-unstable"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
# keyboard layout configuration
|
# keyboard layout configuration
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
home-manager.users.adrielus = {
|
home-manager.users.adrielus = {
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
programs.direnv.nix-direnv.enable = true;
|
programs.direnv.nix-direnv.enable = true;
|
||||||
|
|
||||||
# optional for nix flakes support in home-manager 21.11, not required in home-manager unstable or 22.05
|
|
||||||
programs.direnv.nix-direnv.enableFlakes = true;
|
programs.direnv.nix-direnv.enableFlakes = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,19 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
nix = {
|
nix = {
|
||||||
trustedUsers = [ "root" "adrielus" "@wheel" ];
|
|
||||||
autoOptimiseStore = true;
|
|
||||||
optimise.automatic = true;
|
|
||||||
gc.automatic = false;
|
|
||||||
|
|
||||||
# Emanble nix flakes
|
# Emanble nix flakes
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
|
|
||||||
|
trustedUsers = [ "root" "adrielus" "@wheel" ];
|
||||||
|
|
||||||
|
autoOptimiseStore = true;
|
||||||
|
optimise.automatic = true;
|
||||||
|
gc.automatic = true;
|
||||||
|
|
||||||
|
# Protect nix-shell from garbage collection
|
||||||
|
# TODO: look into whether this is still needed when using nix flakes
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
|
keep-outputs = true
|
||||||
|
keep-derivations = true
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue