[neovim] increased width for neotree and removed white line function

This commit is contained in:
Simon Cornet 2024-04-02 23:32:44 +02:00
parent 0531d4b4c8
commit 1cb158d18f

View File

@ -79,7 +79,7 @@
}, },
window = { window = {
position = "left", position = "left",
width = 36, width = 45,
}, },
}) })
require("neo-tree.sources.manager").show("filesystem") require("neo-tree.sources.manager").show("filesystem")
@ -97,21 +97,6 @@
}) })
end 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 # auto-complete