-- ┌─────────────────────────────────────┐ -- │ ▜ ▐ ▐ ▗ │ -- │▛▀▖▐ ▌ ▌▞▀▌▗▖▖▞▀▘▞▀▖▜▀ ▜▀ ▄ ▛▀▖▞▀▌▞▀▘│ -- │▙▄▘▐ ▌ ▌▚▄▌▘▝ ▝▀▖▛▀ ▐ ▖▐ ▖▐ ▌ ▌▚▄▌▝▀▖│ -- │▌ ▘▝▀▘▗▄▘ ▀▀ ▝▀▘ ▀ ▀ ▀▘▘ ▘▗▄▘▀▀ │ -- └─────────────────────────────────────┘ local g = vim.g -- global for let options local opt = vim.opt -- convenient :set local cmd = vim.cmd -- vim commands -- vimwiki {{{ -- g.vimwiki_list = { { path = '/home/yigit/nextcloud/personal_wiki/text', path_html = '/home/yigit/nextcloud/personal_wiki/html', auto_generate_tags = 1, automatic_nested_syntaxes = 1, template_path = '/home/yigit/nextcloud/personal_wiki/templates', template_default = 'default_template', template_ext = '.html', auto_export = 1, auto_tags = 1 } } g.vimwiki_global_ext = 0 g.vimwiki_hl_headers = 1 -- }}} vimwiki -- -- lualine {{{ -- require'lualine'.setup { options = { lower = false, icons_enabled = true, theme = 'rose-pine', section_separators = {'', ''}, component_separators = {'', ''}, disabled_filetypes = {} }, sections = { lualine_a = {{'mode', lower = true}}, lualine_b = {'branch', 'diff'}, lualine_c = {'filename'}, lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_y = {'progress'}, lualine_z = { 'location', { 'diagnostics', sources = {'ale'}, sections = {'error', 'warn', 'info', 'hint'}, symbols = {error = 'e', warn = 'w', info = 'i', hint = 'h'} } } }, inactive_sections = { lualine_a = {}, lualine_b = {}, lualine_c = {'filename'}, lualine_x = {}, lualine_y = {}, lualine_z = {} }, tabline = {}, extensions = {} } -- }}} requi -- -- Cutlass suite {{{1 -- -- cutlass/yoink/subverse suite g.yoinkIncludeDeleteOperations = 1 -- fix the Target STRING not available g.clipboard = { name = 'xsel_override', copy = { ['+'] = 'xsel --input --clipboard', ['*'] = 'xsel --input --primary', }, paste = { ['+'] = 'xsel --output --clipboard', ['*'] = 'xsel --output --primary', }, cache_enabled = 1, } -- 1}}} -- -- UltiSnips {{{ -- opt.runtimepath:append('/home/yigit/.vim/my-snippets/') g.UltiSnipsEditSplit = "vertical" -- ctrl + l expands the snippet, c + j/k navigates placeholders g.UltiSnipsExpandTrigger = "" g.UltiSnipsEnableSnipMate = "1" -- }}} UltiSnips -- -- beacon {{{ -- g.beacon_size = 100 g.beacon_shrink = 1 cmd('highlight Beacon guibg=red ctermbg=15') -- }}} beacon -- -- vim-slime {{{ -- g.slime_target = "tmux" g.slime_paste_file = "/home/yigit/.slime_paste" -- g.slime_default_config = {socket_name = get(split($TMUX, ","), 0), target_pane = "{last}"} -- }}} vim-slime -- -- vimtex {{{ -- g.vimtex_view_method = 'zathura' g.vimtex_quickfix_mode = 0 -- }}} vimtex -- -- filetype.nvim {{{ -- require('filetype').setup({ overrides = { literal = { PKGBUILD = 'PKGBUILD', }, } }) -- }}} filetype.nvim -- -- tagbar {{{ -- g.tagbar_autofocus = 1 g.tagbar_compact = 1 g.tagbar_sort = 0 g.tagbar_width = 25 -- }}} tagbar -- -- ledger {{{ -- g.ledger_maxwidth = 80 g.ledger_fillstring = ' -' -- }}} ledger -- -- devicons {{{ -- require'nvim-web-devicons'.setup { override = { wiki = { icon = "", color = "#D7827E", name = "vimwiki" }, rem = { icon = "", color = "#B4637A", name = "remind" } }; default = true } -- }}} devicons -- -- vim-slime {{{ -- g.slime_target = "tmux" g.slime_paste_file = "$HOME/.slime_paste" g.slime_default_config = {socket_name = vim.call("get", vim.call("split", vim.env.TMUX, ','), "0"), target_pane = "{last}"} -- }}} vim-slime -- -- gutentags {{{ -- g.gutentags_enabled = 1 g.gutentags_add_default_project_roots = 0 g.gutentags_project_root = {'Makefile', '.git'} g.gutentags_exclude_filetypes = {'gitcommit', 'gitconfig', 'gitrebase', 'gitsendemail', 'git'} g.gutentags_generate_on_new = 1 g.gutentags_generate_on_missing = 1 g.gutentags_generate_on_write = 1 g.gutentags_generate_on_empty_buffer = 0 g.gutentags_ctags_exclude = { '*.git', '*.svn', '*.hg', 'cache', 'build', 'dist', 'bin', 'node_modules', 'bower_components', '*-lock.json', '*.lock', '*.min.*', '*.bak', '*.zip', '*.pyc', '*.class', '*.sln', '*.csproj', '*.csproj.user', '*.tmp', '*.cache', '*.vscode', '*.pdb', '*.exe', '*.dll', '*.bin', '*.mp3', '*.ogg', '*.flac', '*.swp', '*.swo', '.DS_Store', '*.plist', '*.bmp', '*.gif', '*.ico', '*.jpg', '*.png', '*.svg', '*.rar', '*.zip', '*.tar', '*.tar.gz', '*.tar.xz', '*.tar.bz2', '*.pdf', '*.doc', '*.docx', '*.ppt', '*.pptx', '*.xls', } -- }}} gutentags -- -- float preview g["float_preview#docked"] = 0 -- highlight on yank cmd('highlight HighlightedyankRegion cterm=reverse gui=reverse') g.highlightedyank_highlight_duration = 200