From 1cb158d18f9846e2baf7bce16152520efea58056 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 2 Apr 2024 23:32:44 +0200 Subject: [PATCH 1/2] [neovim] increased width for neotree and removed white line function --- nix/home/neovim/neovim.nix | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/nix/home/neovim/neovim.nix b/nix/home/neovim/neovim.nix index 8cae594..f4235e3 100644 --- a/nix/home/neovim/neovim.nix +++ b/nix/home/neovim/neovim.nix @@ -79,7 +79,7 @@ }, window = { position = "left", - width = 36, + width = 45, }, }) require("neo-tree.sources.manager").show("filesystem") @@ -97,21 +97,6 @@ }) end }) - - - -- function for new line - _G.add_new_line = function() - local n_lines = vim.api.nvim_buf_line_count(0) - local last_nonblank = vim.fn.prevnonblank(n_lines) - if last_nonblank <= n_lines then vim.api.nvim_buf_set_lines(0, last_nonblank, n_lines, true, { ''' }) end - end - - vim.cmd([[ - augroup AddNewlineOnSave - autocmd! - autocmd BufWritePre * lua _G.add_new_line() - augroup END - ]]) ''; # auto-complete From f60c2bbbfb97f5ae89281a70e6fb5f2b75817fe5 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 2 Apr 2024 23:48:07 +0200 Subject: [PATCH 2/2] [neovim] remove broken cursor theme --- nix/home/neovim/neovim.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nix/home/neovim/neovim.nix b/nix/home/neovim/neovim.nix index f4235e3..1656622 100644 --- a/nix/home/neovim/neovim.nix +++ b/nix/home/neovim/neovim.nix @@ -32,10 +32,6 @@ " clipboard set clipboard+=unnamedplus - " cursor - set guicursor=a:hor20-Cursor - set guicursor=v:block-Cursor - " terminal title set title