2023-07-24 22:59:36 +02:00
|
|
|
|
|
|
|
" ███ ▄████████ ▄█ ▀████ ▐████▀ ▄██ ▄
|
|
|
|
" ▀█████████▄ ███ ███ ███ ███▌ ████▀ ███ ██▄
|
|
|
|
" ▀███▀▀██ ███ ███ ███▌ ███ ▐███ ███▄▄▄███
|
|
|
|
" ███ ▀ ▄███▄▄▄▄██▀ ███▌ ▀███▄███▀ ▀▀▀▀▀▀███
|
|
|
|
" ███ ▀▀███▀▀▀▀▀ ███▌ ████▀██▄ ▄██ ███
|
|
|
|
" ███ ▀███████████ ███ ▐███ ▀███ ███ ███
|
|
|
|
" ███ ███ ███ ███ ▄███ ███▄ ███ ███
|
|
|
|
" ▄████▀ ███ ███ █▀ ████ ███▄ ▀█████▀
|
|
|
|
" ███ ███
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" __ ___ ___ __
|
|
|
|
" / _` |__ |\ | |__ |__) /\ |
|
|
|
|
" \__> |___ | \| |___ | \ /~~\ |___
|
|
|
|
|
|
|
|
|
|
|
|
set nocompatible
|
|
|
|
|
|
|
|
set showmatch
|
|
|
|
set hlsearch
|
|
|
|
set incsearch
|
|
|
|
set tabstop=16
|
|
|
|
set softtabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set autoindent
|
|
|
|
set number relativenumber
|
|
|
|
set wildmode=longest,list
|
|
|
|
set cc=80
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
filetype off
|
|
|
|
let &runtimepath.=',~/.vim/bundle/neoterm'
|
|
|
|
filetype plugin on
|
2023-07-24 22:59:36 +02:00
|
|
|
filetype plugin indent on
|
|
|
|
syntax on
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
2023-07-24 22:59:36 +02:00
|
|
|
set mouse=v
|
|
|
|
set mouse=a
|
|
|
|
set clipboard=unnamedplus
|
|
|
|
set ttyfast
|
|
|
|
set cursorline
|
2023-07-22 16:20:18 +02:00
|
|
|
set splitbelow
|
|
|
|
|
|
|
|
set undofile
|
|
|
|
set autochdir
|
|
|
|
|
|
|
|
set signcolumn=yes:1
|
|
|
|
|
|
|
|
|
2023-07-24 22:59:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" __ __ __
|
|
|
|
" |__) | | | / _` | |\ | /__`
|
|
|
|
" | |___ \__/ \__> | | \| .__/
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
call plug#begin()
|
|
|
|
|
|
|
|
Plug 'navarasu/onedark.nvim'
|
|
|
|
Plug 'echasnovski/mini.nvim'
|
|
|
|
Plug 'nvim-tree/nvim-web-devicons'
|
|
|
|
Plug 'NvChad/nvim-colorizer.lua'
|
|
|
|
Plug 'kassio/neoterm'
|
|
|
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
|
|
|
Plug 'folke/noice.nvim'
|
|
|
|
Plug 'MunifTanjim/nui.nvim'
|
|
|
|
Plug 'SirVer/ultisnips'
|
|
|
|
Plug 'lervag/vimtex'
|
2023-07-25 16:04:24 +02:00
|
|
|
" Plug 'williamboman/mason.nvim', { 'do': ':MasonUpdate' }
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
2023-07-25 16:04:24 +02:00
|
|
|
" Plug 'neovim/nvim-lspconfig'
|
|
|
|
" Plug 'hrsh7th/cmp-nvim-lsp'
|
|
|
|
" Plug 'hrsh7th/cmp-buffer'
|
|
|
|
" Plug 'hrsh7th/cmp-path'
|
|
|
|
" Plug 'hrsh7th/cmp-cmdline'
|
|
|
|
" Plug 'hrsh7th/nvim-cmp'
|
2023-07-22 16:20:18 +02:00
|
|
|
|
2023-07-25 16:04:24 +02:00
|
|
|
" Plug 'SirVer/ultisnips'
|
|
|
|
" Plug 'quangnguyen30192/cmp-nvim-ultisnips'
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
Plug 'bkad/camelcasemotion'
|
2023-07-25 16:04:24 +02:00
|
|
|
Plug 'nvim-treesitter.configs'
|
|
|
|
Plug 'HiPhish/nvim-ts-rainbow2'
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
Plug 'nvim-neorg/neorg'
|
|
|
|
Plug 'nvim-lua/plenary.nvim'
|
|
|
|
Plug 'tpope/vim-commentary'
|
|
|
|
|
|
|
|
|
|
|
|
Plug 'ggandor/lightspeed.nvim'
|
2023-07-22 16:42:32 +02:00
|
|
|
Plug 'gen740/SmoothCursor.nvim'
|
2023-07-22 16:20:18 +02:00
|
|
|
|
2023-07-22 17:15:37 +02:00
|
|
|
|
|
|
|
Plug 'folke/twilight.nvim'
|
|
|
|
Plug 'folke/zen-mode.nvim'
|
|
|
|
|
2023-07-22 16:20:18 +02:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-24 22:59:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
" __ __ __ ___ ___ __
|
|
|
|
" /__` |\ | | |__) |__) |__ | /__`
|
|
|
|
" .__/ | \| | | | |___ | .__/
|
|
|
|
|
2023-07-22 16:20:18 +02:00
|
|
|
|
2023-07-25 16:04:24 +02:00
|
|
|
" let g:UltiSnipsExpandTrigger="<tab>"
|
|
|
|
" let g:UltiSnipsJumpForwardTrigger="jk"
|
|
|
|
" let g:UltiSnipsJumpBackwardTrigger="kj"
|
2023-07-22 16:20:18 +02:00
|
|
|
|
2023-07-25 16:04:24 +02:00
|
|
|
" let g:UltiSnipsSnippetDirectories = [$HOME.'/.config/nvim/UltiSnips']
|
|
|
|
" let g:UltiSnipsEditSplit = 'context'
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-24 22:59:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
" __ __ __ __ __ __ ___ ___
|
|
|
|
" / ` / \ | / \ |__) /__` / ` |__| |__ |\/| |__
|
|
|
|
" \__, \__/ |___ \__/ | \ .__/ \__, | | |___ | | |___
|
|
|
|
|
|
|
|
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
set termguicolors
|
|
|
|
set background=dark
|
|
|
|
|
|
|
|
let g:onedark_config = {
|
|
|
|
\ 'style': 'darker',
|
|
|
|
\}
|
|
|
|
colorscheme onedark
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-24 22:59:36 +02:00
|
|
|
|
|
|
|
" ___ __ __ __
|
|
|
|
" |__/ |__ \ / |__) | |\ | | \ /__`
|
|
|
|
" | \ |___ | |__) | | \| |__/ .__/
|
|
|
|
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
let mapleader=" "
|
|
|
|
|
|
|
|
nnoremap <leader>tw <cmd>lua MiniTrailspace.trim()<CR>
|
|
|
|
nnoremap <leader>ff <cmd>lua MiniFiles.open()<CR>
|
|
|
|
nnoremap <leader>fc <cmd>lua MiniFiles.close()<CR>
|
|
|
|
nnoremap <leader>tt <cmd>12 split <CR><cmd>Tnew<CR>
|
2023-07-25 16:04:24 +02:00
|
|
|
" nnoremap <leader>sc <cmd>TSEnable highlight<CR>
|
2023-07-22 16:20:18 +02:00
|
|
|
|
2023-07-22 17:15:37 +02:00
|
|
|
nnoremap <leader>zt <cmd>Twilight<CR>
|
|
|
|
nnoremap <leader>zz <cmd>ZenMode<CR>
|
|
|
|
|
|
|
|
|
2023-07-22 16:20:18 +02:00
|
|
|
nnoremap <leader>v :vsplit ~/.config/nvim/init.vim<CR>
|
|
|
|
nnoremap <leader>V :source ~/.config/nvim/init.vim<CR>
|
|
|
|
|
2023-07-25 16:04:24 +02:00
|
|
|
" nnoremap <leader>s :UltiSnipsEdit<CR>
|
|
|
|
" nnoremap <leader>S :call UltiSnips#RefreshSnippets() <CR>
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
map <silent> w <Plug>CamelCaseMotion_w
|
|
|
|
map <silent> b <Plug>CamelCaseMotion_b
|
|
|
|
map <silent> e <Plug>CamelCaseMotion_e
|
|
|
|
map <silent> ge <Plug>CamelCaseMotion_ge
|
|
|
|
sunmap w
|
|
|
|
sunmap b
|
|
|
|
sunmap e
|
|
|
|
sunmap ge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-24 22:59:36 +02:00
|
|
|
" inevitable.....
|
|
|
|
|
|
|
|
" | | | /\
|
|
|
|
" |___ \__/ /~~\
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
lua << EOF
|
|
|
|
|
2023-07-22 16:42:32 +02:00
|
|
|
require('colorizer').setup()
|
|
|
|
require('mini.completion').setup()
|
|
|
|
require('mini.cursorword').setup()
|
|
|
|
require('mini.files').setup()
|
|
|
|
require('mini.pairs').setup()
|
|
|
|
require('mini.starter').setup()
|
|
|
|
require('mini.trailspace').setup()
|
|
|
|
require('mini.statusline').setup()
|
|
|
|
require('mini.hipatterns').setup()
|
|
|
|
require('mini.indentscope').setup()
|
|
|
|
require('noice').setup()
|
2023-07-25 16:04:24 +02:00
|
|
|
-- require('mason').setup()
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-25 16:04:24 +02:00
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
rainbow = {
|
|
|
|
enable = true,
|
|
|
|
-- list of languages you want to disable the plugin for
|
|
|
|
disable = { 'jsx' },
|
|
|
|
-- Which query to use for finding delimiters
|
|
|
|
query = 'rainbow-parens',
|
|
|
|
-- Highlight the entire buffer all at once
|
|
|
|
strategy = require('ts-rainbow').strategy.global,
|
|
|
|
}
|
|
|
|
}
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
2023-07-22 16:42:32 +02:00
|
|
|
require('neorg').setup {
|
|
|
|
load = {
|
|
|
|
["core.defaults"] = {}, -- Loads default behaviour
|
|
|
|
["core.concealer"] = {}, -- Adds pretty icons to your documents
|
|
|
|
["core.dirman"] = { -- Manages Neorg workspaces
|
|
|
|
config = {
|
|
|
|
workspaces = {
|
|
|
|
notes = "~/notes",
|
|
|
|
},
|
|
|
|
},
|
2023-07-22 16:20:18 +02:00
|
|
|
},
|
|
|
|
},
|
2023-07-22 16:42:32 +02:00
|
|
|
}
|
2023-07-22 16:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-22 16:42:32 +02:00
|
|
|
require('smoothcursor').setup({
|
|
|
|
autostart = true,
|
|
|
|
cursor = "", -- cursor shape (need nerd font)
|
|
|
|
texthl = "SmoothCursor", -- highlight group, default is { bg = nil, fg = "#FFD400" }
|
|
|
|
linehl = nil, -- highlight sub-cursor line like 'cursorline', "CursorLine" recommended
|
|
|
|
type = "default", -- define cursor movement calculate function, "default" or "exp" (exponential).
|
|
|
|
fancy = {
|
|
|
|
enable = true, -- enable fancy mode
|
2023-07-23 16:41:30 +02:00
|
|
|
head = { cursor = "", texthl = "SmoothCursor", linehl = nil },
|
2023-07-22 16:42:32 +02:00
|
|
|
body = {
|
|
|
|
{ cursor = "", texthl = "SmoothCursorYellow" },
|
|
|
|
{ cursor = "", texthl = "SmoothCursorYellow" },
|
|
|
|
{ cursor = "●", texthl = "SmoothCursorYellow" },
|
|
|
|
{ cursor = "●", texthl = "SmoothCursorYellow" },
|
|
|
|
{ cursor = "•", texthl = "SmoothCursorYellow" },
|
|
|
|
{ cursor = ".", texthl = "SmoothCursorYellow" },
|
|
|
|
{ cursor = ".", texthl = "SmoothCursorYellow" },
|
|
|
|
},
|
|
|
|
tail = { cursor = nil, texthl = "SmoothCursor" }
|
|
|
|
},
|
|
|
|
flyin_effect = nil, -- "bottom" or "top"
|
2023-07-23 16:41:30 +02:00
|
|
|
speed = 50, -- max is 100 to stick to your current position
|
2023-07-22 16:42:32 +02:00
|
|
|
intervals = 25, -- tick interval
|
|
|
|
priority = 10, -- set marker priority
|
|
|
|
timeout = 1500, -- timout for animation
|
|
|
|
threshold = 3, -- animate if threshold lines jump
|
|
|
|
disable_float_win = false, -- disable on float window
|
|
|
|
enabled_filetypes = nil, -- example: { "lua", "vim" }
|
|
|
|
disabled_filetypes = nil, -- this option will be skipped if enabled_filetypes is set. example: { "TelescopePrompt", "NvimTree" }
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-07-22 16:20:18 +02:00
|
|
|
EOF
|