options.nix 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. globals.mapleader = " ";
  3. globals.maplocalleader = " ";
  4. globals.have_nerd_font = true;
  5. opts = {
  6. # Make line numbers default
  7. number = true;
  8. relativenumber = true;
  9. # Enable mouse mode, can be useful for resizing splits for example!
  10. mouse = "a";
  11. # Don't show the mode, since it's already in the status line
  12. showmode = false;
  13. # Enable break indent
  14. breakindent = true;
  15. # Save undo history
  16. undofile = true;
  17. # Case-insensitive searching UNLESS \C or one or more capital letters in the search term
  18. ignorecase = true;
  19. smartcase = true;
  20. # Keep signcolumn on by default
  21. signcolumn = "yes";
  22. # Decrease update time
  23. updatetime = 250;
  24. # Decrease mapped sequence wait time
  25. # Displays which-key popup sooner
  26. timeoutlen = 300;
  27. # Configure how new splits should be opened
  28. splitright = true;
  29. splitbelow = true;
  30. # Sets how neovim will display certain whitespace characters in the editor.
  31. list = true;
  32. listchars = { tab = "» "; trail = "·"; nbsp = "␣"; };
  33. # Preview substitutions live, as you type!
  34. inccommand = "split";
  35. # Show which line your cursor is on
  36. cursorline = true;
  37. # Minimal number of screen lines to keep above and below the cursor.
  38. scrolloff = 10;
  39. # Set highlight on search
  40. hlsearch = true;
  41. # Disable swapfile and backup
  42. swapfile = false;
  43. backup = false;
  44. # Set's the conceal level
  45. conceallevel = 1;
  46. # I don't need a status all the time
  47. laststatus = 3;
  48. # Hide command bar
  49. cmdheight = 0;
  50. # guicursor = "";
  51. # incsearch = true;
  52. # termguicolors = true;
  53. # scrolloff = 8;
  54. # isfname = [ "@-@" ];
  55. # colorcolumn = "80";
  56. };
  57. autoCmd = [
  58. {
  59. event = "TextYankPost";
  60. desc = "Highlight when yanking (copying) text";
  61. group = "kickstart-highlight-yank";
  62. callback.__raw = ''
  63. function()
  64. vim.highlight.on_yank()
  65. end
  66. '';
  67. }
  68. ];
  69. autoGroups = {
  70. "kickstart-highlight-yank".clear = true;
  71. };
  72. }