Nvim: use oil instead of nvim-tree, add screensaver
This commit is contained in:
@@ -94,7 +94,8 @@ return {
|
||||
{
|
||||
'rcarriga/nvim-dap-ui',
|
||||
dependencies = {
|
||||
'mfussenegger/nvim-dap'
|
||||
'mfussenegger/nvim-dap',
|
||||
'nvim-neotest/nvim-nio'
|
||||
},
|
||||
config = function()
|
||||
local ui = require('dapui')
|
||||
|
||||
@@ -30,5 +30,6 @@ return {
|
||||
tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
|
||||
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp" }, -- render image files as images when opened
|
||||
})
|
||||
end
|
||||
end,
|
||||
enabled = false
|
||||
}
|
||||
|
||||
@@ -14,11 +14,12 @@ return {
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
local cmp = require'cmp'
|
||||
local snippy = require'snippy'
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require('snippy').expand_snippet(args.body)
|
||||
snippy.expand_snippet(args.body)
|
||||
end,
|
||||
},
|
||||
window = {
|
||||
@@ -29,11 +30,13 @@ return {
|
||||
ghost_text = true,
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-p>'] = cmp.mapping.select_prev_item(),
|
||||
['<C-n>'] = cmp.mapping.select_next_item(),
|
||||
['<C-u>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
['<CR>'] = cmp.mapping.confirm({ select = false }),
|
||||
['<C-y>'] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
|
||||
@@ -143,5 +143,6 @@ return {
|
||||
}
|
||||
vim.keymap.set('n', '<leader>tt', '<cmd>NvimTreeToggle<cr>', { noremap = true, silent = true})
|
||||
vim.keymap.set('n', '<leader>tf', '<cmd>NvimTreeFindFile<cr>', { noremap = true, silent = true})
|
||||
end
|
||||
end,
|
||||
enabled = false
|
||||
}
|
||||
|
||||
8
.config/nvim/lua/plugins/oil.lua
Normal file
8
.config/nvim/lua/plugins/oil.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
'stevearc/oil.nvim',
|
||||
opts = {
|
||||
delete_to_trash = true,
|
||||
|
||||
},
|
||||
vim.keymap.set("n", "<leader>tt", "<CMD>Oil<CR>", { desc = "Open parent directory" })
|
||||
}
|
||||
5
.config/nvim/lua/plugins/remote.lua
Normal file
5
.config/nvim/lua/plugins/remote.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
'amitds1997/remote-nvim.nvim',
|
||||
config = true,
|
||||
enabled = false
|
||||
}
|
||||
25
.config/nvim/lua/plugins/screensaver.lua
Normal file
25
.config/nvim/lua/plugins/screensaver.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
return {
|
||||
'tamton-aquib/zone.nvim',
|
||||
opts = {
|
||||
style = "treadmill",
|
||||
after = 30, -- Idle timeout
|
||||
exclude_filetypes = { "TelescopePrompt", "NvimTree", "neo-tree", "dashboard", "lazy" },
|
||||
-- More options to come later
|
||||
|
||||
treadmill = {
|
||||
direction = "left",
|
||||
headache = true,
|
||||
tick_time = 40, -- Lower, the faster
|
||||
-- Opts for Treadmill style
|
||||
},
|
||||
epilepsy = {
|
||||
stage = "aura", -- "aura" or "ictal"
|
||||
tick_time = 100,
|
||||
},
|
||||
dvd = {
|
||||
-- text = {"line1", "line2", "line3", "etc"}
|
||||
tick_time = 100,
|
||||
-- Opts for Dvd style
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -55,6 +55,5 @@ return {
|
||||
-- other
|
||||
-- map('n', '<leader>s', '<cmd>lua require('telescope').extensions.ultisnips.ultisnips()<cr>, def)
|
||||
map('n', '<leader>u', '<cmd>lua require("telescope").extensions.undo.undo()<cr>', def)
|
||||
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user