Compare commits
9 Commits
44245d16a2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ad8567bdf | |||
| bcabfd49bb | |||
| eef7203621 | |||
| 6064a5a1a7 | |||
| df7747f876 | |||
| 1e0485efde | |||
| fce75e9f4c | |||
| e6e280cc73 | |||
| 6f3801621f |
@@ -20,7 +20,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
|
||||||
with:
|
with:
|
||||||
# Full history so the detect step can diff the PR against its base.
|
# Full history so the detect step can diff the PR against its base.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|||||||
@@ -188,10 +188,22 @@ across vim splits and tmux panes seamlessly. Everything else is stock vim, plus:
|
|||||||
| `<leader>rn` | Rename symbol (LSP; `<leader>` is `Space`) |
|
| `<leader>rn` | Rename symbol (LSP; `<leader>` is `Space`) |
|
||||||
| `<leader>ca` | Code action (LSP) |
|
| `<leader>ca` | Code action (LSP) |
|
||||||
|
|
||||||
LSP covers Nix, Lua, Python and Terraform (the work box adds C# and Helm);
|
### Completion menu (nvim-cmp)
|
||||||
completion (nvim-cmp) appears as you type. Files are formatted on save
|
|
||||||
(conform-nvim). `:Git` opens fugitive; gitsigns shows gutter signs. which-key
|
Active only while the completion popup is open (it appears as you type, e.g.
|
||||||
pops up after `<leader>` to show the rest.
|
file paths):
|
||||||
|
|
||||||
|
| Shortcut | Action |
|
||||||
|
| ----------------------- | ------------------------------------------------------------------ |
|
||||||
|
| `Tab` / `Shift`+`Tab` | Select next / previous item |
|
||||||
|
| `Ctrl`+`n` / `Ctrl`+`p` | Select next / previous item |
|
||||||
|
| `Ctrl`+`Space` | Open the completion menu |
|
||||||
|
| `Enter` | Confirm the highlighted item (no auto-select; otherwise a newline) |
|
||||||
|
| `Ctrl`+`e` | Dismiss the menu |
|
||||||
|
|
||||||
|
LSP covers Nix, Lua, Python and Terraform (the work box adds C# and Helm).
|
||||||
|
Files are formatted on save (conform-nvim). `:Git` opens fugitive; gitsigns
|
||||||
|
shows gutter signs. which-key pops up after `<leader>` to show the rest.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,18 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
autoEnableSources = true;
|
autoEnableSources = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
# nvim-cmp ships no default keymaps; without these the menu shows but
|
||||||
|
# nothing accepts it. confirm uses select=false so a bare <CR> stays a
|
||||||
|
# newline unless an entry is explicitly highlighted.
|
||||||
|
mapping = {
|
||||||
|
"<C-n>" = "cmp.mapping.select_next_item()";
|
||||||
|
"<C-p>" = "cmp.mapping.select_prev_item()";
|
||||||
|
"<Tab>" = "cmp.mapping.select_next_item()";
|
||||||
|
"<S-Tab>" = "cmp.mapping.select_prev_item()";
|
||||||
|
"<CR>" = "cmp.mapping.confirm({ select = false })";
|
||||||
|
"<C-Space>" = "cmp.mapping.complete()";
|
||||||
|
"<C-e>" = "cmp.mapping.abort()";
|
||||||
|
};
|
||||||
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
|
snippet.expand = "function(args) require('luasnip').lsp_expand(args.body) end";
|
||||||
sources = [
|
sources = [
|
||||||
{ name = "nvim_lsp"; }
|
{ name = "nvim_lsp"; }
|
||||||
|
|||||||
@@ -97,6 +97,7 @@
|
|||||||
"llvm@21"
|
"llvm@21"
|
||||||
"lld@21"
|
"lld@21"
|
||||||
"python@3.14"
|
"python@3.14"
|
||||||
|
"dosbox-staging"
|
||||||
];
|
];
|
||||||
# GUI applications. macOS app bundles are managed as casks; nixpkgs darwin
|
# GUI applications. macOS app bundles are managed as casks; nixpkgs darwin
|
||||||
# GUI support is unreliable, so these stay on brew for continuity.
|
# GUI support is unreliable, so these stay on brew for continuity.
|
||||||
|
|||||||
@@ -19,9 +19,7 @@
|
|||||||
defaultUser = "emmathorpe";
|
defaultUser = "emmathorpe";
|
||||||
wslConf.automount.root = "/mnt";
|
wslConf.automount.root = "/mnt";
|
||||||
wslConf.interop.appendWindowsPath = true;
|
wslConf.interop.appendWindowsPath = true;
|
||||||
wslConf.interop.register = true;
|
|
||||||
wslConf.interop.enabled = true;
|
wslConf.interop.enabled = true;
|
||||||
wslConf.interop.includePath = true;
|
|
||||||
wslConf.network.generateHosts = false;
|
wslConf.network.generateHosts = false;
|
||||||
startMenuLaunchers = true;
|
startMenuLaunchers = true;
|
||||||
docker-desktop.enable = false;
|
docker-desktop.enable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user