update for leap deprecation
This commit is contained in:
+24
-19
@@ -168,7 +168,7 @@ vim.keymap.set('i', '<F1>', '<Esc>')
|
||||
|
||||
-- Use f2 to rename symbol (arc) - 2024-10-02
|
||||
vim.keymap.set('n', '<F2>', function () vim.lsp.buf.rename() end)
|
||||
-------------------------------------------------------------------------------
|
||||
------------------------------------------------------------------------------
|
||||
--
|
||||
-- autocommands
|
||||
--
|
||||
@@ -347,7 +347,8 @@ require("lazy").setup({
|
||||
{
|
||||
'ggandor/leap.nvim',
|
||||
config = function()
|
||||
require('leap').create_default_mappings()
|
||||
vim.keymap.set({'n', 'x', 'o'}, 's', '<Plug>(leap)')
|
||||
vim.keymap.set('n', 'S', '<Plug>(leap-from-window)')
|
||||
end
|
||||
},
|
||||
-- better %
|
||||
@@ -417,6 +418,8 @@ require("lazy").setup({
|
||||
},
|
||||
checkOnSave = {
|
||||
enable = true,
|
||||
features = "all",
|
||||
command = "clippy"
|
||||
},
|
||||
check = {
|
||||
command = "clippy"
|
||||
@@ -441,11 +444,14 @@ require("lazy").setup({
|
||||
if vim.fn.executable('clangd') == 1 then
|
||||
vim.lsp.enable('clangd')
|
||||
end
|
||||
|
||||
|
||||
-- Javascript
|
||||
if vim.fn.executable('biome') == 1 then
|
||||
vim.lsp.enable('biome')
|
||||
end
|
||||
vim.lsp.enable("ts_ls")
|
||||
|
||||
-- Svelte
|
||||
vim.lsp.enable("svelte")
|
||||
-- Lua
|
||||
vim.lsp.enable('lua_ls')
|
||||
|
||||
-- Global mappings.
|
||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||
@@ -568,11 +574,6 @@ require("lazy").setup({
|
||||
'hashivim/vim-terraform',
|
||||
ft = { "hcl" },
|
||||
},
|
||||
-- svelte
|
||||
{
|
||||
'evanleck/vim-svelte',
|
||||
ft = { "svelte" },
|
||||
},
|
||||
-- toml
|
||||
'cespare/vim-toml',
|
||||
-- yaml
|
||||
@@ -615,16 +616,20 @@ require("lazy").setup({
|
||||
vim.g.vim_markdown_auto_insert_bullets = 0
|
||||
end
|
||||
},
|
||||
-- Typescript
|
||||
{
|
||||
'tree-sitter/tree-sitter-typescript',
|
||||
ft = { "typescript", "javascript" },
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- Hypothetically makes hover work on hover - arc, aug 6, 2025
|
||||
-- Commented out because it prevents me from looking at errors, aug 7:
|
||||
-- vim.api.nvim_create_autocmd({"CursorHold", "CursorHoldI"}, {
|
||||
-- callback = function()
|
||||
-- -- Check if an LSP client is attached to the current buffer
|
||||
-- if vim.lsp.buf_is_attached(0) then
|
||||
-- vim.lsp.buf.hover()
|
||||
-- end
|
||||
-- end,
|
||||
-- desc = "Show LSP hover on cursor hold",
|
||||
-- })
|
||||
|
||||
--[[
|
||||
|
||||
leftover things from init.vim that i may still end up wanting
|
||||
|
||||
Reference in New Issue
Block a user