options.nix 2.1 KB

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