From 1d4b0cca802ff0f2ef00caeb00a70b681a874ae7 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Mon, 19 Feb 2024 08:01:03 -0500 Subject: [PATCH] Cleanup extra nixvim config --- home/default.nix | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/home/default.nix b/home/default.nix index d9f4a77..1574022 100644 --- a/home/default.nix +++ b/home/default.nix @@ -512,17 +512,6 @@ in { vim.cmd([[highlight ExtraWhitespace ctermbg=red guibg=red]]) vim.cmd([[match ExtraWhitespace /\s\+$/]]) - ------------------------------------------------------------------------------- - -- completion {{{1 ------------------------------------------------------------------- - ------------------------------------------------------------------------------- - - local has_words_before = function() - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil - end - - local cmp = require("cmp") - -- folding vim.api.nvim_exec( [[