diff options
| author | vin <vin@vineetk.net> | 2025-05-08 16:44:18 -0400 |
|---|---|---|
| committer | vin <vin@vineetk.net> | 2025-05-08 16:44:18 -0400 |
| commit | 9deebdef86fab56d4aa0ee5c3b0c51af440712e4 (patch) | |
| tree | d0083c5028ad4131515b959a2e351bd72f5c8bcf | |
| parent | 48c5d8ae41092614c02f04002a9e27761f065214 (diff) | |
demiurge, hastur: change neovim config a bit
| -rw-r--r-- | home.nix | 23 |
1 files changed, 21 insertions, 2 deletions
| @@ -445,15 +445,20 @@ in | |||
| 445 | enable = true; | 445 | enable = true; |
| 446 | 446 | ||
| 447 | extraLuaConfig = '' | 447 | extraLuaConfig = '' |
| 448 | -- my better defaults | ||
| 448 | vim.opt.autoindent = true | 449 | vim.opt.autoindent = true |
| 449 | vim.opt.autoread = true | 450 | vim.opt.autoread = true |
| 450 | vim.opt.backup = false | 451 | vim.opt.backup = false |
| 451 | vim.opt.hlsearch = false | 452 | vim.opt.hlsearch = false |
| 452 | vim.opt.relativenumber = true | 453 | vim.opt.relativenumber = true |
| 453 | 454 | ||
| 455 | -- colors | ||
| 454 | vim.opt.bg = "dark" | 456 | vim.opt.bg = "dark" |
| 455 | vim.opt.colorcolumn = "80" | 457 | vim.opt.colorcolumn = "80" |
| 456 | vim.cmd("colorscheme everblush") | 458 | vim.cmd("colorscheme everblush") |
| 459 | |||
| 460 | -- mappings | ||
| 461 | vim.g.mapleader = " " | ||
| 457 | ''; | 462 | ''; |
| 458 | 463 | ||
| 459 | plugins = with pkgs.vimPlugins; [ | 464 | plugins = with pkgs.vimPlugins; [ |
| @@ -482,8 +487,22 @@ in | |||
| 482 | ''; | 487 | ''; |
| 483 | } | 488 | } |
| 484 | 489 | ||
| 490 | # languages | ||
| 485 | vim-nix | 491 | vim-nix |
| 486 | ]; | 492 | |
| 493 | # qol plugins | ||
| 494 | { | ||
| 495 | plugin = which-key-nvim; | ||
| 496 | config = '' | ||
| 497 | lua << END | ||
| 498 | require "which-key".setup { | ||
| 499 | delay = 300 | ||
| 500 | } | ||
| 501 | END | ||
| 502 | ''; | ||
| 503 | } | ||
| 504 | neogit | ||
| 505 | gitsigns-nvim | ||
| 487 | 506 | ||
| 488 | # tree-sitter stuff, mainly for better syntax highlighting | 507 | # tree-sitter stuff, mainly for better syntax highlighting |
| 489 | nvim-treesitter | 508 | nvim-treesitter |
| @@ -554,7 +573,7 @@ in | |||
| 554 | viAlias = true; | 573 | viAlias = true; |
| 555 | vimAlias = true; | 574 | vimAlias = true; |
| 556 | withNodeJs = false; | 575 | withNodeJs = false; |
| 557 | withPython3 = true; | 576 | withPython3 = false; |
| 558 | withRuby = false; | 577 | withRuby = false; |
| 559 | }; | 578 | }; |
| 560 | 579 | ||
