diff --git a/dot_config/nvim/lua/user/autocommands.lua b/dot_config/nvim/lua/user/autocommands.lua deleted file mode 100644 index 31a5ab6..0000000 --- a/dot_config/nvim/lua/user/autocommands.lua +++ /dev/null @@ -1,32 +0,0 @@ -return { - { - { "TermOpen" }, - pattern = "*", - command = "setlocal nonumber norelativenumber", - }, - { - { "InsertEnter" }, - pattern = "*", - command = "set norelativenumber", - }, - { - { "InsertLeave" }, - pattern = "*", - command = "set relativenumber", - }, - { - { "FileType" }, - pattern = { "markdown", "tex" }, - command = "set tw=80", - }, - { - { "CursorHold", "CursorHoldI" }, - pattern = "*", - command = "checktime", - }, - { - { "BufRead", "CursorHoldI" }, - pattern = "*.slint", - command = "set filetype=slint", - }, -} diff --git a/dot_config/nvim/lua/user/init.lua b/dot_config/nvim/lua/user/init.lua deleted file mode 100644 index 7c42420..0000000 --- a/dot_config/nvim/lua/user/init.lua +++ /dev/null @@ -1,132 +0,0 @@ -local config = { - -- Configure AstroNvim updates - updater = { - channel = "stable", -- "stable" or "nightly" - remote = "origin", -- remote to use - version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY) - branch = "main", -- branch name (NIGHTLY ONLY) - commit = nil, -- commit hash (NIGHTLY ONLY) - pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only) - skip_prompts = false, -- skip prompts about breaking changes - show_changelog = true, -- show the changelog after performing an update - auto_reload = true, -- automatically reload and sync packer after a successful update - auto_quit = true, -- automatically quit the current session after a successful update - }, - -- Set colorscheme to use - colorscheme = "catppuccin-mocha", - -- Diagnostics configuration (for vim.diagnostics.config({...})) - diagnostics = { - virtual_text = true, - underline = true, - }, - heirline = { - separators = { - left = { "", " " }, - right = { " ", "" }, - } - }, - lsp = { - skip_setup = { - "rust_analyzer", - }, - servers = { - "gdscript", - "racket_langserver", - "rust_analyzer", - "clangd", - "dartls", - }, - formatting = { - format_on_save = true, - }, - setup_handlers = { - dartls = function(_, opts) - require("flutter-tools").setup({ lsp = opts }) - end - }, - config = { - clangd = { - capabilities = { offsetEncoding = "utf-8" }, - }, - rust_analyzer = { - -- cmd = { "ra-multiplex" }, - settings = { - ["rust-analyzer"] = { - cargo = { - features = "all", - }, - check = { - command = "clippy", - allTargets = true, - extraArgs = { "--all", "--", "-W", "clippy::all" }, - }, - procMacro = { - enable = true, - }, - }, - }, - }, - dartls = { - color = { - enabled = true, - }, - settings = { - showTodos = true, - completeFunctionCalls = true, - }, - }, - slint_lsp = { - root_dir = function() require("lspconfig.util").root_pattern("*") end, - }, - svelte = { - settings = { - ["svelte"] = { - ["enable-ts-plugin"] = true, - plugin = { - svelte = { - defaultScriptLanguage = "ts", - } - }, - } - } - }, - tailwindcss = { - filetypes = { - "css", - "scss", - "sass", - "postcss", - "html", - "javascript", - "javascriptreact", - "typescript", - "typescriptreact", - "svelte", - "vue", - "rust", - }, - settings = { - ["tailwindCSS"] = { - includeLanguages = { "postcss" }, - } - }, - init_options = { - userLanguages = { - rust = "html", - }, - }, - }, - }, - }, - -- This function is run last and is a good place to configuring - -- augroups/autocommands and custom filetypes also this just pure lua so - -- anything that doesn't fit in the normal config locations above can go here - polish = function() - -- Set autocommands - for _, opts in pairs(require("user.autocommands")) do - vim.api.nvim_create_autocmd(table.remove(opts, 1), opts) - end - end, -} - -return config diff --git a/dot_config/nvim/lua/user/mappings.lua b/dot_config/nvim/lua/user/mappings.lua deleted file mode 100644 index 264c373..0000000 --- a/dot_config/nvim/lua/user/mappings.lua +++ /dev/null @@ -1,72 +0,0 @@ -return { - n = { - [""] = "12", - [""] = "12", - [""] = "26zh", - [""] = "26zl", - [""] = "ggVG", - [""] = "26zh", - [""] = "26zl", - ["zn"] = { "zR", desc = "Open all folds" }, - L = { - function() require("astronvim.utils.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end, - desc = "Next buffer" - }, - H = { - function() require("astronvim.utils.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end, - desc = "Previous buffer" - }, - [","] = function() require("notify").dismiss {} end, - [""] = { "b#", desc = "Recent buffer" }, - ["'"] = { "ToggleTerm size=10 direction=horizontal", desc = "Open Terminal" }, - ["s"] = { "MundoToggle", desc = "Undo Tree" }, - ["px"] = { function() require("lazy").clean() end, desc = "Packer Clean" }, - ["x"] = { "Hexmode", desc = "Hexmode" }, - ["b"] = { name = "Buffer" }, - ["ba"] = { "ASToggle", desc = "Toggle Autosave" }, - ["bb"] = { "BufferLinePick", desc = "Pick Buffer" }, - ["bc"] = { "BufferLinePickClose", desc = "Pick to close" }, - ["bj"] = { "BufferLinePick", desc = "Pick to jump" }, - ["bt"] = { "BufferLineSortByTabs", desc = "Sort by tabs" }, - ["r"] = { name = "Runner" }, - ["rr"] = { "RunCode", desc = "Run" }, - ["rf"] = { "RunFile", desc = "File" }, - ["rt"] = { "RunFile tab", desc = "Tab" }, - ["rp"] = { "RunProject", desc = "Project" }, - ["rx"] = { "RunClose", desc = "Close" }, - ["rc"] = { "CRProjects", desc = "Configure projects" }, - ["re"] = { name = "Repl" }, - ["rer"] = { "Repl", desc = "Repl" }, - ["rea"] = { "ReplAuto", desc = "Auto" }, - ["rel"] = { "ReplList", desc = "List" }, - ["rec"] = { "ReplRecv", desc = "Receive" }, - ["res"] = { "ReplSend", desc = "Send" }, - ["req"] = { "ReplStop", desc = "Stop" }, - ["k"] = { name = "Test" }, - ["kn"] = { function() require("neotest").run.run() end, desc = "Run nearest" }, - ["kf"] = { function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run file" }, - ["kl"] = { function() require("neotest").run.run_last() end, desc = "Run last" }, - ["ku"] = { function() require("neotest").summary.toggle() end, desc = "Toggle summary" }, - ["kx"] = { function() require("neotest").run.stop() end, desc = "Stop nearest" }, - ["ka"] = { function() require("neotest").run.attach() end, desc = "Attach" }, - ["kd"] = { function() require("neotest").run.run({ strategy = "dap" }) end, desc = "Debug nearest" }, - ["kD"] = { function() require("neotest").run.run({ vim.fn.expand("%"), strategy = "dap" }) end, desc = - "Debug" }, - ["ko"] = { function() require("neotest").output.open({ enter = false }) end, desc = "Show output" }, - ["kO"] = { function() require("neotest").output.open({ enter = true }) end, desc = "Jump to output" }, - ["lm"] = { "CodeActionMenu", desc = "Code action menu" }, - }, - i = { - [""] = "+", - [""] = "w", - }, - t = { - [""] = "+", - }, - c = { - [""] = "+", - }, - ["!"] = { - [""] = "+", - }, -} diff --git a/dot_config/nvim/lua/user/options.lua b/dot_config/nvim/lua/user/options.lua deleted file mode 100644 index e77bad6..0000000 --- a/dot_config/nvim/lua/user/options.lua +++ /dev/null @@ -1,40 +0,0 @@ -return { - opt = { - colorcolumn = "80", - relativenumber = true, - tabstop = 4, - completeopt = { "menu", "menuone", "longest", "preview", "noselect" }, - ignorecase = true, - smartcase = true, - whichwrap = "<,>,[,],b,h,l,s", - showcmd = true, - cmdheight = 1, - scrolloff = 10, - spelllang = "en", - foldlevel = 99, - foldlevelstart = 99, - foldenable = true, - diffopt = "internal,filler,closeoff,iwhite,linematch:60", - sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions", - }, - g = { - neovide_remember_window_size = true, - neovide_hide_mouse_when_typing = true, - better_whitespace_filetypes_blacklist = { - "diff", - "git", - "gitcommit", - "unite", - "qf", - "help", - "markdown", - "fugitive", - "terminal", - "toggleterm", - "nofile", - } - }, - o = { - guifont = "JetBrainsMono NFM:h13", - } -} diff --git a/dot_config/nvim/lua/user/plugins/init.lua b/dot_config/nvim/lua/user/plugins/init.lua deleted file mode 100644 index 8375ebc..0000000 --- a/dot_config/nvim/lua/user/plugins/init.lua +++ /dev/null @@ -1,568 +0,0 @@ -return { - { "Darazaki/indent-o-matic", enabled = false }, - { "tpope/vim-surround", lazy = false }, - { "rhysd/clever-f.vim", lazy = false }, - { "ron-rs/ron.vim" }, - { "Grafcube/bf-vim" }, - { "samirettali/shebang.nvim", lazy = false }, - { "lervag/vimtex", ft = { "tex" } }, - { "davidgranstrom/nvim-markdown-preview", cmd = "MarkdownPreview" }, - { "benknoble/vim-racket" }, - { "rhysd/reply.vim", lazy = false }, - { "kshenoy/vim-signature", lazy = false }, - { "mg979/vim-visual-multi", lazy = false }, - { "pgdouyon/vim-evanesco", lazy = false }, - { "ntpeters/vim-better-whitespace", lazy = false }, - { "jghauser/mkdir.nvim", lazy = false }, - { "fidian/hexmode", cmd = "Hexmode" }, - { "tpope/vim-sleuth", lazy = false }, - { "tpope/vim-fugitive" }, - { "folke/persistence.nvim" }, - { "Lommix/godot.nvim", ft = { "gdscript", "gdresource", "gdshader" } }, - { "catppuccin/nvim", name = "catppuccin" }, - { - "alpertuna/vim-header", - cmd = { - "AddHeader", - "AddMinHeader", - "AddMITLicense", - "AddApacheLicense", - "AddGNULicense", - "AddAGPLicense", - "AddLGPLLicense", - "AddMPLLicense", - "AddWTFPLLicense", - "AddZlibLicense", - } - }, - { - "simnalamburt/vim-mundo", - cmd = { "MundoToggle" }, - }, - { - "rmagatti/auto-session", - lazy = false, - opts = { - auto_session_root_dir = vim.fn.stdpath('state') .. "/sessions/", - auto_session_suppress_dirs = { "~/", "~/projects", "~/Downloads", "~/Documents", "/" }, - cwd_change_handling = { - restore_upcoming_session = false, - } - } - }, - { - "rmagatti/session-lens", - lazy = false, - dependencies = { 'rmagatti/auto-session', 'nvim-telescope/telescope.nvim' }, - config = function() - require('session-lens').setup() - require("telescope").load_extension("session-lens") - end - }, - { - "mzlogin/vim-markdown-toc", - cmd = { "GenTocGFM", "GenTocRedcarpet", "GenTocGitLab", "GenTocMarked", - "UpdateToc", "RemoveToc", } - }, - { - "williamboman/mason.nvim", - opts = { - PATH = "prepend", - } - }, - { - "nvim-treesitter/nvim-treesitter", - opts = { - auto_install = true, - } - }, - { - "max397574/better-escape.nvim", - opts = { - mapping = { "jk", "kj", "JK", "KJ" }, - clear_empty_lines = true, - } - }, - { - "jose-elias-alvarez/null-ls.nvim", - lazy = false, - opts = function(_, opts) - local null_ls = require "null-ls" - - local leptosfmt = { - name = "leptosfmt", - meta = { - url = "https://github.com/bram209/leptosfmt", - description = "A formatter for the leptos view! macro.", - }, - method = null_ls.methods.FORMATTING, - filetypes = { "rust" }, - condition = function(utils) - return utils.root_has_file("leptosfmt.toml") - end, - generator = null_ls.formatter({ - command = "leptosfmt", - args = { "--stdin", "--quiet" }, - to_stdin = true, - from_stderr = false, - from_stdout = true, - }), - } - - opts.sources = { - null_ls.builtins.formatting.shfmt.with({ - filetypes = { "sh", "bash", "zsh", "pkgbuild" }, - }), - null_ls.builtins.formatting.sql_formatter.with({ - extra_args = { "--config", vim.env.XDG_CONFIG_HOME .. "/sql-formatter.json" }, - }), - null_ls.builtins.formatting.prettier.with({ - filetypes = { "json", "markdown", "yaml", "html", "css" }, - }), - leptosfmt, - } - - return opts - end - }, - { - "rebelot/heirline.nvim", - opts = function(_, opts) - local status = require("astronvim.utils.status") - opts.statusline = { - hl = { fg = "fg", bg = "bg" }, - status.component.mode { mode_text = { padding = { left = 1, right = 1 } } }, - status.component.git_branch(), - status.component.file_info(), - status.component.git_diff(), - status.component.fill(), - status.component.diagnostics(), - status.component.lsp(), - status.component.treesitter { padding = { right = 1 } }, - status.component.file_info { - filename = false, - file_modified = false, - file_read_only = false, - filetype = {}, - }, - status.component.builder { - { - provider = function() - return vim.o.encoding:upper() - end - }, - padding = { right = 2 }, - }, - status.component.builder { - { - provider = function() - local fileformat_symbols = { - unix = '', -- e712 - dos = '', -- e70f - mac = '', -- e711 - } - return fileformat_symbols[vim.api.nvim_buf_get_option(0, "fileformat")] - end - }, - padding = { right = 2 }, - }, - status.component.builder { - { - provider = function() - local option = vim.api.nvim_buf_get_option(0, "expandtab") - return (option and "Spaces: " or "Tabs: ") .. - vim.api.nvim_buf_get_option(0, option and "shiftwidth" or "tabstop") - end - }, - padding = { right = 1 }, - }, - status.component.nav { - scrollbar = false, - padding = { right = 1 }, - surround = { separator = "right", color = status.hl.mode_bg }, - hl = { fg = "bg" }, - }, - } - return opts - end, - }, - { - "klen/nvim-config-local", - lazy = false, - opts = { - config_files = { ".nvim.lua", ".nvimrc", ".exrc" }, - hashfile = vim.fn.stdpath("cache") .. "/config-local", - autocommands_create = true, - commands_create = true, - silent = false, - lookup_parents = false, - } - }, - { - "windwp/nvim-autopairs", - config = function(plugin, opts) - require("plugins.configs.nvim-autopairs")(plugin, opts) - local Rule = require "nvim-autopairs.rule" - local npairs = require "nvim-autopairs" - local cond = require "nvim-autopairs.conds" - npairs.add_rules { - Rule(' ', ' ') - :with_pair(function(options) - local pair = options.line:sub(options.col - 1, options.col) - return vim.tbl_contains({ '()', '{}', '[]' }, pair) - end) - :with_move(cond.none()) - :with_cr(cond.none()) - :with_del(function(options) - local col = vim.api.nvim_win_get_cursor(0)[2] - local context = options.line:sub(col - 1, col + 2) - return vim.tbl_contains({ '( )', '{ }', '[ ]' }, context) - end), - Rule('', ' )') - :with_pair(cond.none()) - :with_move(function(options) return options.char == ')' end) - :with_cr(cond.none()) - :with_del(cond.none()) - :use_key(')'), - Rule('', ' }') - :with_pair(cond.none()) - :with_move(function(options) return options.char == '}' end) - :with_cr(cond.none()) - :with_del(cond.none()) - :use_key('}'), - Rule('', ' ]') - :with_pair(cond.none()) - :with_move(function(options) return options.char == ']' end) - :with_cr(cond.none()) - :with_del(cond.none()) - :use_key(']'), - } - end, - }, - { - "weilbith/nvim-code-action-menu", - cmd = "CodeActionMenu", - }, - { - "nvim-neotest/neotest", - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-treesitter/nvim-treesitter", - "nvim-neotest/neotest-python", - "rouge8/neotest-rust", - }, - config = function() - require("neotest").setup({ - adapters = { - require("neotest-python"), - require("neotest-rust"), - }, - }) - end - }, - { - "mfussenegger/nvim-dap", - config = function() - local dap = require("dap") - dap.adapters.godot = { - type = "server", - host = '127.0.0.1', - port = 6006, - } - - dap.configurations.gdscript = { - { - type = "godot", - request = "launch", - name = "Launch scene", - project = "${workspaceFolder}", - launch_scene = true, - }, - } - - dap.configurations.rust = { - { - name = "Launch", - type = "codelldb", - request = "launch", - program = function() - return vim.fn.input { - prompt = "Path to executable: ", - default = vim.fn.getcwd() .. "/target/debug/", - completion = "file" - } - end, - cwd = "${workspaceFolder}", - stopOnEntry = false, - }, - } - end, - }, - { - "machakann/vim-highlightedyank", - config = function() - vim.g.highlightedyank_highlight_duration = 400 - vim.g.highlightedyank_highlight_in_visual = 0 - end - }, - { - "NvChad/nvim-colorizer.lua", - lazy = false, - opts = function(_, _) - local wt = { - names = true, -- "Name" codes like Blue or blue - rgb_fn = true, -- CSS rgb() and rgba() functions - hsl_fn = true, -- CSS hsl() and hsla() functions - css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB - css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn - mode = "background", -- Set the display mode. - tailwind = "lsp", -- Enable tailwind colors - sass = { enable = false, parsers = { "css" }, }, -- Enable sass colors - } - return { - user_default_options = { - RGB = true, -- #RGB hex codes - RRGGBB = true, -- #RRGGBB hex codes - names = false, -- "Name" codes like Blue or blue - RRGGBBAA = true, -- #RRGGBBAA hex codes - AARRGGBB = true, -- 0xAARRGGBB hex codes - rgb_fn = false, -- CSS rgb() and rgba() functions - hsl_fn = false, -- CSS hsl() and hsla() functions - css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB - css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn - mode = "background", -- Set the display mode. - tailwind = false, -- Enable tailwind colors - }, - filetypes = { - html = wt, - css = wt, - sass = wt, - scss = wt, - svelte = wt, - rust = wt, - } - } - end - }, - { - "fedepujol/move.nvim", - lazy = false, - config = function() - require('move').setup({ - line = { - enable = true, - indent = true, - }, - block = { - enable = true, - indent = true, - }, - word = { - enable = true, - }, - char = { - enable = true, - }, - }) - local opts = { noremap = true, silent = true } - -- Normal-mode commands - vim.keymap.set('n', '', ':MoveLine(1)', opts) - vim.keymap.set('n', '', ':MoveLine(-1)', opts) - vim.keymap.set('n', '', ':MoveHChar(-1)', opts) - vim.keymap.set('n', '', ':MoveHChar(1)', opts) - -- Visual-mode commands - vim.keymap.set('v', '', ':MoveBlock(1)', opts) - vim.keymap.set('v', '', ':MoveBlock(-1)', opts) - vim.keymap.set('v', '', ':MoveHBlock(-1)', opts) - vim.keymap.set('v', '', ':MoveHBlock(1)', opts) - end - }, - { - "rcarriga/nvim-notify", - lazy = false, - opts = { background_colour = "#000000" }, - }, - { - "simrat39/rust-tools.nvim", - lazy = false, - dependencies = { "mason-lspconfig.nvim" }, - event = "User AstroLspSetup", - opts = { - server = require("astronvim.utils.lsp").config("rust_analyzer"), - tools = { - inlay_hints = { auto = true }, - hover_actions = { auto_focus = true }, - }, - } - }, - { - "akinsho/flutter-tools.nvim", - ft = { "dart" }, - dependencies = { - "nvim-lua/plenary.nvim", - "stevearc/dressing.nvim", - }, - opts = { - debugger = { - enabled = true, - run_via_dap = true, - register_configurations = function(paths) - require("dap").configurations.dart { - { - type = "dart", - request = "launch", - name = "Launch dart", - dartSdkPath = paths.dart_sdk, - flutterSdkPath = paths.flutter_sdk, - program = "${workspaceFolder}/lib/main.dart", - cwd = "${workspaceFolder}", - }, - { - type = "flutter", - request = "launch", - name = "Launch flutter", - dartSdkPath = paths.dart_sdk, - flutterSdkPath = paths.flutter_sdk, - program = "${workspaceFolder}/lib/main.dart", - cwd = "${workspaceFolder}", - } - } - end, - }, - }, - }, - { - "ray-x/lsp_signature.nvim", - config = function() - require 'lsp_signature'.setup({ hint_prefix = " " }) - end, - }, - { - "kosayoda/nvim-lightbulb", - lazy = false, - opts = function() - local text = "" - return { - autocmd = { - enabled = true - }, - hide_in_unfocused_buffer = true, - sign = { - enabled = true, - text = text, - hl = "LightBulbSign", - }, - virtual_text = { - enabled = false, - text = text, - pos = "eol", - hl = "LightBulbVirtualText", - hl_mode = "combine", - }, - float = { - enabled = false, - text = text, - hl = "LightBulbFloatWin", - win_opts = { - focusable = false, - }, - }, - status_text = { - enabled = false, - text = text, - text_unavailable = "", - }, - } - end, - }, - { - "Xuyuanp/scrollbar.nvim", - lazy = false, - config = function() - vim.api.nvim_create_autocmd( - { "WinScrolled", "VimResized", "QuitPre", "WinEnter", "FocusGained" }, { - pattern = "*", - command = "silent! lua require('scrollbar').show()" - }) - vim.api.nvim_create_autocmd( - { "WinLeave", "BufLeave", "BufWinLeave", "FocusLost" }, { - pattern = "*", - command = "silent! lua require('scrollbar').clear()" - }) - end, - }, - { - 'CRAG666/code_runner.nvim', - lazy = false, - dependencies = 'nvim-lua/plenary.nvim', - config = function() - require('code_runner').setup({ - mode = "float", - float = { - border = "rounded", - }, - project_path = vim.fn.stdpath('state') .. "/project_manager.json", - filetype = { - sh = "$file", - zig = "zig build-exe $file && $dir/$fileNameWithoutExt", - c = "cd $dir && gcc -lm $file -o $fileNameWithoutExt && $dir/$fileNameWithoutExt", - cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt", - rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt", - perl = "perl $file", - ruby = "ruby $file", - python = "python3 $file", - julia = "julia $file", - haskell = "ghc $file && $dir/$fileNameWithoutExt", - racket = "racket $file", - java = "java $file", - tcl = "ns $file", - }, - }) - end, - }, - { - "abecodes/tabout.nvim", - lazy = false, - config = function() - require("tabout").setup { - act_as_shift_tab = true, - } - end, - }, - { - "JuliaEditorSupport/julia-vim", - lazy = false, - config = function() - vim.g.latex_to_unicode_file_types = { ".*" } - vim.api.nvim_set_keymap("i", "", "", { noremap = false, silent = true }) - end, - }, - { - "eraserhd/parinfer-rust", - ft = { "racket", "scheme", "lisp", "yuck" }, - build = "cargo build --release", - config = function() - vim.g.parinfer_logfile = vim.env.XDG_CACHE_HOME .. "/nvim/parinfer.log" - vim.api.nvim_create_autocmd( - "FileType", { - pattern = { "racket", "scheme", "lisp", "yuck" }, - command = "ParinferOn" - }) - end, - }, - { - "ggandor/leap.nvim", - lazy = false, - dependencies = { "tpope/vim-repeat" }, - config = function() - require('leap').set_default_keymaps() - vim.api.nvim_set_keymap("n", "S", "s", { noremap = true, silent = true }) - vim.api.nvim_set_keymap("n", "s", - ":lua require('leap').leap { target_windows = { vim.fn.win_getid() } }", - { noremap = true, silent = true }) - vim.api.nvim_set_keymap("x", "s", - ":lua require('leap').leap { target_windows = { vim.fn.win_getid() } }", - { noremap = true, silent = true }) - end - }, -}