Edit kitty tabbar and minor configurations, change lvim keybinds
This commit is contained in:
parent
a97757fa99
commit
5f162a12ee
4 changed files with 257 additions and 216 deletions
|
@ -1,22 +1,22 @@
|
|||
# vim:fileencoding=utf-8:foldmethod=marker
|
||||
|
||||
#: Fonts {{{
|
||||
font_family Fira Code Regular Nerd Font Complete
|
||||
font_family JetBrainsMono Nerd Font Mono
|
||||
bold_font auto
|
||||
italic_font auto
|
||||
bold_italic_font auto
|
||||
font_size 11.0
|
||||
disable_ligatures always
|
||||
box_drawing_scale 0.001, 1, 1.5, 2
|
||||
font_size 14.0
|
||||
disable_ligatures cursor
|
||||
#: }}}
|
||||
|
||||
#: Cursor customization {{{
|
||||
cursor #c0caf5
|
||||
cursor_text_color #1a1b26
|
||||
cursor_stop_blinking_after 10.0
|
||||
#: }}}
|
||||
|
||||
#: Scrollback {{{
|
||||
scrollback_lines 10000
|
||||
scrollback_lines 20000
|
||||
scrollback_pager_history_size 10
|
||||
scrollback_fill_enlarged_window yes
|
||||
#: }}}
|
||||
|
@ -24,8 +24,9 @@ scrollback_fill_enlarged_window yes
|
|||
#: Mouse {{{
|
||||
mouse_hide_wait -1
|
||||
url_color #9ece6a
|
||||
#: Mouse actions {{{
|
||||
#: }}}
|
||||
pointer_shape_when_dragging hand
|
||||
rectangle_select_modifiers ctrl+alt
|
||||
focus_follows_mouse yes
|
||||
#: }}}
|
||||
|
||||
#: Performance tuning {{{
|
||||
|
@ -35,35 +36,35 @@ input_delay 2
|
|||
|
||||
#: Terminal bell {{{
|
||||
enable_audio_bell no
|
||||
window_alert_on_bell yes
|
||||
bell_on_tab ""
|
||||
command_on_bell none
|
||||
window_alert_on_bell no
|
||||
#: }}}
|
||||
|
||||
#: Tab bar {{{
|
||||
tab_activity_symbol none
|
||||
bell_on_tab no
|
||||
tab_separator ""
|
||||
tab_bar_edge bottom
|
||||
tab_bar_margin_width 0.0
|
||||
tab_bar_margin_height 0.0 0.0
|
||||
tab_bar_style powerline
|
||||
tab_bar_style custom
|
||||
tab_bar_align left
|
||||
tab_bar_min_tabs 2
|
||||
tab_bar_min_tabs 1
|
||||
tab_switch_strategy previous
|
||||
tab_powerline_style slanted
|
||||
tab_activity_symbol ""
|
||||
tab_title_template "{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}"
|
||||
active_tab_foreground #3d59a1
|
||||
active_tab_background #16161e
|
||||
tab_title_template " 祿{f'{title[:6]}…{title[-6:]}' if title.rindex(title[-1]) + 1 > 25 else title}"
|
||||
active_tab_title_template " 綠{f'{title[:6]}…{title[-6:]}' if title.rindex(title[-1]) + 1 > 25 else title}"
|
||||
active_tab_foreground #c0caf5
|
||||
active_tab_background #101014
|
||||
active_tab_font_style bold
|
||||
inactive_tab_foreground #787c99
|
||||
inactive_tab_background #16161e
|
||||
inactive_tab_font_style normal
|
||||
inactive_tab_foreground #414868
|
||||
inactive_tab_background #101014
|
||||
inactive_tab_font_style bold
|
||||
tab_bar_background #101014
|
||||
#: }}}
|
||||
|
||||
#: Color scheme {{{
|
||||
foreground #a9b1d6
|
||||
background #1a1b26
|
||||
background_opacity 0.8
|
||||
background_opacity 1
|
||||
dim_opacity 0.75
|
||||
selection_foreground none
|
||||
selection_background #28344a
|
||||
|
@ -96,7 +97,7 @@ color15 #c0caf5
|
|||
|
||||
#: Advanced {{{
|
||||
close_on_child_death no
|
||||
allow_remote_control no
|
||||
allow_remote_control yes
|
||||
listen_on none
|
||||
#: }}}
|
||||
|
||||
|
@ -106,35 +107,30 @@ confirm_os_window_close 0
|
|||
#: }}}
|
||||
|
||||
#: Keyboard shortcuts {{{
|
||||
clear_all_shortcuts no
|
||||
clear_all_shortcuts yes
|
||||
kitty_mod ctrl+shift
|
||||
map kitty_mod+c copy_to_clipboard
|
||||
map kitty_mod+v paste_from_clipboard
|
||||
map kitty_mod+s paste_from_selection
|
||||
#: }}}
|
||||
|
||||
#: Scrolling {{{
|
||||
map kitty_mod+up scroll_line_up
|
||||
map kitty_mod+k scroll_line_up
|
||||
map kitty_mod+down scroll_line_down
|
||||
map kitty_mod+j scroll_line_down
|
||||
map kitty_mod+page_up scroll_page_up
|
||||
map kitty_mod+page_down scroll_page_down
|
||||
map kitty_mod+home scroll_home
|
||||
map kitty_mod+end scroll_end
|
||||
map kitty_mod+z scroll_to_prompt -1
|
||||
map kitty_mod+y scroll_to_prompt -1
|
||||
map kitty_mod+x scroll_to_prompt 1
|
||||
map kitty_mod+h show_scrollback
|
||||
map kitty_mod+g show_last_command_output
|
||||
#: }}}
|
||||
|
||||
#: Tab management {{{
|
||||
map ctrl+right next_tab
|
||||
map ctrl+tab next_tab
|
||||
map ctrl+left previous_tab
|
||||
map ctrl+shift+tab previous_tab
|
||||
map shift+right next_tab
|
||||
map shift+left previous_tab
|
||||
map kitty_mod+t new_tab
|
||||
map kitty_mod+q close_tab
|
||||
map kitty_mod+r close_tab
|
||||
map kitty_mod+right move_tab_forward
|
||||
map kitty_mod+left move_tab_backward
|
||||
map kitty_mod+alt+t set_tab_title
|
||||
|
@ -158,14 +154,7 @@ map kitty_mod+p>y kitten hints --type hyperlink
|
|||
#: }}}
|
||||
|
||||
#: Miscellaneous {{{
|
||||
map kitty_mod+u kitten unicode_input
|
||||
map kitty_mod+f2 edit_config_file
|
||||
map kitty_mod+escape kitty_shell tab
|
||||
map kitty_mod+a>m set_background_opacity +0.1
|
||||
map kitty_mod+a>l set_background_opacity -0.1
|
||||
map kitty_mod+a>1 set_background_opacity 1
|
||||
map kitty_mod+a>d set_background_opacity default
|
||||
map kitty_mod+delete clear_terminal reset active
|
||||
map kitty_mod+f5 load_config_file
|
||||
#: }}}
|
||||
|
||||
|
|
129
.config/kitty/tab_bar.py
Executable file
129
.config/kitty/tab_bar.py
Executable file
|
@ -0,0 +1,129 @@
|
|||
# pyright: reportMissingImports=false
|
||||
import datetime
|
||||
|
||||
from kitty.boss import get_boss
|
||||
from kitty.fast_data_types import Screen, add_timer
|
||||
from kitty.tab_bar import (
|
||||
DrawData,
|
||||
ExtraData,
|
||||
Formatter,
|
||||
TabBarData,
|
||||
as_rgb,
|
||||
draw_attributed_string,
|
||||
draw_title,
|
||||
)
|
||||
from kitty.utils import color_as_int
|
||||
|
||||
|
||||
def calc_draw_spaces(*args) -> int:
|
||||
length = 0
|
||||
for i in args:
|
||||
if not isinstance(i, str):
|
||||
i = str(i)
|
||||
length += len(i)
|
||||
return length
|
||||
|
||||
|
||||
def _draw_left_status(
|
||||
draw_data: DrawData,
|
||||
screen: Screen,
|
||||
tab: TabBarData,
|
||||
before: int,
|
||||
max_title_length: int,
|
||||
index: int,
|
||||
is_last: bool,
|
||||
extra_data: ExtraData,
|
||||
) -> int:
|
||||
print(extra_data)
|
||||
if draw_data.leading_spaces:
|
||||
screen.draw(" " * draw_data.leading_spaces)
|
||||
|
||||
draw_title(draw_data, screen, tab, index)
|
||||
trailing_spaces = min(max_title_length - 1, draw_data.trailing_spaces)
|
||||
max_title_length -= trailing_spaces
|
||||
extra = screen.cursor.x - before - max_title_length
|
||||
if extra > 0:
|
||||
screen.cursor.x -= extra + 1
|
||||
screen.draw("…")
|
||||
if trailing_spaces:
|
||||
screen.draw(" " * trailing_spaces)
|
||||
end = screen.cursor.x
|
||||
screen.cursor.bold = screen.cursor.italic = False
|
||||
screen.cursor.fg = 0
|
||||
if not is_last:
|
||||
screen.cursor.bg = as_rgb(color_as_int(draw_data.inactive_bg))
|
||||
screen.draw(draw_data.sep)
|
||||
screen.cursor.bg = 0
|
||||
return end
|
||||
|
||||
|
||||
def _draw_right_status(draw_data: DrawData, screen: Screen, is_last: bool) -> int:
|
||||
if not is_last:
|
||||
return 0
|
||||
|
||||
draw_attributed_string(Formatter.reset, screen)
|
||||
time = datetime.datetime.now().strftime(" %H:%M")
|
||||
date = datetime.datetime.now().strftime(" %d.%m.%Y")
|
||||
|
||||
right_status_length = calc_draw_spaces(time + " " + date)
|
||||
|
||||
draw_spaces = screen.columns - screen.cursor.x - right_status_length
|
||||
if draw_spaces > 0:
|
||||
screen.draw(" " * draw_spaces)
|
||||
|
||||
cells = [
|
||||
(draw_data.active_fg, time),
|
||||
(draw_data.inactive_fg, date),
|
||||
]
|
||||
|
||||
screen.cursor.fg = 0
|
||||
for color, status in cells:
|
||||
screen.cursor.fg = as_rgb(color_as_int(color))
|
||||
screen.draw(status)
|
||||
screen.cursor.bg = 0
|
||||
|
||||
if screen.columns - screen.cursor.x > right_status_length:
|
||||
screen.cursor.x = screen.columns - right_status_length
|
||||
|
||||
return screen.cursor.x
|
||||
|
||||
|
||||
def _redraw_tab_bar():
|
||||
tm = get_boss().active_tab_manager
|
||||
if tm is not None:
|
||||
tm.mark_tab_bar_dirty()
|
||||
|
||||
|
||||
timer_id = None
|
||||
|
||||
|
||||
def draw_tab(
|
||||
draw_data: DrawData,
|
||||
screen: Screen,
|
||||
tab: TabBarData,
|
||||
before: int,
|
||||
max_title_length: int,
|
||||
index: int,
|
||||
is_last: bool,
|
||||
extra_data: ExtraData,
|
||||
) -> int:
|
||||
global timer_id
|
||||
if timer_id is None:
|
||||
timer_id = add_timer(_redraw_tab_bar, 2.0, True)
|
||||
_draw_left_status(
|
||||
draw_data,
|
||||
screen,
|
||||
tab,
|
||||
before,
|
||||
max_title_length,
|
||||
index,
|
||||
is_last,
|
||||
extra_data,
|
||||
)
|
||||
_draw_right_status(
|
||||
draw_data,
|
||||
screen,
|
||||
is_last,
|
||||
)
|
||||
|
||||
return screen.cursor.x
|
|
@ -1,19 +1,40 @@
|
|||
-- general
|
||||
lvim.log.level = "warn"
|
||||
lvim.colorscheme = "tokyonight"
|
||||
vim.g.tokyonight_style = "night"
|
||||
vim.opt.undodir = vim.fn.stdpath "cache" .. "/undo"
|
||||
vim.opt.undofile = true
|
||||
vim.opt.titlestring = "%t - nvim"
|
||||
lvim.log.level = "warn"
|
||||
lvim.colorscheme = "tokyonight"
|
||||
vim.g.tokyonight_style = "night"
|
||||
vim.opt.undodir = vim.fn.stdpath "cache" .. "/undo"
|
||||
vim.opt.undofile = true
|
||||
vim.opt.titlestring = "%t - vim"
|
||||
lvim.builtin.alpha.active = true
|
||||
lvim.builtin.alpha.mode = "dashboard"
|
||||
lvim.builtin.terminal.active = true
|
||||
lvim.builtin.nvimtree.active = false
|
||||
lvim.builtin.treesitter.highlight.enabled = true
|
||||
lvim.lsp.automatic_servers_installation = true
|
||||
vim.g.NERDTreeHijackNetrw = 0
|
||||
vim.g.lf_replace_netrw = 1
|
||||
|
||||
-- opts for LF
|
||||
vim.g.NERDTreeHijackNetrw = 0
|
||||
vim.g.lf_replace_netrw = 1
|
||||
vim.g.lf_command_override = 'lf -command "set nopreview" -command "set hidden"'
|
||||
local formatters = require "lvim.lsp.null-ls.formatters"
|
||||
formatters.setup {
|
||||
{ command = "black", filetypes = { "python" } },
|
||||
}
|
||||
|
||||
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "zsh",
|
||||
callback = function()
|
||||
require("nvim-treesitter.highlight").attach(0, "bash")
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.cmd("hi FloatermBorder guibg=none")
|
||||
end
|
||||
})
|
||||
|
||||
-- Lualine
|
||||
lvim.builtin.lualine.style = "none"
|
||||
local components = require "lvim.core.lualine.components"
|
||||
local colors = require "lvim.core.lualine.colors"
|
||||
components.scrollbar = {
|
||||
|
@ -41,27 +62,66 @@ lvim.builtin.lualine.sections = {
|
|||
lualine_z = { components.encoding, components.filetype },
|
||||
}
|
||||
|
||||
-- Plugins
|
||||
lvim.plugins = {
|
||||
{ "folke/tokyonight.nvim" },
|
||||
{ "nacro90/numb.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("numb").setup {
|
||||
show_numbers = true,
|
||||
show_cursorline = true,
|
||||
}
|
||||
end,
|
||||
},
|
||||
{ "sindrets/diffview.nvim",
|
||||
event = "BufRead",
|
||||
},
|
||||
{ "folke/todo-comments.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("todo-comments").setup()
|
||||
end,
|
||||
},
|
||||
{ "felipec/vim-sanegx",
|
||||
event = "BufRead",
|
||||
},
|
||||
{ "ptzz/lf.vim",
|
||||
requires = "voldikss/vim-floaterm",
|
||||
},
|
||||
{ "vimwiki/vimwiki" }
|
||||
}
|
||||
|
||||
-- keymappings [view all the defaults by pressing <leader>Lk]
|
||||
lvim.leader = "space"
|
||||
local _, actions = pcall(require, "telescope.actions")
|
||||
lvim.builtin.telescope.defaults.mappings = {
|
||||
-- for input mode
|
||||
i = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
["<C-n>"] = actions.cycle_history_next,
|
||||
["<C-p>"] = actions.cycle_history_prev,
|
||||
},
|
||||
-- for normal mode
|
||||
n = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
lvim.keys.insert_mode = {
|
||||
["<c-s>"] = "<ESC>:w<CR>i<Right>",
|
||||
["<c-q>"] = "<ESC>:bd<CR>"
|
||||
}
|
||||
lvim.keys.normal_mode = {
|
||||
["<c-s>"] = ":w<CR>",
|
||||
["<c-q>"] = ":bd<CR>"
|
||||
}
|
||||
lvim.keys.term_mode = {
|
||||
["<c-q>"] = ":bd<CR>"
|
||||
}
|
||||
lvim.keys.visual_mode = {
|
||||
["<c-s>"] = "<ESC>:w<CR>",
|
||||
["<c-q>"] = "<ESC>:bd<CR>",
|
||||
["<"] = "<gv",
|
||||
[">"] = ">gv",
|
||||
}
|
||||
lvim.keys.visual_block_mode = {
|
||||
["<c-s>"] = "<ESC>:w<CR>",
|
||||
["<c-q>"] = "<ESC>:bd<CR>",
|
||||
["K"] = ":move '<-2<CR>gv-gv",
|
||||
["J"] = ":move '>+1<CR>gv-gv",
|
||||
}
|
||||
|
||||
|
||||
lvim.builtin.which_key.mappings = {
|
||||
[";"] = { "<cmd>Alpha<CR>", "Dashboard" },
|
||||
["/"] = { "<cmd>lua require('Comment.api').toggle_current_linewise()<CR>", "Comment" },
|
||||
["c"] = { "<cmd>BufferKill<CR>", "Close Buffer" },
|
||||
["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" },
|
||||
["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" },
|
||||
["e"] = { "<cmd>Lf<CR>", "List Files" },
|
||||
|
@ -240,86 +300,3 @@ lvim.builtin.which_key.mappings = {
|
|||
},
|
||||
w = { name = "VimWiki" }
|
||||
}
|
||||
lvim.builtin.alpha.active = true
|
||||
lvim.builtin.alpha.mode = "dashboard"
|
||||
lvim.builtin.notify.active = true
|
||||
lvim.builtin.terminal.active = true
|
||||
lvim.builtin.nvimtree.setup.view.side = "left"
|
||||
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
|
||||
|
||||
-- parsers
|
||||
lvim.builtin.treesitter.ensure_installed = {
|
||||
"bash",
|
||||
"c",
|
||||
"json",
|
||||
"lua",
|
||||
"python",
|
||||
"yaml",
|
||||
}
|
||||
|
||||
lvim.builtin.treesitter.highlight.enabled = true
|
||||
|
||||
-- generic LSP settings
|
||||
lvim.lsp.automatic_servers_installation = false
|
||||
|
||||
-- formatters
|
||||
local formatters = require "lvim.lsp.null-ls.formatters"
|
||||
formatters.setup {
|
||||
{ command = "black", filetypes = { "python" } },
|
||||
}
|
||||
|
||||
-- -- set additional linters
|
||||
-- local linters = require "lvim.lsp.null-ls.linters"
|
||||
-- linters.setup {
|
||||
-- { command = "flake8", filetypes = { "python" } },
|
||||
-- }
|
||||
|
||||
-- Plugins
|
||||
lvim.plugins = {
|
||||
{ "folke/tokyonight.nvim" },
|
||||
{ "nacro90/numb.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("numb").setup {
|
||||
show_numbers = true,
|
||||
show_cursorline = true,
|
||||
}
|
||||
end,
|
||||
},
|
||||
{ "sindrets/diffview.nvim",
|
||||
event = "BufRead",
|
||||
},
|
||||
{ "metakirby5/codi.vim",
|
||||
cmd = "Codi",
|
||||
},
|
||||
{ "folke/todo-comments.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("todo-comments").setup()
|
||||
end,
|
||||
},
|
||||
{ "tpope/vim-repeat" },
|
||||
{ "felipec/vim-sanegx",
|
||||
event = "BufRead",
|
||||
},
|
||||
{ "ptzz/lf.vim",
|
||||
requires = "voldikss/vim-floaterm",
|
||||
},
|
||||
{ "vimwiki/vimwiki" }
|
||||
}
|
||||
|
||||
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "zsh",
|
||||
callback = function()
|
||||
-- let treesitter use bash highlight for zsh files as well
|
||||
require("nvim-treesitter.highlight").attach(0, "bash")
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.cmd("hi FloatermBorder guibg=none")
|
||||
end
|
||||
})
|
||||
|
|
|
@ -123,14 +123,6 @@ _G.packer_plugins = {
|
|||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/cmp_luasnip",
|
||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
||||
},
|
||||
["codi.vim"] = {
|
||||
commands = { "Codi" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/opt/codi.vim",
|
||||
url = "https://github.com/metakirby5/codi.vim"
|
||||
},
|
||||
["diffview.nvim"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
|
@ -152,7 +144,6 @@ _G.packer_plugins = {
|
|||
url = "https://github.com/lewis6991/gitsigns.nvim"
|
||||
},
|
||||
["lf.vim"] = {
|
||||
config = { "\27LJ\2\n¬\1\0\0\2\0\6\0\r6\0\0\0009\0\1\0)\1\0\0=\1\2\0006\0\0\0009\0\1\0)\1\1\0=\1\3\0006\0\0\0009\0\1\0'\1\5\0=\1\4\0K\0\1\0006lf -command \"set nopreview\" -command \"set hidden\"\24lf_command_override\21lf_replace_netrw\24NERDTreeHijackNetrw\6g\bvim\0" },
|
||||
loaded = true,
|
||||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/lf.vim",
|
||||
url = "https://github.com/ptzz/lf.vim"
|
||||
|
@ -210,18 +201,6 @@ _G.packer_plugins = {
|
|||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/nvim-lspconfig",
|
||||
url = "https://github.com/neovim/nvim-lspconfig"
|
||||
},
|
||||
["nvim-notify"] = {
|
||||
config = { "\27LJ\2\n>\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\21lvim.core.notify\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/nvim-notify",
|
||||
url = "https://github.com/rcarriga/nvim-notify"
|
||||
},
|
||||
["nvim-tree.lua"] = {
|
||||
config = { "\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.nvimtree\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua",
|
||||
url = "https://github.com/kyazdani42/nvim-tree.lua"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
config = { "\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.treesitter\frequire\0" },
|
||||
loaded = true,
|
||||
|
@ -308,11 +287,6 @@ _G.packer_plugins = {
|
|||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/vim-floaterm",
|
||||
url = "https://github.com/voldikss/vim-floaterm"
|
||||
},
|
||||
["vim-repeat"] = {
|
||||
loaded = true,
|
||||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/vim-repeat",
|
||||
url = "https://github.com/tpope/vim-repeat"
|
||||
},
|
||||
["vim-sanegx"] = {
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
|
@ -320,12 +294,6 @@ _G.packer_plugins = {
|
|||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/opt/vim-sanegx",
|
||||
url = "https://github.com/felipec/vim-sanegx"
|
||||
},
|
||||
vimtex = {
|
||||
config = { "\27LJ\2\n<\0\0\2\0\4\0\0056\0\0\0009\0\1\0'\1\3\0=\1\2\0K\0\1\0\fzathura\23vimtex_view_method\6g\bvim\0" },
|
||||
loaded = true,
|
||||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/vimtex",
|
||||
url = "https://github.com/lervag/vimtex"
|
||||
},
|
||||
vimwiki = {
|
||||
loaded = true,
|
||||
path = "/home/luca/.local/share/lunarvim/site/pack/packer/start/vimwiki",
|
||||
|
@ -374,42 +342,18 @@ end
|
|||
time([[Config for LuaSnip]], true)
|
||||
try_loadstring("\27LJ\2\nñ\3\0\0\v\0\23\00166\0\0\0'\2\1\0B\0\2\0024\1\0\0006\2\2\0009\2\3\0029\2\4\0029\2\5\0029\2\6\2\15\0\2\0X\3\f€\21\2\1\0\22\2\0\0029\3\a\0006\5\b\0B\5\1\2'\6\t\0'\a\n\0'\b\v\0'\t\f\0'\n\r\0B\3\a\2<\3\2\0019\2\a\0006\4\14\0B\4\1\2'\5\15\0B\2\3\0029\3\16\0\18\5\2\0B\3\2\2\15\0\3\0X\4\3€\21\3\1\0\22\3\0\3<\2\3\0016\3\0\0'\5\17\0B\3\2\0029\3\18\3B\3\1\0016\3\0\0'\5\19\0B\3\2\0029\3\18\0035\5\20\0=\1\21\5B\3\2\0016\3\0\0'\5\22\0B\3\2\0029\3\18\3B\3\1\1K\0\1\0\"luasnip.loaders.from_snipmate\npaths\1\0\0 luasnip.loaders.from_vscode\14lazy_load\29luasnip.loaders.from_lua\17is_directory\rsnippets\19get_config_dir\22friendly-snippets\nstart\vpacker\tpack\tsite\20get_runtime_dir\15join_paths\22friendly_snippets\fsources\fluasnip\fbuiltin\tlvim\15lvim.utils\frequire\2\0", "config", "LuaSnip")
|
||||
time([[Config for LuaSnip]], false)
|
||||
-- Config for: nvim-cmp
|
||||
time([[Config for nvim-cmp]], true)
|
||||
try_loadstring("\27LJ\2\n`\0\0\3\0\6\0\v6\0\0\0009\0\1\0009\0\2\0\15\0\0\0X\1\5€6\0\3\0'\2\4\0B\0\2\0029\0\5\0B\0\1\1K\0\1\0\nsetup\18lvim.core.cmp\frequire\bcmp\fbuiltin\tlvim\0", "config", "nvim-cmp")
|
||||
time([[Config for nvim-cmp]], false)
|
||||
-- Config for: telescope.nvim
|
||||
time([[Config for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.telescope\frequire\0", "config", "telescope.nvim")
|
||||
time([[Config for telescope.nvim]], false)
|
||||
-- Config for: vimtex
|
||||
time([[Config for vimtex]], true)
|
||||
try_loadstring("\27LJ\2\n<\0\0\2\0\4\0\0056\0\0\0009\0\1\0'\1\3\0=\1\2\0K\0\1\0\fzathura\23vimtex_view_method\6g\bvim\0", "config", "vimtex")
|
||||
time([[Config for vimtex]], false)
|
||||
-- Config for: nvim-treesitter
|
||||
time([[Config for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.treesitter\frequire\0", "config", "nvim-treesitter")
|
||||
time([[Config for nvim-treesitter]], false)
|
||||
-- Config for: nvim-tree.lua
|
||||
time([[Config for nvim-tree.lua]], true)
|
||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.nvimtree\frequire\0", "config", "nvim-tree.lua")
|
||||
time([[Config for nvim-tree.lua]], false)
|
||||
-- Config for: lf.vim
|
||||
time([[Config for lf.vim]], true)
|
||||
try_loadstring("\27LJ\2\n¬\1\0\0\2\0\6\0\r6\0\0\0009\0\1\0)\1\0\0=\1\2\0006\0\0\0009\0\1\0)\1\1\0=\1\3\0006\0\0\0009\0\1\0'\1\5\0=\1\4\0K\0\1\0006lf -command \"set nopreview\" -command \"set hidden\"\24lf_command_override\21lf_replace_netrw\24NERDTreeHijackNetrw\6g\bvim\0", "config", "lf.vim")
|
||||
time([[Config for lf.vim]], false)
|
||||
-- Config for: telescope.nvim
|
||||
time([[Config for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.telescope\frequire\0", "config", "telescope.nvim")
|
||||
time([[Config for telescope.nvim]], false)
|
||||
-- Config for: nvim-autopairs
|
||||
time([[Config for nvim-autopairs]], true)
|
||||
try_loadstring("\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.autopairs\frequire\0", "config", "nvim-autopairs")
|
||||
time([[Config for nvim-autopairs]], false)
|
||||
-- Config for: nvim-notify
|
||||
time([[Config for nvim-notify]], true)
|
||||
try_loadstring("\27LJ\2\n>\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\21lvim.core.notify\frequire\0", "config", "nvim-notify")
|
||||
time([[Config for nvim-notify]], false)
|
||||
-- Config for: project.nvim
|
||||
time([[Config for project.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.project\frequire\0", "config", "project.nvim")
|
||||
time([[Config for project.nvim]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.lualine\frequire\0", "config", "lualine.nvim")
|
||||
|
@ -418,19 +362,21 @@ time([[Config for lualine.nvim]], false)
|
|||
time([[Config for alpha-nvim]], true)
|
||||
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.alpha\frequire\0", "config", "alpha-nvim")
|
||||
time([[Config for alpha-nvim]], false)
|
||||
|
||||
-- Command lazy-loads
|
||||
time([[Defining lazy-load commands]], true)
|
||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Codi lua require("packer.load")({'codi.vim'}, { cmd = "Codi", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||
time([[Defining lazy-load commands]], false)
|
||||
|
||||
-- Config for: nvim-cmp
|
||||
time([[Config for nvim-cmp]], true)
|
||||
try_loadstring("\27LJ\2\n`\0\0\3\0\6\0\v6\0\0\0009\0\1\0009\0\2\0\15\0\0\0X\1\5€6\0\3\0'\2\4\0B\0\2\0029\0\5\0B\0\1\1K\0\1\0\nsetup\18lvim.core.cmp\frequire\bcmp\fbuiltin\tlvim\0", "config", "nvim-cmp")
|
||||
time([[Config for nvim-cmp]], false)
|
||||
-- Config for: project.nvim
|
||||
time([[Config for project.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.project\frequire\0", "config", "project.nvim")
|
||||
time([[Config for project.nvim]], false)
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
vim.cmd [[au BufWinEnter * ++once lua require("packer.load")({'which-key.nvim', 'bufferline.nvim', 'toggleterm.nvim'}, { event = "BufWinEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'vim-sanegx', 'gitsigns.nvim', 'Comment.nvim', 'diffview.nvim', 'todo-comments.nvim', 'numb.nvim'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufWinEnter * ++once lua require("packer.load")({'bufferline.nvim', 'which-key.nvim', 'toggleterm.nvim'}, { event = "BufWinEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufReadPost * ++once lua require("packer.load")({'nvim-ts-context-commentstring'}, { event = "BufReadPost *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'vim-sanegx', 'gitsigns.nvim', 'numb.nvim', 'todo-comments.nvim', 'diffview.nvim', 'Comment.nvim'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
if should_profile then save_profiles() end
|
||||
|
|
Loading…
Add table
Reference in a new issue