From 68690077201d9f9c884ec57b2933d65947a12930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=88=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=82=D0=BE=D0=BA=D0=B8?= =?UTF-8?q?=D1=9B-=D0=A8=D1=83=D0=BC=D0=B0=D1=80=D0=B0=D1=86?= Date: Sat, 22 Jul 2023 16:42:32 +0200 Subject: [PATCH] 2nd commit --- init.vim | 94 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 68 insertions(+), 26 deletions(-) diff --git a/init.vim b/init.vim index 9e3367b..246f317 100644 --- a/init.vim +++ b/init.vim @@ -7,7 +7,7 @@ set tabstop=16 " number of columns occupied by a tab set softtabstop=4 " see multiple spaces as tabstops so does the right thing set shiftwidth=4 " width for autoindents set autoindent " indent a new line the same amount as the line just typed -set number " add line numbers +set number relativenumber " add line numbers set wildmode=longest,list " get bash-like tab completions set cc=80 " set an 80 column border for good coding style @@ -68,6 +68,7 @@ call plug#begin() Plug 'ggandor/lightspeed.nvim' + Plug 'gen740/SmoothCursor.nvim' call plug#end() @@ -138,20 +139,20 @@ sunmap ge lua << EOF -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.trailspace').setup() -require('mini.hipatterns').setup() -require('mini.indentscope').setup() -require('noice').setup() -require("mason").setup() - + 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.trailspace').setup() + require('mini.hipatterns').setup() + require('mini.indentscope').setup() + require('noice').setup() + require("mason").setup() + require('smoothcursor').setup() @@ -159,19 +160,19 @@ require("mason").setup() -- Neorg SETUP -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", - }, + 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", + }, + }, }, }, - }, -} + } @@ -258,4 +259,45 @@ require('neorg').setup { } + + + + + + + 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 + head = { cursor = "▷", texthl = "SmoothCursor", linehl = nil }, + 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" + speed = 75, -- max is 100 to stick to your current position + 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" } + }) + + + + + EOF