diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 99ea5983..0a48e079 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -238,3 +238,94 @@ vim.keymap.set({ "n", "v", "o", "i" }, "", goto_parent_node, keyopts) vim.keymap.set({ "n", "v", "o", "i" }, "", goto_child_node, keyopts) vim.keymap.set({ "n", "v", "o", "i" }, "", goto_next_node, keyopts) vim.keymap.set({ "n", "v", "o", "i" }, "", goto_prev_node, keyopts) + +-- DEFAULT_KEYMAPS: + +-- Half-window movements: +vim.keymap.set({ "n", "x" }, "", "lua Scroll('', 1, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('', 1, 1)") + +-- Page movements: +vim.keymap.set({ "n", "x" }, "", "lua Scroll('', 1, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('', 1, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('', 1, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('', 1, 1)") + +-- EXTRA_KEYMAPS: + +-- Start/end of file and line number movements: +vim.keymap.set({ "n", "x" }, "gg", "lua Scroll('gg')") +vim.keymap.set({ "n", "x" }, "G", "lua Scroll('G', 0, 1)") + +-- Start/end of line: +vim.keymap.set({ "n", "x" }, "0", "lua Scroll('0')") +vim.keymap.set({ "n", "x" }, "^", "lua Scroll('^')") +vim.keymap.set({ "n", "x" }, "$", "lua Scroll('$', 0, 1)") + +-- Paragraph movements: +vim.keymap.set({ "n", "x" }, "{", "lua Scroll('{')") +vim.keymap.set({ "n", "x" }, "}", "lua Scroll('}')") + +-- Previous/next search result: +vim.keymap.set("n", "n", "lua Scroll('n', 1)") +vim.keymap.set("n", "N", "lua Scroll('N', 1)") +vim.keymap.set("n", "*", "lua Scroll('*', 1)") +vim.keymap.set("n", "#", "lua Scroll('#', 1)") +vim.keymap.set("n", "g*", "lua Scroll('g*', 1)") +vim.keymap.set("n", "g#", "lua Scroll('g#', 1)") + +-- Previous/next cursor location: +vim.keymap.set("n", "", "lua Scroll('', 1)") +vim.keymap.set("n", "", "lua Scroll('1', 1)") + +-- Screen scrolling: +vim.keymap.set("n", "zz", "lua Scroll('zz', 0, 1)") +vim.keymap.set("n", "zt", "lua Scroll('zt', 0, 1)") +vim.keymap.set("n", "zb", "lua Scroll('zb', 0, 1)") +vim.keymap.set("n", "z.", "lua Scroll('z.', 0, 1)") +vim.keymap.set("n", "z", "lua Scroll('zt^', 0, 1)") +vim.keymap.set("n", "z-", "lua Scroll('z-', 0, 1)") +vim.keymap.set("n", "z^", "lua Scroll('z^', 0, 1)") +vim.keymap.set("n", "z+", "lua Scroll('z+', 0, 1)") +vim.keymap.set("n", "", "lua Scroll('', 0, 1)") +vim.keymap.set("n", "", "lua Scroll('', 0, 1)") + +-- Horizontal screen scrolling: +vim.keymap.set("n", "zH", "lua Scroll('zH')") +vim.keymap.set("n", "zL", "lua Scroll('zL')") +vim.keymap.set("n", "zs", "lua Scroll('zs')") +vim.keymap.set("n", "ze", "lua Scroll('ze')") +vim.keymap.set("n", "zh", "lua Scroll('zh', 0, 1)") +vim.keymap.set("n", "zl", "lua Scroll('zl', 0, 1)") + +-- EXTENDED_KEYMAPS: + +-- Up/down movements: +vim.keymap.set({ "n", "x" }, "k", "lua Scroll('k', 0, 1)") +vim.keymap.set({ "n", "x" }, "j", "lua Scroll('j', 0, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('k', 0, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('j', 0, 1)") + +-- Left/right movements: +vim.keymap.set({ "n", "x" }, "h", "lua Scroll('h', 0, 1)") +vim.keymap.set({ "n", "x" }, "l", "lua Scroll('l', 0, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('h', 0, 1)") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('l', 0, 1)") + +-- SCROLL_WHEEL_KEYMAPS: + +vim.keymap.set({ "n", "x" }, "", "lua Scroll('')") +vim.keymap.set({ "n", "x" }, "", "lua Scroll('')") + +vim.keymap.set("n", "", "noh", { noremap = true, silent = true, desc = "Clear Search" }) + +vim.keymap.set("n", "]b", require("goto-breakpoints").next, { desc = "Next Breakpoint" }) +vim.keymap.set("n", "[b", require("goto-breakpoints").prev, { desc = "Prev Breakpoint" }) +vim.keymap.set("n", "dbn", require("goto-breakpoints").next, { desc = "Next Breakpoint" }) +vim.keymap.set("n", "dbp", require("goto-breakpoints").prev, { desc = "Prev Breakpoint" }) +vim.keymap.set("n", "dbs", require("goto-breakpoints").stopped, { desc = "Stopped Breakpoint" }) + +-- vim.keymap.set({ "n", "o", "x" }, "w", "lua require('spider').motion('w')", { desc = "Spider-w" }) +-- vim.keymap.set({ "n", "o", "x" }, "e", "lua require('spider').motion('e')", { desc = "Spider-e" }) +-- vim.keymap.set({ "n", "o", "x" }, "b", "lua require('spider').motion('b')", { desc = "Spider-b" }) +-- vim.keymap.set({ "n", "o", "x" }, "ge", "lua require('spider').motion('ge')", { desc = "Spider-ge" }) diff --git a/.config/nvim/lua/plugins/actions-preview.lua b/.config/nvim/lua/plugins/actions-preview.lua new file mode 100644 index 00000000..da6da07e --- /dev/null +++ b/.config/nvim/lua/plugins/actions-preview.lua @@ -0,0 +1,29 @@ +return { + { + "aznhe21/actions-preview.nvim", + event = "BufRead", + config = function() + vim.keymap.set( + { "v", "n" }, + "ga", + require("actions-preview").code_actions, + { noremap = true, silent = true, desc = "Code Actions" } + ) + require("actions-preview").setup({ + telescope = { + sorting_strategy = "ascending", + layout_strategy = "vertical", + layout_config = { + width = 0.8, + height = 0.9, + prompt_position = "top", + preview_cutoff = 20, + preview_height = function(_, _, max_lines) + return max_lines - 15 + end, + }, + }, + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/alpha.lua b/.config/nvim/lua/plugins/alpha.lua index 89774793..60dcbb5d 100644 --- a/.config/nvim/lua/plugins/alpha.lua +++ b/.config/nvim/lua/plugins/alpha.lua @@ -5,12 +5,15 @@ return { optional = true, opts = function(_, dashboard) local logo = [[ - ███╗ ███╗ █████╗ ████████╗████████╗██╗ ██╗██╗███╗ ███╗ - ████╗ ████║██╔══██╗╚══██╔══╝╚══██╔══╝██║ ██║██║████╗ ████║ - ██╔████╔██║███████║ ██║ ██║ ██║ ██║██║██╔████╔██║ - ██║╚██╔╝██║██╔══██║ ██║ ██║ ╚██╗ ██╔╝██║██║╚██╔╝██║ - ██║ ╚═╝ ██║██║ ██║ ██║ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ - ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ + ▄ ▄ + ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ + █ ▄ █▄█ ▄▄▄ █ █▄█ █ █ + ▄▄ █▄█▄▄▄█ █▄█▄█▄▄█▄▄█ █ +▄ █▄▄█ ▄ ▄▄ ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄ +█▄▄▄▄ ▄▄▄ █ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █ ▄ +▄ █ █▄█ █▄█ █ █ █▄█ █ █▄█ ▄▄▄ █ █ +█▄█ ▄ █▄▄█▄▄█ █ ▄▄█ █ ▄ █ █▄█▄█ █ + █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ ]] dashboard.section.header.val = vim.split(logo, "\n") end, diff --git a/.config/nvim/lua/plugins/cinnamon.lua b/.config/nvim/lua/plugins/cinnamon.lua new file mode 100644 index 00000000..605ae2d2 --- /dev/null +++ b/.config/nvim/lua/plugins/cinnamon.lua @@ -0,0 +1,14 @@ +return { + { + "declancm/cinnamon.nvim", + event = "VeryLazy", + config = function() + require("cinnamon").setup({ + default_keymaps = true, + extra_keymaps = true, + extended_keymaps = true, + override_keymaps = true, + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index e112ae35..edd4e5e5 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -56,6 +56,10 @@ return { }, }, sorting = defaults.sorting, + window = { + completion = cmp.config.window.bordered(), + documentation = cmp.config.window.bordered(), + }, } end, }, diff --git a/.config/nvim/lua/plugins/dap.lua b/.config/nvim/lua/plugins/dap.lua new file mode 100644 index 00000000..8cabe48c --- /dev/null +++ b/.config/nvim/lua/plugins/dap.lua @@ -0,0 +1,104 @@ +return { + { + "mfussenegger/nvim-dap", + + dependencies = { + + -- fancy UI for the debugger + { + "rcarriga/nvim-dap-ui", + -- stylua: ignore + keys = { + { "du", function() require("dapui").toggle({ }) end, desc = "Dap UI" }, + { "de", function() require("dapui").eval() end, desc = "Eval", mode = {"n", "v"} }, + }, + opts = {}, + config = function(_, opts) + local dap = require("dap") + local dapui = require("dapui") + dapui.setup(opts) + dap.listeners.after.event_initialized["dapui_config"] = function() + dapui.open({}) + end + dap.listeners.before.event_terminated["dapui_config"] = function() + dapui.close({}) + end + dap.listeners.before.event_exited["dapui_config"] = function() + dapui.close({}) + end + end, + }, + + -- virtual text for the debugger + { + "theHamsta/nvim-dap-virtual-text", + opts = {}, + }, + + -- which key integration + { + "folke/which-key.nvim", + optional = true, + opts = { + defaults = { + ["d"] = { name = "+debug" }, + ["da"] = { name = "+adapters" }, + }, + }, + }, + + -- mason.nvim integration + { + "jay-babu/mason-nvim-dap.nvim", + dependencies = "mason.nvim", + cmd = { "DapInstall", "DapUninstall" }, + opts = { + -- Makes a best effort to setup the various debuggers with + -- reasonable debug configurations + automatic_installation = true, + + -- You can provide additional configuration to the handlers, + -- see mason-nvim-dap README for more information + handlers = {}, + + -- You'll need to check that you have the required things installed + -- online, please don't ask me how to install them :) + ensure_installed = { + -- Update this to ensure that you have the debuggers for the langs you want + }, + }, + }, + }, + + -- stylua: ignore + keys = { + { "dc", function() require("dap").continue() end, desc = "Continue" }, + { "dC", function() require("dap").run_to_cursor() end, desc = "Run to Cursor" }, + { "dg", function() require("dap").goto_() end, desc = "Go to line (no execute)" }, + { "di", function() require("dap").step_into() end, desc = "Step Into" }, + { "dj", function() require("dap").down() end, desc = "Down" }, + { "dk", function() require("dap").up() end, desc = "Up" }, + { "dl", function() require("dap").run_last() end, desc = "Run Last" }, + { "do", function() require("dap").step_out() end, desc = "Step Out" }, + { "dO", function() require("dap").step_over() end, desc = "Step Over" }, + { "dp", function() require("dap").pause() end, desc = "Pause" }, + { "dr", function() require("dap").repl.toggle() end, desc = "Toggle REPL" }, + { "ds", function() require("dap").session() end, desc = "Session" }, + { "dt", function() require("dap").terminate() end, desc = "Terminate" }, + { "dw", function() require("dap.ui.widgets").hover() end, desc = "Widgets" }, + }, + + config = function() + local Config = require("lazyvim.config") + vim.api.nvim_set_hl(0, "DapStoppedLine", { default = true, link = "Visual" }) + + for name, sign in pairs(Config.icons.dap) do + sign = type(sign) == "table" and sign or { sign } + vim.fn.sign_define( + "Dap" .. name, + { text = sign[1], texthl = sign[2] or "DiagnosticInfo", linehl = sign[3], numhl = sign[3] } + ) + end + end, + }, +} diff --git a/.config/nvim/lua/plugins/flash.lua b/.config/nvim/lua/plugins/flash.lua new file mode 100644 index 00000000..c10bd7c8 --- /dev/null +++ b/.config/nvim/lua/plugins/flash.lua @@ -0,0 +1,57 @@ +return { + { + "folke/flash.nvim", + event = "VeryLazy", + vscode = true, + ---@type Flash.Config + opts = {}, + keys = { + { + "s", + mode = { "n", "x", "o" }, + function() + require("flash").jump({ + search = { + mode = function(str) + return "\\<" .. str + end, + }, + }) + end, + desc = "Flash", + }, + { + "S", + mode = { "n", "o", "x" }, + function() + require("flash").treesitter() + end, + desc = "Flash Treesitter", + }, + { + "r", + mode = "o", + function() + require("flash").remote() + end, + desc = "Remote Flash", + }, + { + "R", + mode = { "o", "x" }, + function() + require("flash").treesitter_search() + end, + desc = "Treesitter Search", + }, + { + "", + mode = { "c" }, + function() + require("flash").toggle() + end, + desc = "Toggle Flash Search", + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/goto-breakpoints.lua b/.config/nvim/lua/plugins/goto-breakpoints.lua new file mode 100644 index 00000000..a75b5ca1 --- /dev/null +++ b/.config/nvim/lua/plugins/goto-breakpoints.lua @@ -0,0 +1,6 @@ +return { + { + "ofirgall/goto-breakpoints.nvim", + event = "BufRead", + }, +} diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua index 41b86f30..8f214b09 100644 --- a/.config/nvim/lua/plugins/lspconfig.lua +++ b/.config/nvim/lua/plugins/lspconfig.lua @@ -8,5 +8,87 @@ return { keys[#keys + 1] = { "gy", "Glance type_definitions", desc = "Goto t[y]pe definitions" } keys[#keys + 1] = { "gI", "Glance implementations", desc = "Goto implementations" } end, + opts = { + -- options for vim.diagnostic.config() + diagnostics = { + underline = true, + update_in_insert = false, + virtual_text = { + spacing = 4, + source = "if_many", + prefix = "●", + -- this will set set the prefix to a function that returns the diagnostics icon based on the severity + -- this only works on a recent 0.10.0 build. Will be set to "●" when not supported + -- prefix = "icons", + float = { + border = { + { "┌", "FloatBorder" }, + { "─", "FloatBorder" }, + { "┐", "FloatBorder" }, + { "│", "FloatBorder" }, + { "┘", "FloatBorder" }, + { "─", "FloatBorder" }, + { "└", "FloatBorder" }, + { "│", "FloatBorder" }, + }, + }, + }, + severity_sort = true, + }, + -- Enable this to enable the builtin LSP inlay hints on Neovim >= 0.10.0 + -- Be aware that you also will need to properly configure your LSP server to + -- provide the inlay hints. + inlay_hints = { + enabled = false, + }, + -- add any global capabilities here + capabilities = {}, + -- Automatically format on save + autoformat = true, + -- Enable this to show formatters used in a notification + -- Useful for debugging formatter issues + format_notify = false, + -- options for vim.lsp.buf.format + -- `bufnr` and `filter` is handled by the LazyVim formatter, + -- but can be also overridden when specified + format = { + formatting_options = nil, + timeout_ms = nil, + }, + -- LSP Server Settings + ---@type lspconfig.options + servers = { + jsonls = {}, + lua_ls = { + -- mason = false, -- set to false if you don't want this server to be installed with mason + -- Use this to add any additional keymaps + -- for specific lsp servers + ---@type LazyKeys[] + -- keys = {}, + settings = { + Lua = { + workspace = { + checkThirdParty = false, + }, + completion = { + callSnippet = "Replace", + }, + }, + }, + }, + }, + -- you can do any additional lsp server setup here + -- return true if you don't want this server to be setup with lspconfig + ---@type table + setup = { + -- example to setup with typescript.nvim + -- tsserver = function(_, opts) + -- require("typescript").setup({ server = opts }) + -- return true + -- end, + -- Specify * to use this function as a fallback for any server + -- ["*"] = function(server, opts) end, + }, + }, }, } diff --git a/.config/nvim/lua/plugins/numb.lua b/.config/nvim/lua/plugins/numb.lua new file mode 100644 index 00000000..7653171b --- /dev/null +++ b/.config/nvim/lua/plugins/numb.lua @@ -0,0 +1,9 @@ +return { + { + "nacro90/numb.nvim", + event = "BufRead", + config = function() + require("numb").setup({}) + end, + }, +} diff --git a/.config/nvim/lua/plugins/package-info.lua b/.config/nvim/lua/plugins/package-info.lua index 7e793d7f..b97892e5 100644 --- a/.config/nvim/lua/plugins/package-info.lua +++ b/.config/nvim/lua/plugins/package-info.lua @@ -23,7 +23,7 @@ return { -- The plugin will try to auto-detect the package manager based on -- `yarn.lock` or `package-lock.json`. If none are found it will use the -- provided one, if nothing is provided it will use `yarn` - package_manager = "yarn", + package_manager = "npm", }) end, }, diff --git a/.config/nvim/lua/plugins/persistent-breakpoints.lua b/.config/nvim/lua/plugins/persistent-breakpoints.lua new file mode 100644 index 00000000..039d099c --- /dev/null +++ b/.config/nvim/lua/plugins/persistent-breakpoints.lua @@ -0,0 +1,16 @@ +return { + { + "Weissle/persistent-breakpoints.nvim", + event = "BufReadPost", + keys = { + { "dbd", "PBClearAllBreakpoints", desc = "Delete All Breakpoints" }, + { "dbc", "PBSetConditionalBreakpoint", desc = "Set Conditional Breakpoint" }, + { "dbb", "PBToggleBreakpoint", desc = "Toggle Breakpoint" }, + }, + config = function() + require("persistent-breakpoints").setup({ + load_breakpoints_event = { "BufReadPost" }, + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/rainbow-delimeters.lua b/.config/nvim/lua/plugins/rainbow-delimeters.lua new file mode 100644 index 00000000..baec9337 --- /dev/null +++ b/.config/nvim/lua/plugins/rainbow-delimeters.lua @@ -0,0 +1,29 @@ +return { + { + "HiPhish/rainbow-delimiters.nvim", + event = "VeryLazy", + config = function() + local rainbow_delimiters = require("rainbow-delimiters") + + vim.g.rainbow_delimiters = { + strategy = { + [""] = rainbow_delimiters.strategy["global"], + vim = rainbow_delimiters.strategy["local"], + }, + query = { + [""] = "rainbow-delimiters", + lua = "rainbow-blocks", + }, + highlight = { + "RainbowDelimiterRed", + "RainbowDelimiterYellow", + "RainbowDelimiterBlue", + "RainbowDelimiterOrange", + "RainbowDelimiterGreen", + "RainbowDelimiterViolet", + "RainbowDelimiterCyan", + }, + } + end, + }, +} diff --git a/.config/nvim/lua/plugins/sniprun.lua.bak b/.config/nvim/lua/plugins/sniprun.lua.bak new file mode 100644 index 00000000..c25f50c6 --- /dev/null +++ b/.config/nvim/lua/plugins/sniprun.lua.bak @@ -0,0 +1,79 @@ +return { + { + "michaelb/sniprun", + run = "bash ./install.sh", + -- cmd = { "SnipRun", "SnipInfo", "SnipLive", "SnipClose", "SnipReset", "SnipReplMemoryClean" }, + config = function() + require("sniprun").setup({ + selected_interpreters = {}, --# use those instead of the default for the current filetype + repl_enable = { "javascript", "typescript" }, --# enable REPL-like behavior for the given interpreters + repl_disable = {}, --# disable REPL-like behavior for the given interpreters + + interpreter_options = { + --# interpreter-specific options, see docs / :SnipInfo + + --# use the interpreter name as key + GFM_original = { + use_on_filetypes = { "markdown.pandoc" }, --# the 'use_on_filetypes' configuration key is + --# available for every interpreter + }, + Python3_original = { + error_truncate = "auto", --# Truncate runtime errors 'long', 'short' or 'auto' + --# the hint is available for every interpreter + --# but may not be always respected + }, + }, + + --# you can combo different display modes as desired and with the 'Ok' or 'Err' suffix + --# to filter only sucessful runs (or errored-out runs respectively) + display = { + -- "Classic", --# display results in the command-line area + -- "VirtualTextOk", --# display ok results as virtual text (multiline is shortened) + + "VirtualText", --# display results as virtual text + -- "TempFloatingWindow", --# display results in a floating window + -- "LongTempFloatingWindow", --# same as above, but only long results. To use with VirtualText[Ok/Err] + -- "Terminal", --# display results in a vertical split + -- "TerminalWithCode", --# display results and code history in a vertical split + -- "NvimNotify", --# display with the nvim-notify plugin + -- "Api" --# return output to a programming interface + }, + + live_display = { "VirtualTextOk" }, --# display mode used in live_mode + + display_options = { + terminal_scrollback = vim.o.scrollback, --# change terminal display scrollback lines + terminal_line_number = false, --# whether show line number in terminal window + terminal_signcolumn = false, --# whether show signcolumn in terminal window + terminal_persistence = true, --# always keep the terminal open (true) or close it at every occasion (false) + terminal_width = 45, --# change the terminal display option width + notification_timeout = 5, --# timeout for nvim_notify output + }, + + --# You can use the same keys to customize whether a sniprun producing + --# no output should display nothing or '(no output)' + show_no_output = { + "Classic", + "TempFloatingWindow", --# implies LongTempFloatingWindow, which has no effect on its own + }, + + --# customize highlight groups (setting this overrides colorscheme) + snipruncolors = { + SniprunVirtualTextOk = { bg = "#66eeff", fg = "#000000", ctermbg = "Cyan", cterfg = "Black" }, + SniprunFloatingWinOk = { fg = "#66eeff", ctermfg = "Cyan" }, + SniprunVirtualTextErr = { bg = "#881515", fg = "#000000", ctermbg = "DarkRed", cterfg = "Black" }, + SniprunFloatingWinErr = { fg = "#881515", ctermfg = "DarkRed" }, + }, + + live_mode_toggle = "off", --# live mode toggle, see Usage - Running for more info + + --# miscellaneous compatibility/adjustement settings + inline_messages = false, --# inline_message (0/1) is a one-line way to display messages + --# to workaround sniprun not being able to display anything + + borders = "single", --# display borders around floating windows + --# possible values are 'none', 'single', 'double', or 'shadow' + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/spider.lua.bak b/.config/nvim/lua/plugins/spider.lua.bak new file mode 100644 index 00000000..99fcd6d6 --- /dev/null +++ b/.config/nvim/lua/plugins/spider.lua.bak @@ -0,0 +1,9 @@ +return { + { + "chrisgrieser/nvim-spider", + lazy = true, + config = function() + require("spider").setup({}) + end, + }, +} diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua index b7c15e72..a8c067c8 100644 --- a/.config/nvim/lua/plugins/telescope.lua +++ b/.config/nvim/lua/plugins/telescope.lua @@ -327,7 +327,6 @@ return { { "sSF", Util.telescope("lsp_dynamic_workspace_symbols", { - symbols = { "Field", }, diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index 85e9edc6..7642a668 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -6,6 +6,10 @@ return { enable = true, } + opts.endwise = { + enable = true, + } + vim.list_extend(opts.ensure_installed, { "arduino", "diff", diff --git a/.config/nvim/lua/plugins/which-key.lua b/.config/nvim/lua/plugins/which-key.lua index 73502c4a..6edd0ba0 100644 --- a/.config/nvim/lua/plugins/which-key.lua +++ b/.config/nvim/lua/plugins/which-key.lua @@ -30,6 +30,7 @@ return { ["D"] = { name = "+database" }, ["sS"] = { name = "+Goto Symbols (Workspace)" }, ["ss"] = { name = "+Goto Symbols" }, + ["db"] = { name = "+Breakpoints" }, }, }, config = function(_, opts)