Plugin Changes
This commit is contained in:
@ -16,14 +16,20 @@ map('n', '<C-k>', '<C-w>k', default_opts)
|
|||||||
map('n', '<C-l>', '<C-w>l', default_opts)
|
map('n', '<C-l>', '<C-w>l', default_opts)
|
||||||
|
|
||||||
-- Close all windows and exit from Neovim with <leader> and q
|
-- Close all windows and exit from Neovim with <leader> and q
|
||||||
map('n', '<leader>q', ':qa!<CR>', default_opts)
|
-- map('n', '<leader>q', ':qa!<CR>', default_opts)
|
||||||
|
|
||||||
|
-- Neovim Tab Navigation
|
||||||
|
map('n', '<leader>t', ':tabnew<CR>', default_opts)
|
||||||
|
map('n', '<leader>w', ':-tabnext<CR>', default_opts)
|
||||||
|
map('n', '<leader>e', ':+tabnext<CR>', default_opts)
|
||||||
|
map('n', '<leader>q', ':tabclose<CR>', default_opts)
|
||||||
|
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
-- Applications and Plugins shortcuts
|
-- Applications and Plugins shortcuts
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
|
|
||||||
-- Open terminal
|
-- Open terminal
|
||||||
map('n', '<C-t>', ':Term<CR>', { noremap = true })
|
-- map('n', '<C-t>', ':Term<CR>', { noremap = true })
|
||||||
|
|
||||||
-- nvim-tree
|
-- nvim-tree
|
||||||
map('n', '<C-n>', ':NvimTreeToggle<CR>', default_opts) -- open/close
|
map('n', '<C-n>', ':NvimTreeToggle<CR>', default_opts) -- open/close
|
||||||
|
|||||||
@ -22,16 +22,21 @@ end
|
|||||||
|
|
||||||
-- Banner
|
-- Banner
|
||||||
local banner = {
|
local banner = {
|
||||||
" ",
|
" ",
|
||||||
" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ",
|
" █████ █████ ██████ █████ ███ ",
|
||||||
" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ",
|
"░░███ ░░███ ░░██████ ░░███ ░███ ",
|
||||||
" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ",
|
" ░███ ░███ ██████ █████ ████ ░███░███ ░███ ██████ ████████ █████████████ ░███ ",
|
||||||
" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
|
" ░███████████ ███░░███░░███ ░███ ░███░░███░███ ███░░███░░███░░███░░███░░███░░███░███ ",
|
||||||
" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
|
" ░███░░░░░███ ░███████ ░███ ░███ ░███ ░░██████ ░███ ░███ ░███ ░░░ ░███ ░███ ░███░███ ",
|
||||||
" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ",
|
" ░███ ░███ ░███░░░ ░███ ░███ ░███ ░░█████ ░███ ░███ ░███ ░███ ░███ ░███░░░ ",
|
||||||
" ",
|
" █████ █████░░██████ ░░███████ █████ ░░█████░░██████ █████ █████░███ ████████ ",
|
||||||
|
"░░░░░ ░░░░░ ░░░░░░ ░░░░░███ ░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░ ░░░ ░░░░░░░░ ",
|
||||||
|
" ███ ░███ ",
|
||||||
|
" ░░██████ ",
|
||||||
|
" ░░░░░░ ",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dashboard.section.header.val = banner
|
dashboard.section.header.val = banner
|
||||||
|
|
||||||
-- Menu
|
-- Menu
|
||||||
|
|||||||
30
lua/plugins/cheatsheet.lua
Normal file
30
lua/plugins/cheatsheet.lua
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
require("cheatsheet").setup({
|
||||||
|
-- Whether to show bundled cheatsheets
|
||||||
|
|
||||||
|
-- For generic cheatsheets like default, unicode, nerd-fonts, etc
|
||||||
|
-- bundled_cheatsheets = {
|
||||||
|
-- enabled = {},
|
||||||
|
-- disabled = {},
|
||||||
|
-- },
|
||||||
|
bundled_cheatsheets = true,
|
||||||
|
|
||||||
|
-- For plugin specific cheatsheets
|
||||||
|
-- bundled_plugin_cheatsheets = {
|
||||||
|
-- enabled = {},
|
||||||
|
-- disabled = {},
|
||||||
|
-- }
|
||||||
|
bundled_plugin_cheatsheets = true,
|
||||||
|
|
||||||
|
-- For bundled plugin cheatsheets, do not show a sheet if you
|
||||||
|
-- don't have the plugin installed (searches runtimepath for
|
||||||
|
-- same directory name)
|
||||||
|
include_only_installed_plugins = true,
|
||||||
|
|
||||||
|
-- Key mappings bound inside the telescope window
|
||||||
|
telescope_mappings = {
|
||||||
|
['<CR>'] = require('cheatsheet.telescope.actions').select_or_fill_commandline,
|
||||||
|
['<A-CR>'] = require('cheatsheet.telescope.actions').select_or_execute,
|
||||||
|
['<C-Y>'] = require('cheatsheet.telescope.actions').copy_cheat_value,
|
||||||
|
['<C-E>'] = require('cheatsheet.telescope.actions').edit_user_cheatsheet,
|
||||||
|
}
|
||||||
|
})
|
||||||
@ -1,83 +1,42 @@
|
|||||||
local M = {}
|
require('gitsigns').setup {
|
||||||
|
signs = {
|
||||||
|
add = {hl = 'GitSignsAdd' , text = '│', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
|
||||||
|
change = {hl = 'GitSignsChange', text = '│', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||||
|
delete = {hl = 'GitSignsDelete', text = '_', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||||
|
topdelete = {hl = 'GitSignsDelete', text = '‾', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||||
|
changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||||
|
},
|
||||||
|
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
||||||
|
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
|
||||||
|
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
|
||||||
|
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
|
||||||
|
watch_gitdir = {
|
||||||
|
interval = 1000,
|
||||||
|
follow_files = true
|
||||||
|
},
|
||||||
|
attach_to_untracked = true,
|
||||||
|
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
||||||
|
current_line_blame_opts = {
|
||||||
|
virt_text = true,
|
||||||
|
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
|
||||||
|
delay = 1000,
|
||||||
|
ignore_whitespace = false,
|
||||||
|
},
|
||||||
|
current_line_blame_formatter = '<author>, <author_time:%Y-%m-%d> - <summary>',
|
||||||
|
sign_priority = 6,
|
||||||
|
update_debounce = 100,
|
||||||
|
status_formatter = nil, -- Use default
|
||||||
|
max_file_length = 40000,
|
||||||
|
preview_config = {
|
||||||
|
-- Options passed to nvim_open_win
|
||||||
|
border = 'single',
|
||||||
|
style = 'minimal',
|
||||||
|
relative = 'cursor',
|
||||||
|
row = 0,
|
||||||
|
col = 1
|
||||||
|
},
|
||||||
|
yadm = {
|
||||||
|
enable = false
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
local opts = {
|
|
||||||
set = {
|
|
||||||
signs = {
|
|
||||||
add = {
|
|
||||||
hl = "GitSignsAdd",
|
|
||||||
text = "▎",
|
|
||||||
numhl = "GitSignsAddNr",
|
|
||||||
linehl = "GitSignsAddLn",
|
|
||||||
},
|
|
||||||
change = {
|
|
||||||
hl = "GitSignsChange",
|
|
||||||
text = "▎",
|
|
||||||
numhl = "GitSignsChangeNr",
|
|
||||||
linehl = "GitSignsChangeLn",
|
|
||||||
},
|
|
||||||
delete = {
|
|
||||||
hl = "GitSignsDelete",
|
|
||||||
text = "契",
|
|
||||||
numhl = "GitSignsDeleteNr",
|
|
||||||
linehl = "GitSignsDeleteLn",
|
|
||||||
},
|
|
||||||
topdelete = {
|
|
||||||
hl = "GitSignsDelete",
|
|
||||||
text = "契",
|
|
||||||
numhl = "GitSignsDeleteNr",
|
|
||||||
linehl = "GitSignsDeleteLn",
|
|
||||||
},
|
|
||||||
changedelete = {
|
|
||||||
hl = "GitSignsChange",
|
|
||||||
text = "▎",
|
|
||||||
numhl = "GitSignsChangeNr",
|
|
||||||
linehl = "GitSignsChangeLn",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
numhl = false,
|
|
||||||
linehl = false,
|
|
||||||
keymaps = {
|
|
||||||
-- Default keymap options
|
|
||||||
noremap = true,
|
|
||||||
buffer = true,
|
|
||||||
},
|
|
||||||
signcolumn = true,
|
|
||||||
word_diff = false,
|
|
||||||
attach_to_untracked = true,
|
|
||||||
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
|
||||||
current_line_blame_opts = {
|
|
||||||
virt_text = true,
|
|
||||||
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
|
|
||||||
delay = 1000,
|
|
||||||
ignore_whitespace = false,
|
|
||||||
},
|
|
||||||
current_line_blame_formatter_opts = {
|
|
||||||
relative_time = false,
|
|
||||||
},
|
|
||||||
max_file_length = 40000,
|
|
||||||
preview_config = {
|
|
||||||
-- Options passed to nvim_open_win
|
|
||||||
border = "rounded",
|
|
||||||
style = "minimal",
|
|
||||||
relative = "cursor",
|
|
||||||
row = 0,
|
|
||||||
col = 1,
|
|
||||||
},
|
|
||||||
watch_gitdir = {
|
|
||||||
interval = 1000,
|
|
||||||
follow_files = true,
|
|
||||||
},
|
|
||||||
sign_priority = 6,
|
|
||||||
update_debounce = 200,
|
|
||||||
status_formatter = nil, -- Use default
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
M.setup = function()
|
|
||||||
local gitsigns = require "gitsigns"
|
|
||||||
|
|
||||||
gitsigns.setup(opts.set)
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
||||||
|
|||||||
14
lua/plugins/neoscroll.lua
Normal file
14
lua/plugins/neoscroll.lua
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
require('neoscroll').setup({
|
||||||
|
-- All these keys will be mapped to their corresponding default scrolling animation
|
||||||
|
mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>',
|
||||||
|
'<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
|
||||||
|
hide_cursor = true, -- Hide cursor while scrolling
|
||||||
|
stop_eof = true, -- Stop at <EOF> when scrolling downwards
|
||||||
|
use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
|
||||||
|
respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
|
||||||
|
cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
|
||||||
|
easing_function = nil, -- Default easing function
|
||||||
|
pre_hook = nil, -- Function to run before the scrolling animation starts
|
||||||
|
post_hook = nil, -- Function to run after the scrolling animation ends
|
||||||
|
performance_mode = false, -- Disable "Performance Mode" on all buffers.
|
||||||
|
})
|
||||||
@ -14,6 +14,7 @@ return require'packer'.startup(function()
|
|||||||
use 'simrat39/symbols-outline.nvim'
|
use 'simrat39/symbols-outline.nvim'
|
||||||
use 'kyazdani42/nvim-web-devicons'
|
use 'kyazdani42/nvim-web-devicons'
|
||||||
use 'liuchengxu/vista.vim'
|
use 'liuchengxu/vista.vim'
|
||||||
|
use 'karb94/neoscroll.nvim'
|
||||||
use 'nvim-lua/plenary.nvim'
|
use 'nvim-lua/plenary.nvim'
|
||||||
use 'nvim-lua/popup.nvim'
|
use 'nvim-lua/popup.nvim'
|
||||||
use 'tanvirtin/monokai.nvim'
|
use 'tanvirtin/monokai.nvim'
|
||||||
@ -23,6 +24,14 @@ return require'packer'.startup(function()
|
|||||||
use 'folke/tokyonight.nvim'
|
use 'folke/tokyonight.nvim'
|
||||||
use 'williamboman/nvim-lsp-installer'
|
use 'williamboman/nvim-lsp-installer'
|
||||||
use 'neovim/nvim-lspconfig'
|
use 'neovim/nvim-lspconfig'
|
||||||
|
use {
|
||||||
|
'sudormrfbin/cheatsheet.nvim',
|
||||||
|
requires = {
|
||||||
|
{'nvim-telescope/telescope.nvim'},
|
||||||
|
{'nvim-lua/popup.nvim'},
|
||||||
|
{'nvim-lua/plenary.nvim'},
|
||||||
|
}
|
||||||
|
}
|
||||||
use {
|
use {
|
||||||
'famiu/feline.nvim',
|
'famiu/feline.nvim',
|
||||||
requires = { 'kyazdani42/nvim-web-devicons' },
|
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||||
|
|||||||
@ -79,6 +79,11 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/alpha-nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/alpha-nvim",
|
||||||
url = "https://github.com/goolord/alpha-nvim"
|
url = "https://github.com/goolord/alpha-nvim"
|
||||||
},
|
},
|
||||||
|
["cheatsheet.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cheatsheet.nvim",
|
||||||
|
url = "https://github.com/sudormrfbin/cheatsheet.nvim"
|
||||||
|
},
|
||||||
["cmp-buffer"] = {
|
["cmp-buffer"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
||||||
@ -135,6 +140,11 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/monokai.nvim",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/monokai.nvim",
|
||||||
url = "https://github.com/tanvirtin/monokai.nvim"
|
url = "https://github.com/tanvirtin/monokai.nvim"
|
||||||
},
|
},
|
||||||
|
["neoscroll.nvim"] = {
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/neoscroll.nvim",
|
||||||
|
url = "https://github.com/karb94/neoscroll.nvim"
|
||||||
|
},
|
||||||
["nvim-autopairs"] = {
|
["nvim-autopairs"] = {
|
||||||
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\19nvim-autopairs\frequire\0" },
|
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\19nvim-autopairs\frequire\0" },
|
||||||
loaded = true,
|
loaded = true,
|
||||||
@ -235,6 +245,10 @@ _G.packer_plugins = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], false)
|
||||||
|
-- Config for: nvim-autopairs
|
||||||
|
time([[Config for nvim-autopairs]], 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\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||||
|
time([[Config for nvim-autopairs]], false)
|
||||||
-- Config for: telescope.nvim
|
-- Config for: telescope.nvim
|
||||||
time([[Config for telescope.nvim]], true)
|
time([[Config for telescope.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/telescope\frequire\0", "config", "telescope.nvim")
|
try_loadstring("\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/telescope\frequire\0", "config", "telescope.nvim")
|
||||||
@ -243,10 +257,6 @@ time([[Config for telescope.nvim]], false)
|
|||||||
time([[Config for gitsigns.nvim]], true)
|
time([[Config for gitsigns.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\n6\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\rgitsigns\frequire\0", "config", "gitsigns.nvim")
|
try_loadstring("\27LJ\2\n6\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\rgitsigns\frequire\0", "config", "gitsigns.nvim")
|
||||||
time([[Config for gitsigns.nvim]], false)
|
time([[Config for gitsigns.nvim]], false)
|
||||||
-- Config for: nvim-autopairs
|
|
||||||
time([[Config for nvim-autopairs]], 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\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
|
||||||
time([[Config for nvim-autopairs]], false)
|
|
||||||
if should_profile then save_profiles() end
|
if should_profile then save_profiles() end
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user