diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 9986adb..1da96c3 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -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', 'e', 'lua require("telescope.builtin").git_files()') map('n', 'g', 'lua require("telescope.builtin").git_status()') map('n', 'a', 'lua require("telescope.builtin").lsp_code_actions()') + map('n', 'm', 'lua require("telescope.builtin").marks()') map('n', 's', 'lua require("telescope.builtin").lsp_document_symbols()') map('n', 't', 'lua require("telescope.builtin").treesitter()') map('n', '/', 'lua require("telescope.builtin").live_grep()') @@ -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) + diff --git a/.config/nvim/lua/plugins/marks.lua b/.config/nvim/lua/plugins/marks.lua new file mode 100644 index 0000000..4804627 --- /dev/null +++ b/.config/nvim/lua/plugins/marks.lua @@ -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 = "" + }, +}