new plugins

This commit is contained in:
Norm Rasmussen
2022-06-29 17:16:38 -04:00
parent b6475ed7f0
commit 75ffdb60ea
6 changed files with 92 additions and 25 deletions

View File

@ -13,3 +13,5 @@ require('plugins/telescope')
require('plugins/alpha-nvim') require('plugins/alpha-nvim')
require('plugins/symbols-outline') require('plugins/symbols-outline')
require('plugins/nvim-lsp-installer') require('plugins/nvim-lsp-installer')
require('plugins/neoscroll')
require('plugins/marks')

View File

@ -1,7 +1,6 @@
----------------------------------------------------------- -----------------------------------------------------------
-- Keymaps of Neovim and installed plugins. -- Keymaps of Neovim and installed plugins.
----------------------------------------------------------- -----------------------------------------------------------
local map = vim.api.nvim_set_keymap local map = vim.api.nvim_set_keymap
local default_opts = { noremap = true, silent = true } local default_opts = { noremap = true, silent = true }
@ -22,7 +21,7 @@ map('n', '<C-l>', '<C-w>l', default_opts)
map('n', '<leader>t', ':tabnew<CR>', default_opts) map('n', '<leader>t', ':tabnew<CR>', default_opts)
map('n', '<leader>w', ':-tabnext<CR>', default_opts) map('n', '<leader>w', ':-tabnext<CR>', default_opts)
map('n', '<leader>e', ':+tabnext<CR>', default_opts) map('n', '<leader>e', ':+tabnext<CR>', default_opts)
map('n', '<leader>q', ':tabclose<CR>', default_opts) map('n', '<leader>r', ':tabclose<CR>', default_opts)
----------------------------------------------------------- -----------------------------------------------------------
-- Applications and Plugins shortcuts -- Applications and Plugins shortcuts
@ -30,17 +29,22 @@ map('n', '<leader>q', ':tabclose<CR>', default_opts)
-- Open terminal -- Open terminal
-- map('n', '<C-t>', ':Term<CR>', { noremap = true }) -- map('n', '<C-t>', ':Term<CR>', { noremap = true })
-- Vista Shortcuts
map('n', '<leader>v', ':Vista!!<CR>', default_opts) -- show Vista panel
-- nvim-tree -- nvim-tree
map('n', '<C-n>', ':NvimTreeToggle<CR>', default_opts) -- open/close map('n', '<C-n>', ':NvimTreeToggle<CR>', default_opts) -- open/close
map('n', '<leader>r', ':NvimTreeRefresh<CR>', default_opts) -- refresh map('n', '<leader>q', ':NvimTreeRefresh<CR>', default_opts) -- refresh
map('n', '<leader>n', ':NvimTreeFindFile<CR>', default_opts) -- search file
-- Vista tag-viewer -- Vista tag-viewer
map('n', '<C-m>', ':Vista!!<CR>', default_opts) -- open/close map('n', '<C-m>', ':Vista!!<CR>', default_opts) -- open/close
-- Place Check box for To-Do style Lists
map('i','<C-z>', '[ ] - ', default_opts)
map('n','<C-x>', '<Esc>rX<Esc>i', default_opts)
map('n','<leader>x', '~~~', default_opts)
-- Vim Tmux Navigator -- Vim Tmux Navigator
map ('n', '<leader>=', ':TmuxNavigateUp', default_opts)
map ('n', '<leader>-', ':TmuxNavigateDown', default_opts) map ('n', '<leader>-', ':TmuxNavigateDown', default_opts)
map ('n', '<leader>[', ':TmuxNavigateLeft', default_opts) map ('n', '<leader>[', ':TmuxNavigateLeft', default_opts)
map ('n', '<leader>]', ':TmuxNavigateRight', default_opts) map ('n', '<leader>]', ':TmuxNavigateRight', default_opts)

31
lua/plugins/marks.lua Normal file
View File

@ -0,0 +1,31 @@
require'marks'.setup {
-- whether to map keybinds or not. default true
default_mappings = true,
-- which builtin marks to show. default {}
builtin_marks = { ".", "<", ">", "^" },
-- whether movements cycle back to the beginning/end of buffer. default true
cyclic = true,
-- whether the shada file is updated after modifying uppercase marks. default false
force_write_shada = false,
-- how often (in ms) to redraw signs/recompute mark positions.
-- higher values will have better performance but may cause visual lag,
-- while lower values may cause performance penalties. default 150.
refresh_interval = 250,
-- sign priorities for each type of mark - builtin marks, uppercase marks, lowercase
-- marks, and bookmarks.
-- can be either a table with all/none of the keys, or a single number, in which case
-- the priority applies to all marks.
-- default 10.
sign_priority = { lower=10, upper=15, builtin=8, bookmark=20 },
-- disables mark tracking for specific filetypes. default {}
excluded_filetypes = {},
-- marks.nvim allows you to configure up to 10 bookmark groups, each with its own
-- sign/virttext. Bookmarks can be used to group together positions and quickly move
-- across multiple buffers. default sign is '!@#$%^&*()' (from 0 to 9), and
-- default virt_text is "".
bookmark_0 = {
sign = "",
virt_text = "hello world"
},
mappings = {}
}

