diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-15 04:10:04 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-15 04:10:04 +0530 |
| commit | 61d7d04c916f1bc84058cc6043f14006522a9ede (patch) | |
| tree | 5f321efe0c7087deceeb86d07ce495a80c6105cd /modules/development/nixvim/default.nix | |
| parent | 2368e5019ab0f5584443b920d057723029d67b75 (diff) | |
| parent | 97069824b7ce38398bd03bc936d613998959b9be (diff) | |
| download | home-manager-config-61d7d04c916f1bc84058cc6043f14006522a9ede.tar.gz home-manager-config-61d7d04c916f1bc84058cc6043f14006522a9ede.zip | |
Merge branch 'nixvim-new-features'
Diffstat (limited to 'modules/development/nixvim/default.nix')
| -rw-r--r-- | modules/development/nixvim/default.nix | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/modules/development/nixvim/default.nix b/modules/development/nixvim/default.nix index bf3d143..8506b7d 100644 --- a/modules/development/nixvim/default.nix +++ b/modules/development/nixvim/default.nix @@ -28,31 +28,29 @@ tabstop = 2; softtabstop = 2; expandtab = true; + wrap = true; + linebreak = true; + breakindent = true; + showbreak = "↳"; list = true; laststatus = 3; foldlevel = 99; clipboard = "unnamedplus"; updatetime = 500; + fillchars = "eob: "; + listchars = "tab: ,trail:_,lead: "; + exrc = true; }; + globals.mapleader = " "; clipboard.providers.xclip.enable = true; - extraConfigLuaPre = with config.scheme.withHashtag; '' - vim.opt.fillchars:append({ eob = " " }) - vim.opt.listchars = { tab = " ", trail = "_", lead = " " } - vim.api.nvim_set_hl(0, "WinSeparator", { - fg = "${base01}", - bg = "${base00}", - }) - vim.api.nvim_create_autocmd({ "FileType" }, { - pattern = { "yaml", "yml" }, - callback = function() - vim.opt_local.expandtab = true - vim.opt_local.shiftwidth = 2 - vim.opt_local.softtabstop = 2 - vim.opt_local.tabstop = 2 - end, - }) - ''; + highlight = with config.scheme.withHashtag; { + WinSeparator = { + fg = base01; + bg = base00; + }; + }; + performance = { byteCompileLua.enable = true; combinePlugins.enable = true; @@ -83,6 +81,14 @@ end ''; } + { + event = [ "FileType" ]; + pattern = [ + "yaml" + "yml" + ]; + command = "setlocal expandtab shiftwidth=2 softtabstop=2 tabstop=2"; + } ]; }; }; |
