Added nvim-tree
This commit is contained in:
@@ -11,6 +11,7 @@ vim.opt.cursorline = true -- Highlight the current line
|
||||
vim.opt.colorcolumn = "80,120" -- Show vertical ruler
|
||||
vim.opt.scrolloff = 8 -- Keep at least 8 lines between the cursor and the borders
|
||||
vim.opt.wrap = false -- Don't wrap long lines
|
||||
vim.opt.laststatus = 3 -- Single global status bar
|
||||
|
||||
-- Show whitespace characters (tabs, trailing spaces, etc.)
|
||||
vim.opt.list = true
|
||||
@@ -25,7 +26,6 @@ vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
local save_view = vim.fn.winsaveview()
|
||||
vim.cmd([[%s/\s\+$//e]]) -- Remove trailing whitespace on every line
|
||||
vim.cmd([[%s/\n\+\%$//e]]) -- Remove all trailing blank lines
|
||||
vim.fn.append(vim.fn.line('$'), '') -- Always append exactly one blank line at the end
|
||||
vim.fn.winrestview(save_view) -- Restore the window to where it was before the edits
|
||||
end,
|
||||
})
|
||||
@@ -61,4 +61,3 @@ vim.opt.smartindent = true -- Auto-indent new lines based on syntax (e.g. after
|
||||
-- Search
|
||||
vim.opt.ignorecase = true -- Case-insensitive search...
|
||||
vim.opt.smartcase = true -- ...unless you type an explicit uppercase letter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user