update
This commit is contained in:
@@ -68,6 +68,8 @@ vim.cmd([[colorscheme gruvbox]])
|
||||
vim.opt.termguicolors = true
|
||||
require("bufferline").setup {
|
||||
options = {
|
||||
sort_by = 'insert_after_current',
|
||||
numbers = 'ordinal',
|
||||
-- 左侧让出 nvim-tree 的位置
|
||||
diagnostics = "nvim_lsp";
|
||||
offsets = { {
|
||||
|
||||
+3
-2
@@ -43,7 +43,8 @@ return require('packer').startup(function()
|
||||
'nvim-telescope/telescope.nvim',
|
||||
requires = { { 'nvim-lua/plenary.nvim' } }
|
||||
}
|
||||
use {"akinsho/toggleterm.nvim"}
|
||||
|
||||
use { "akinsho/toggleterm.nvim" }
|
||||
use "Pocco81/AutoSave.nvim"
|
||||
|
||||
use 'lewis6991/gitsigns.nvim'
|
||||
end)
|
||||
|
||||
+21
-1
@@ -3,9 +3,29 @@ require('Comment').setup()
|
||||
require('nvim-autopairs').setup()
|
||||
|
||||
require("toggleterm").setup {
|
||||
open_mapping = [[<c-\>]],
|
||||
open_mapping = [[<F1>]],
|
||||
hide_numbers = true,
|
||||
insert_mappings = true, -- whether or not the open mapping applies in insert mode
|
||||
terminal_mappings = true,
|
||||
shell = vim.o.shell,
|
||||
}
|
||||
|
||||
require("autosave").setup {
|
||||
enabled = true,
|
||||
execution_message = "AutoSave: saved at " .. vim.fn.strftime("%H:%M:%S"),
|
||||
events = { "BufLeave", "FocusLost"},
|
||||
conditions = {
|
||||
exists = true,
|
||||
filename_is_not = {},
|
||||
filetype_is_not = {},
|
||||
modifiable = true
|
||||
},
|
||||
write_all_buffers = true,
|
||||
on_off_commands = true,
|
||||
clean_command_line_interval = 0,
|
||||
debounce_delay = 135
|
||||
}
|
||||
|
||||
require('gitsigns').setup{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user