update
This commit is contained in:
parent
34e7d29aa7
commit
c225ecda9a
8 changed files with 201 additions and 48 deletions
12
lua/custom/plugins/copilot.lua
Normal file
12
lua/custom/plugins/copilot.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
"github/copilot.vim",
|
||||
init = function()
|
||||
vim.keymap.set('i', '<C-J>', 'copilot#Accept("\\<CR>")', {
|
||||
expr = true,
|
||||
replace_keycodes = false
|
||||
})
|
||||
vim.g.copilot_no_tab_map = true
|
||||
end
|
||||
|
||||
-- "zbirenbaum/copilot.lua",
|
||||
}
|
||||
8
lua/custom/plugins/docker.lua
Normal file
8
lua/custom/plugins/docker.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
"jamestthompson3/nvim-remote-containers",
|
||||
-- set statusline+=%#Container#%{g:currentContainer}
|
||||
|
||||
init = function()
|
||||
vim.cmd [[set statusline+=%#Container#%{g:currentContainer}]]
|
||||
end
|
||||
}
|
||||
24
lua/custom/plugins/lean.lua
Normal file
24
lua/custom/plugins/lean.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
'Julian/lean.nvim',
|
||||
event = { 'BufReadPre *.lean', 'BufNewFile *.lean' },
|
||||
|
||||
dependencies = {
|
||||
'neovim/nvim-lspconfig',
|
||||
'nvim-lua/plenary.nvim',
|
||||
|
||||
-- optional dependencies:
|
||||
|
||||
-- a completion engine
|
||||
-- hrsh7th/nvim-cmp or Saghen/blink.cmp are popular choices
|
||||
|
||||
-- 'nvim-telescope/telescope.nvim', -- for 2 Lean-specific pickers
|
||||
-- 'andymass/vim-matchup', -- for enhanced % motion behavior
|
||||
-- 'andrewradev/switch.vim', -- for switch support
|
||||
-- 'tomtom/tcomment_vim', -- for commenting
|
||||
},
|
||||
|
||||
---@type lean.Config
|
||||
opts = { -- see below for full configuration options
|
||||
mappings = true,
|
||||
}
|
||||
}
|
||||
23
lua/custom/plugins/neoscroll.lua
Normal file
23
lua/custom/plugins/neoscroll.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
return {
|
||||
"karb94/neoscroll.nvim",
|
||||
opts = {
|
||||
mappings = { -- Keys to be mapped to their corresponding default scrolling animation
|
||||
'<C-u>', '<C-d>',
|
||||
'<C-b>', '<C-f>',
|
||||
'<C-y>', '<C-e>',
|
||||
'zt', 'zz', 'zb',
|
||||
},
|
||||
hide_cursor = true, -- Hide cursor while scrolling
|
||||
stop_eof = true, -- Stop at <EOF> when scrolling downwards
|
||||
respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
|
||||
cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
|
||||
duration_multiplier = 2.0, -- Global duration multiplier
|
||||
easing = 'linear', -- Default easing function
|
||||
pre_hook = nil, -- Function to run before the scrolling animation starts
|
||||
post_hook = nil, -- Function to run after the scrolling animation ends
|
||||
performance_mode = false, -- Disable "Performance Mode" on all buffers.
|
||||
ignored_events = { -- Events ignored while scrolling
|
||||
'WinScrolled', 'CursorMoved'
|
||||
}
|
||||
},
|
||||
}
|
||||
21
lua/custom/plugins/toggleterm.lua
Normal file
21
lua/custom/plugins/toggleterm.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
"akinsho/toggleterm.nvim",
|
||||
version = "*",
|
||||
-- config = true,
|
||||
opts = {
|
||||
shade_terminals = false,
|
||||
}
|
||||
-- set_terminal_keymaps = function()
|
||||
-- local opts = {buffer = 0}
|
||||
-- vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts)
|
||||
-- vim.keymap.set('t', 'jk', [[<C-\><C-n>]], opts)
|
||||
-- vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-k>', [[<Cmd>wincmd k<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-l>', [[<Cmd>wincmd l<CR>]], opts)
|
||||
-- vim.keymap.set('t', '<C-w>', [[<C-\><C-n><C-w>]], opts)
|
||||
-- end
|
||||
--
|
||||
-- -- if you only want these mappings for toggle term use term://*toggleterm#* instead
|
||||
-- vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
|
||||
}
|
||||
9
lua/custom/plugins/vimtex.lua
Normal file
9
lua/custom/plugins/vimtex.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"lervag/vimtex",
|
||||
lazy = false, -- we don't want to lazy load VimTeX
|
||||
-- tag = "v2.15", -- uncomment to pin to a specific release
|
||||
init = function()
|
||||
-- VimTeX configuration goes here, e.g.
|
||||
vim.g.vimtex_view_method = "skim"
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue