delete old stuff
This commit is contained in:
		@@ -1,13 +0,0 @@
 | 
			
		||||
-- Autocmds are automatically loaded on the VeryLazy event
 | 
			
		||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
 | 
			
		||||
-- Add any additional autocmds here
 | 
			
		||||
local function open_nvim_tree(data)
 | 
			
		||||
  local directory = vim.fn.isdirectory(data.file) == 1
 | 
			
		||||
  if not directory then
 | 
			
		||||
    return
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  vim.cmd.cd(data.file)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })
 | 
			
		||||
@@ -1,22 +0,0 @@
 | 
			
		||||
-- Keymaps are automatically loaded on the VeryLazy event
 | 
			
		||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
 | 
			
		||||
-- Add any additional keymaps here
 | 
			
		||||
 | 
			
		||||
local function map(mode, lhs, rhs, opts)
 | 
			
		||||
  local keys = require("lazy.core.handler").handlers.keys
 | 
			
		||||
  ---@cast keys LazyKeysHandler
 | 
			
		||||
  -- do not create the keymap if a lazy keys handler exists
 | 
			
		||||
  if not keys.active[keys.parse({ lhs, mode = mode }).id] then
 | 
			
		||||
    opts = opts or {}
 | 
			
		||||
    opts.silent = opts.silent ~= false
 | 
			
		||||
    if opts.remap and not vim.g.vscode then
 | 
			
		||||
      opts.remap = nil
 | 
			
		||||
    end
 | 
			
		||||
    vim.keymap.set(mode, lhs, rhs, opts)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
map("t", "<Esc><Esc>", [[<C-\><C-n>]], {})
 | 
			
		||||
-- map("", "tl", require("lsp_lines").toggle, { desc = "Toggle lsp_lines" })
 | 
			
		||||
map("n", "mgg", ":diffget //2<CR>", {})
 | 
			
		||||
map("n", "mgh", ":diffget //3<CR>", {})
 | 
			
		||||
		Reference in New Issue
	
	Block a user