Add marks.nvim

This commit is contained in:
Daniel Lundin 2022-02-15 23:37:36 +01:00
parent 270526432b
commit abc7b85d49
2 changed files with 37 additions and 1 deletions

View file

@ -9,7 +9,7 @@ return require('packer').startup(function()
use 'mfussenegger/nvim-dap'
use {'ray-x/guihua.lua', run = 'cd lua/fzy && make'}
-- use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} }
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} }
use {
'theHamsta/nvim-dap-virtual-text',
@ -222,6 +222,7 @@ return require('packer').startup(function()
map('n', '<leader>e', '<cmd>lua require("telescope.builtin").git_files()<CR>')
map('n', '<leader>g', '<cmd>lua require("telescope.builtin").git_status()<CR>')
map('n', '<leader>a', '<cmd>lua require("telescope.builtin").lsp_code_actions()<CR>')
map('n', '<leader>m', '<cmd>lua require("telescope.builtin").marks()<CR>')
map('n', '<leader>s', '<cmd>lua require("telescope.builtin").lsp_document_symbols()<CR>')
map('n', '<leader>t', '<cmd>lua require("telescope.builtin").treesitter()<CR>')
map('n', '<leader>/', '<cmd>lua require("telescope.builtin").live_grep()<CR>')
@ -308,4 +309,11 @@ return require('packer').startup(function()
-- require("yaml_nvim").init()
-- end
-- }
-- marks
use {
"chentau/marks.nvim",
config = function() require("plugins/marks") end,
}
end)

View file

@ -0,0 +1,28 @@
local marks = require("marks")
marks.setup{
default_mappings = true,
-- which builtin marks to show. default {}
-- builtin_marks = { ".", "<", ">", "^" },
cyclic = true,
force_write_shada = false,
-- 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_1 = {
sign = "",
virt_text = ""
},
}