Move AstroNvim config to separate repo

Upgraded to v4.

See <https://git.disroot.org/grafcube/nvim-config>
This commit is contained in:
Grafcube 2024-04-07 22:40:53 +05:30
parent 74c418ea54
commit a20e22ada2
Signed by: grafcube
GPG Key ID: E383688F2878A440
5 changed files with 0 additions and 844 deletions

View File

@ -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",
},
}

View File

@ -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

View File

@ -1,72 +0,0 @@
return {
n = {
["<C-d>"] = "12<C-e>",
["<C-u>"] = "12<C-y>",
["<M-h>"] = "26zh",
["<M-l>"] = "26zl",
["<C-a>"] = "ggVG",
["<S-ScrollWheelUp>"] = "26zh",
["<S-ScrollWheelDown>"] = "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,
["<leader><tab>"] = { "<cmd>b#<cr>", desc = "Recent buffer" },
["<leader>'"] = { "<cmd>ToggleTerm size=10 direction=horizontal<cr>", desc = "Open Terminal" },
["<leader>s"] = { "<cmd>MundoToggle<cr>", desc = "Undo Tree" },
["<leader>px"] = { function() require("lazy").clean() end, desc = "Packer Clean" },
["<leader>x"] = { "<cmd>Hexmode<cr>", desc = "Hexmode" },
["<leader>b"] = { name = "Buffer" },
["<leader>ba"] = { "<cmd>ASToggle<cr>", desc = "Toggle Autosave" },
["<leader>bb"] = { "<cmd>BufferLinePick<cr>", desc = "Pick Buffer" },
["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
["<leader>r"] = { name = "Runner" },
["<leader>rr"] = { "<cmd>RunCode<cr>", desc = "Run" },
["<leader>rf"] = { "<cmd>RunFile<cr>", desc = "File" },
["<leader>rt"] = { "<cmd>RunFile tab<cr>", desc = "Tab" },
["<leader>rp"] = { "<cmd>RunProject<cr>", desc = "Project" },
["<leader>rx"] = { "<cmd>RunClose<cr>", desc = "Close" },
["<leader>rc"] = { "<cmd>CRProjects<cr>", desc = "Configure projects" },
["<leader>re"] = { name = "Repl" },
["<leader>rer"] = { "<cmd>Repl<cr>", desc = "Repl" },
["<leader>rea"] = { "<cmd>ReplAuto<cr>", desc = "Auto" },
["<leader>rel"] = { "<cmd>ReplList<cr>", desc = "List" },
["<leader>rec"] = { "<cmd>ReplRecv<cr>", desc = "Receive" },
["<leader>res"] = { "<cmd>ReplSend<cr>", desc = "Send" },
["<leader>req"] = { "<cmd>ReplStop<cr>", desc = "Stop" },
["<leader>k"] = { name = "Test" },
["<leader>kn"] = { function() require("neotest").run.run() end, desc = "Run nearest" },
["<leader>kf"] = { function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run file" },
["<leader>kl"] = { function() require("neotest").run.run_last() end, desc = "Run last" },
["<leader>ku"] = { function() require("neotest").summary.toggle() end, desc = "Toggle summary" },
["<leader>kx"] = { function() require("neotest").run.stop() end, desc = "Stop nearest" },
["<leader>ka"] = { function() require("neotest").run.attach() end, desc = "Attach" },
["<leader>kd"] = { function() require("neotest").run.run({ strategy = "dap" }) end, desc = "Debug nearest" },
["<leader>kD"] = { function() require("neotest").run.run({ vim.fn.expand("%"), strategy = "dap" }) end, desc =
"Debug" },
["<leader>ko"] = { function() require("neotest").output.open({ enter = false }) end, desc = "Show output" },
["<leader>kO"] = { function() require("neotest").output.open({ enter = true }) end, desc = "Jump to output" },
["<leader>lm"] = { "<cmd>CodeActionMenu<cr>", desc = "Code action menu" },
},
i = {
["<C-v>"] = "<C-r>+",
["<C-s>"] = "<cmd>w<cr>",
},
t = {
["<C-v>"] = "<C-r>+",
},
c = {
["<C-v>"] = "<C-r>+",
},
["!"] = {
["<C-v>"] = "<C-r>+",
},
}

View File

@ -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",
}
}

View File

@ -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', '<A-j>', ':MoveLine(1)<CR>', opts)
vim.keymap.set('n', '<A-k>', ':MoveLine(-1)<CR>', opts)
vim.keymap.set('n', '<A-h>', ':MoveHChar(-1)<CR>', opts)
vim.keymap.set('n', '<A-l>', ':MoveHChar(1)<CR>', opts)
-- Visual-mode commands
vim.keymap.set('v', '<A-j>', ':MoveBlock(1)<CR>', opts)
vim.keymap.set('v', '<A-k>', ':MoveBlock(-1)<CR>', opts)
vim.keymap.set('v', '<A-h>', ':MoveHBlock(-1)<CR>', opts)
vim.keymap.set('v', '<A-l>', ':MoveHBlock(1)<CR>', 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", "<C-Tab>", "<C-x><C-u>", { 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() } }<CR>",
{ noremap = true, silent = true })
vim.api.nvim_set_keymap("x", "s",
":lua require('leap').leap { target_windows = { vim.fn.win_getid() } }<CR>",
{ noremap = true, silent = true })
end
},
}