-- nvim-tree setup with defaults require("nvim-tree").setup() -- tree-sitter config require 'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" ensure_installed = { "c", "lua", "rust", "bash", "python", "javascript" }, -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = false, -- Automatically install missing parsers when entering buffer -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally auto_install = true, highlight = { enable = true, additional_vim_regex_highlighting = false, }, } -- luasnip config require("luasnip").config.set_config({ -- Setting LuaSnip config -- Enable autotriggered snippets enable_autosnippets = true, -- Use Tab (or some other key if you prefer) to trigger visual selection store_selection_keys = "", }) require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/LuaSnip/" }) -- Which-key config require('which-key').setup() require('which-key').register({ d = { name = "Debug", s = { name = "Step", c = { "lua require('dap').continue()", "Continue" }, v = { "lua require('dap').step_over()", "Step Over" }, i = { "lua require('dap').step_into()", "Step Into" }, o = { "lua require('dap').step_out()", "Step Out" }, }, h = { name = "Hover", h = { "lua require('dap.ui.variables').hover()", "Hover" }, v = { "lua require('dap.ui.variables').visual_hover()", "Visual Hover" }, }, u = { name = "UI", h = { "lua require('dap.ui.widgets').hover()", "Hover" }, f = { "local widgets=require('dap.ui.widgets');widgets.centered_float(widgets.scopes)", "Float" }, }, r = { name = "Repl", o = { "lua require('dap').repl.open()", "Open" }, l = { "lua require('dap').repl.run_last()", "Run Last" }, }, b = { name = "Breakpoints", c = { "lua require('dap').set_breakpoint(vim.fn.input('Breakpoint condition: '))", "Breakpoint Condition", }, m = { "lua require('dap').set_breakpoint({ nil, nil, vim.fn.input('Log point message: ') })", "Log Point Message", }, t = { "lua require('dap').toggle_breakpoint()", "Create" }, }, c = { "lua require('dap').scopes()", "Scopes" }, i = { "lua require('dap').toggle()", "Toggle" }, }, }, { prefix = "" }) -- indent-blankline setup require('ibl').setup() -- Marks setup 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 = {}, -- disables mark tracking for specific buftypes. default {} excluded_buftypes = {}, -- 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 = "bookmark_0", -- -- explicitly prompt for a virtual line annotation when setting a bookmark from this group. -- -- defaults to false. -- annotate = false, -- }, mappings = {} })