new plugins
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
-----------------------------------------------------------
|
||||
-- Keymaps of Neovim and installed plugins.
|
||||
-----------------------------------------------------------
|
||||
|
||||
local map = vim.api.nvim_set_keymap
|
||||
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>w', ':-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
|
||||
@ -30,17 +29,22 @@ map('n', '<leader>q', ':tabclose<CR>', default_opts)
|
||||
|
||||
-- Open terminal
|
||||
-- map('n', '<C-t>', ':Term<CR>', { noremap = true })
|
||||
-- Vista Shortcuts
|
||||
map('n', '<leader>v', ':Vista!!<CR>', default_opts) -- show Vista panel
|
||||
|
||||
-- nvim-tree
|
||||
map('n', '<C-n>', ':NvimTreeToggle<CR>', default_opts) -- open/close
|
||||
map('n', '<leader>r', ':NvimTreeRefresh<CR>', default_opts) -- refresh
|
||||
map('n', '<leader>n', ':NvimTreeFindFile<CR>', default_opts) -- search file
|
||||
map('n', '<leader>q', ':NvimTreeRefresh<CR>', default_opts) -- refresh
|
||||
|
||||
-- Vista tag-viewer
|
||||
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
|
||||
map ('n', '<leader>=', ':TmuxNavigateUp', default_opts)
|
||||
map ('n', '<leader>-', ':TmuxNavigateDown', default_opts)
|
||||
map ('n', '<leader>[', ':TmuxNavigateLeft', default_opts)
|
||||
map ('n', '<leader>]', ':TmuxNavigateRight', default_opts)
|
||||
|
||||
31
lua/plugins/marks.lua
Normal file
31
lua/plugins/marks.lua
Normal 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 = {}
|
||||
}
|
||||
@ -13,23 +13,6 @@
|
||||
--- See: `help NvimTree`
|
||||
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 {
|
||||
open_on_setup = true,
|
||||
update_cwd = true,
|
||||
|
||||
@ -64,7 +64,7 @@ return require'packer'.startup(function()
|
||||
}
|
||||
|
||||
use {
|
||||
'famiu/feline.nvim',
|
||||
'feline-nvim/feline.nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons' },
|
||||
}
|
||||
|
||||
@ -100,9 +100,21 @@ return require'packer'.startup(function()
|
||||
requires = {
|
||||
'L3MON4D3/LuaSnip',
|
||||
'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-buffer',
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
},
|
||||
}
|
||||
}
|
||||
use {
|
||||
'tzachar/cmp-tabnine',
|
||||
run = './install.sh',
|
||||
requires = 'hrsh7th/nvim-cmp'
|
||||
}
|
||||
use 'chentoast/marks.nvim'
|
||||
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user