From d954af6cb5b34be42e90a75b7f3138bf8b143d6f Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 12 Sep 2026 06:01:50 +0530 Subject: chore(development/nixvim): removed pure lua text configs --- modules/development/nixvim/default.nix | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'modules') diff --git a/modules/development/nixvim/default.nix b/modules/development/nixvim/default.nix index f1e038a..4cdb355 100644 --- a/modules/development/nixvim/default.nix +++ b/modules/development/nixvim/default.nix @@ -33,27 +33,19 @@ foldlevel = 99; clipboard = "unnamedplus"; updatetime = 500; + fillchars = "eob: "; + listchars = "tab: ,trail:_,lead: "; }; 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; @@ -84,6 +76,14 @@ end ''; } + { + event = [ "FileType" ]; + pattern = [ + "yaml" + "yml" + ]; + command = "setlocal expandtab shiftwidth=2 softtabstop=2 tabstop=2"; + } ]; }; }; -- cgit v1.2.3