Merge remote-tracking branch 'origin'
This commit is contained in:
commit
a440eda9df
@ -32,10 +32,6 @@
|
||||
" clipboard
|
||||
set clipboard+=unnamedplus
|
||||
|
||||
" cursor
|
||||
set guicursor=a:hor20-Cursor
|
||||
set guicursor=v:block-Cursor
|
||||
|
||||
" terminal title
|
||||
set title
|
||||
|
||||
@ -79,7 +75,7 @@
|
||||
},
|
||||
window = {
|
||||
position = "left",
|
||||
width = 36,
|
||||
width = 45,
|
||||
},
|
||||
})
|
||||
require("neo-tree.sources.manager").show("filesystem")
|
||||
@ -97,21 +93,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
|
||||
|
Reference in New Issue
Block a user