feat: add auto-save plugin with toggle mapping;
feat: windsurf is back; feat: add html snippet for boilerplate; refactor: lsp config due to deprecation; refactor: update hop mappings to current-line only with offsets; chore: adjust base02 color in kolyan theme
This commit is contained in:
@@ -14,10 +14,13 @@ local base46 = require "base46"
|
||||
vim.keymap.set("n", "<leader>tt", base46.toggle_transparency)
|
||||
|
||||
-- Toggle wrap
|
||||
vim.keymap.set("n", "<leader>ww", function ()
|
||||
vim.keymap.set("n", "<leader>tw", function ()
|
||||
vim.wo.wrap = not vim.wo.wrap
|
||||
end)
|
||||
|
||||
-- Togle autosave
|
||||
vim.api.nvim_set_keymap("n", "<leader>ta", ":ASToggle<CR>", { desc = "Autosave Toggle" })
|
||||
|
||||
-- Debbuger binds
|
||||
-- local dap = require "dap"
|
||||
-- vim.keymap.set("n", "<space>pb", dap.toggle_breakpoint, { desc = "Dap Toggle breakpoint" })
|
||||
@@ -96,17 +99,17 @@ map("t", "<C-Esc>", "<C-\\><C-N>", { desc = "terminal escape terminal mode" })
|
||||
local hop = require('hop')
|
||||
local directions = require('hop.hint').HintDirection
|
||||
vim.keymap.set('', 'f', function()
|
||||
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false })
|
||||
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true })
|
||||
end, {remap=true})
|
||||
vim.keymap.set('', 'F', function()
|
||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false })
|
||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true })
|
||||
end, {remap=true})
|
||||
vim.keymap.set('', 't', function()
|
||||
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true, hint_offset = -1 })
|
||||
end, {remap=true})
|
||||
vim.keymap.set('', 'T', function()
|
||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true, hint_offset = 1 })
|
||||
end, {remap=true})
|
||||
-- vim.keymap.set('', 't', function()
|
||||
-- hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false, hint_offset = -1 })
|
||||
-- end, {remap=true})
|
||||
-- vim.keymap.set('', 'T', function()
|
||||
-- hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false, hint_offset = 1 })
|
||||
-- end, {remap=true})
|
||||
|
||||
-- themes
|
||||
vim.keymap.set("n", "<leader>tv", function() require('vscode').load('dark') end)
|
||||
@@ -116,6 +119,9 @@ vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, { desc = "Lsp Rename" })
|
||||
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, { desc = "Lsp Code Action" })
|
||||
vim.keymap.set("n", "<leader>ci", vim.lsp.buf.implementation, { desc = "Lsp Implementation" })
|
||||
|
||||
-- load Windsurf
|
||||
vim.keymap.set("n", "<leader>ws", function () require("windsurf").enabled = true end, { desc = "Windsurf" })
|
||||
|
||||
-- cdproj
|
||||
vim.keymap.set('n', '<leader>cp', '<cmd>CdProject<cr>', { desc = 'Project Switch directory directory' })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user