[feat] update

This commit is contained in:
jay
2023-08-26 01:14:03 +08:00
parent a2acab1fed
commit 4e7bcf405e
4 changed files with 32 additions and 66 deletions
+17 -56
View File
@@ -58,6 +58,11 @@ Plug 'kien/tabman.vim'
Plug 'tpope/vim-fugitive'
Plug 'christoomey/vim-conflicted'
" for neogit
Plug 'NeogitOrg/neogit'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
" for mark
Plug 'inkarkat/vim-ingo-library'
Plug 'inkarkat/vim-mark'
@@ -305,52 +310,6 @@ let g:fzf_history_dir = '~/.local/share/fzf-history'
lua << EOF
--[[
require("tokyonight").setup({
-- your configuration comes here
-- or leave it empty to use the default settings
style = "moon", -- The theme comes in three styles, `storm`, `moon`, a darker variant `night` and `day`
light_style = "day", -- The theme is used when the background is set to light
transparent = true, -- Enable this to disable setting the background color
terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
styles = {
-- Style to be applied to different syntax groups
-- Value is any valid attr-list value for `:help nvim_set_hl`
comments = { italic = true },
keywords = { italic = true },
functions = {},
variables = {},
-- Background styles. Can be "dark", "transparent" or "normal"
sidebars = "dark", -- style for sidebars, see below
floats = "dark", -- style for floating windows
},
sidebars = { "qf", "help" }, -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]`
day_brightness = 0.3, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors
hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**.
dim_inactive = false, -- dims inactive windows
lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold
--- You can override specific color groups to use other groups or a hex color
--- function will be called with a ColorScheme table
---@param colors ColorScheme
on_colors = function(colors) end,
--- You can override specific highlights to use other groups or a hex color
--- function will be called with a Highlights and ColorScheme table
---@param highlights Highlights
---@param colors ColorScheme
on_highlights = function(highlights, colors)
highlights.CursorLineNr = {
fg = colors.blue5,
bold = true,
}
highlights.LineNr = {
fg = colors.blue,
}
end,
})
]]
-- vim.cmd[[colorscheme tokyonight]]
vim.g.nightflyTransparent = true
vim.cmd[[colorscheme nightfly]]
@@ -407,15 +366,6 @@ require("bufferline").setup{
diagnostics = "nvim_lsp",
}
}
-- require('tabnine').setup({
-- disable_auto_comment=true,
-- accept_keymap="<C-J>",
-- dismiss_keymap = "<C-]>",
-- debounce_ms = 600,
-- suggestion_color = {gui = "#808080", cterm = 244},
-- exclude_filetypes = {"TelescopePrompt"}
-- })
vim.opt.list = true
-- vim.opt.listchars:append "eol:↴"
@@ -519,6 +469,13 @@ cmp.setup {
}),
}
--vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
-- vim.lsp.diagnostic.on_publish_diagnostics, {
-- virtual_text = false
-- }
--)
vim.diagnostic.config({virtual_text = false, signs = false})
require'nvim-tree'.setup {
auto_reload_on_write = true,
disable_netrw = false,
@@ -620,7 +577,7 @@ require('aerial').setup({
"Field",
"Constant",
},
manage_folds = true,
--manage_folds = true,
link_tree_to_folds = false,
-- Show box drawing characters for the tree hierarchy
show_guides = true,
@@ -640,4 +597,8 @@ require('aerial').setup({
-- You probably also want to set a keymap to toggle aerial
vim.keymap.set('n', '<F8>', '<cmd>AerialToggle!<CR>')
local neogit = require('neogit')
neogit.setup {}
EOF