View File

@ -13,23 +13,6 @@
--- See: `help NvimTree` --- See: `help NvimTree`
local g = vim.g local g = vim.g
g.nvim_tree_quit_on_open = 0
g.nvim_tree_indent_markers = 1
g.nvim_tree_git_hl = 1
g.nvim_tree_highlight_opened_files = 1
g.nvim_tree_disable_window_picker = 1
g.nvim_tree_respect_buf_cwd = 1
g.nvim_tree_width_allow_resize = 1
g.nvim_tree_show_icons = {
git = 1,
folders = 1,
files = 1
}
g.nvim_tree_icons = {
default = ""
}
require('nvim-tree').setup { require('nvim-tree').setup {
open_on_setup = true, open_on_setup = true,
update_cwd = true, update_cwd = true,

View File

@ -64,7 +64,7 @@ return require'packer'.startup(function()
} }
use { use {
'famiu/feline.nvim', 'feline-nvim/feline.nvim',
requires = { 'kyazdani42/nvim-web-devicons' }, requires = { 'kyazdani42/nvim-web-devicons' },
} }
@ -100,9 +100,21 @@ return require'packer'.startup(function()
requires = { requires = {
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lsp',
'quangnguyen30192/cmp-nvim-ultisnips',
'hrsh7th/cmp-calc',
'f3fora/cmp-spell',
'hrsh7th/cmp-emoji',
'hrsh7th/cmp-look',
'hrsh7th/cmp-path', 'hrsh7th/cmp-path',
'hrsh7th/cmp-buffer', 'hrsh7th/cmp-buffer',
'saadparwaiz1/cmp_luasnip', 'saadparwaiz1/cmp_luasnip',
}, }
} }
use {
'tzachar/cmp-tabnine',
run = './install.sh',
requires = 'hrsh7th/nvim-cmp'
}
use 'chentoast/marks.nvim'
end) end)

View File

@ -89,16 +89,46 @@ _G.packer_plugins = {
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-buffer", path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-buffer",
url = "https://github.com/hrsh7th/cmp-buffer" url = "https://github.com/hrsh7th/cmp-buffer"
}, },
["cmp-calc"] = {
loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-calc",
url = "https://github.com/hrsh7th/cmp-calc"
},
["cmp-emoji"] = {
loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-emoji",
url = "https://github.com/hrsh7th/cmp-emoji"
},
["cmp-look"] = {
loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-look",
url = "https://github.com/hrsh7th/cmp-look"
},
["cmp-nvim-lsp"] = { ["cmp-nvim-lsp"] = {
loaded = true, loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp" url = "https://github.com/hrsh7th/cmp-nvim-lsp"
}, },
["cmp-nvim-ultisnips"] = {
loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-nvim-ultisnips",
url = "https://github.com/quangnguyen30192/cmp-nvim-ultisnips"
},
["cmp-path"] = { ["cmp-path"] = {
loaded = true, loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-path", path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-path",
url = "https://github.com/hrsh7th/cmp-path" url = "https://github.com/hrsh7th/cmp-path"
}, },
["cmp-spell"] = {
loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-spell",
url = "https://github.com/f3fora/cmp-spell"
},
["cmp-tabnine"] = {
loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp-tabnine",
url = "https://github.com/tzachar/cmp-tabnine"
},
cmp_luasnip = { cmp_luasnip = {
loaded = true, loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp_luasnip", path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
@ -122,7 +152,7 @@ _G.packer_plugins = {
["feline.nvim"] = { ["feline.nvim"] = {
loaded = true, loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/feline.nvim", path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/feline.nvim",
url = "https://github.com/famiu/feline.nvim" url = "https://github.com/feline-nvim/feline.nvim"
}, },
["gitsigns.nvim"] = { ["gitsigns.nvim"] = {
loaded = true, loaded = true,
@ -139,6 +169,11 @@ _G.packer_plugins = {
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim",
url = "https://github.com/lukas-reineke/indent-blankline.nvim" url = "https://github.com/lukas-reineke/indent-blankline.nvim"
}, },
["marks.nvim"] = {
loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/marks.nvim",
url = "https://github.com/chentoast/marks.nvim"
},
["monokai.nvim"] = { ["monokai.nvim"] = {
loaded = true, loaded = true,
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/monokai.nvim", path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/monokai.nvim",