Nvim: use oil instead of nvim-tree, add screensaver

This commit is contained in:
Robert Kmieć
2024-03-29 09:25:49 +01:00
parent 157d72fe33
commit e67379b132
9 changed files with 52 additions and 7 deletions

View File

@@ -129,3 +129,5 @@ vim.api.nvim_create_autocmd({'UIEnter'}, {
})
end
})
vim.g.loaded_perl_provider = 0

View File

@@ -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')

View File

@@ -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
}

View File

@@ -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' },

View File

@@ -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
}

View 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" })
}

View File

@@ -0,0 +1,5 @@
return {
'amitds1997/remote-nvim.nvim',
config = true,
enabled = false
}

View 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
},
}
}

View File

@@ -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
}