seg 12 ago 2024 13:12:32 -03
This commit is contained in:
parent
b90f82cfb0
commit
a5c19ddd8b
2
init.lua
2
init.lua
|
@ -911,6 +911,6 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd.colorscheme 'catppuccin-latte'
|
vim.cmd.colorscheme 'cyberdream'
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
@ -127,22 +127,23 @@ return {
|
||||||
harpoon:setup()
|
harpoon:setup()
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>a', function()
|
vim.keymap.set('n', '<leader>a', function()
|
||||||
harpoon:list():append()
|
harpoon:list():add()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-e>', function()
|
vim.keymap.set('n', '<C-e>', function()
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||||
end)
|
end)
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-h>', function()
|
vim.keymap.set('n', '<C-1>', function()
|
||||||
harpoon:list():select(1)
|
harpoon:list():select(1)
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<C-j>', function()
|
vim.keymap.set('n', '<C-2>', function()
|
||||||
harpoon:list():select(2)
|
harpoon:list():select(2)
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<C-k>', function()
|
vim.keymap.set('n', '<C-3>', function()
|
||||||
harpoon:list():select(3)
|
harpoon:list():select(3)
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<C-l>', function()
|
vim.keymap.set('n', '<C-4>', function()
|
||||||
harpoon:list():select(4)
|
harpoon:list():select(4)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
@ -153,6 +154,28 @@ return {
|
||||||
vim.keymap.set('n', '<C-S-N>', function()
|
vim.keymap.set('n', '<C-S-N>', function()
|
||||||
harpoon:list():next()
|
harpoon:list():next()
|
||||||
end)
|
end)
|
||||||
|
local conf = require('telescope.config').values
|
||||||
|
local function toggle_telescope(harpoon_files)
|
||||||
|
local file_paths = {}
|
||||||
|
for _, item in ipairs(harpoon_files.items) do
|
||||||
|
table.insert(file_paths, item.value)
|
||||||
|
end
|
||||||
|
|
||||||
|
require('telescope.pickers')
|
||||||
|
.new({}, {
|
||||||
|
prompt_title = 'Harpoon',
|
||||||
|
finder = require('telescope.finders').new_table {
|
||||||
|
results = file_paths,
|
||||||
|
},
|
||||||
|
previewer = conf.file_previewer {},
|
||||||
|
sorter = conf.generic_sorter {},
|
||||||
|
})
|
||||||
|
:find()
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>se', function()
|
||||||
|
toggle_telescope(harpoon:list())
|
||||||
|
end, { desc = 'Open harpoon window' })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -162,7 +185,8 @@ return {
|
||||||
event = 'VimEnter',
|
event = 'VimEnter',
|
||||||
config = function()
|
config = function()
|
||||||
require('catppuccin').setup {
|
require('catppuccin').setup {
|
||||||
transparent_background = false,
|
transparent_background = true,
|
||||||
|
term_colors = true,
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
@ -191,77 +215,74 @@ return {
|
||||||
vim.fn['mkdp#util#install']()
|
vim.fn['mkdp#util#install']()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- {
|
{
|
||||||
-- 'nvim-neotest/neotest',
|
'nvim-neotest/neotest',
|
||||||
-- dependencies = {
|
dependencies = {
|
||||||
-- 'nvim-neotest/nvim-nio',
|
'nvim-neotest/nvim-nio',
|
||||||
-- 'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
-- 'nvim-neotest/neotest-go',
|
'nvim-neotest/neotest-go',
|
||||||
-- 'nvim-neotest/neotest-jest',
|
'nvim-neotest/neotest-jest',
|
||||||
-- 'marilari88/neotest-vitest',
|
'marilari88/neotest-vitest',
|
||||||
-- 'olimorris/neotest-rspec',
|
'olimorris/neotest-rspec',
|
||||||
-- 'antoinemadec/FixCursorHold.nvim',
|
'antoinemadec/FixCursorHold.nvim',
|
||||||
-- 'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
-- },
|
},
|
||||||
-- config = function()
|
config = function()
|
||||||
-- local neotest_ns = vim.api.nvim_create_namespace 'neotest'
|
local neotest_ns = vim.api.nvim_create_namespace 'neotest'
|
||||||
-- vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
-- virtual_text = {
|
virtual_text = {
|
||||||
-- format = function(diagnostic)
|
format = function(diagnostic)
|
||||||
-- local message = diagnostic.message:gsub('\n', ' '):gsub('\t', ' '):gsub('%s+', ' '):gsub('^%s+', '')
|
local message = diagnostic.message:gsub('\n', ' '):gsub('\t', ' '):gsub('%s+', ' '):gsub('^%s+', '')
|
||||||
-- return message
|
return message
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
-- }, neotest_ns)
|
}, neotest_ns)
|
||||||
-- require('neotest').setup {
|
require('neotest').setup {
|
||||||
-- adapters = {
|
adapters = {
|
||||||
-- require 'neotest-vitest' {
|
require 'neotest-vitest' {
|
||||||
-- filter_dir = function(name, rel_path, root)
|
filter_dir = function(name, rel_path, root)
|
||||||
-- return name ~= 'node_modules'
|
return name ~= 'node_modules'
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
-- require 'neotest-jest' {
|
require 'neotest-jest' {
|
||||||
-- jestCommand = 'npm test --',
|
jestCommand = 'npm test --',
|
||||||
-- jestConfigFile = 'custom.jest.config.ts',
|
jestConfigFile = 'custom.jest.config.ts',
|
||||||
-- env = { CI = true },
|
env = { CI = true },
|
||||||
-- cwd = function(path)
|
cwd = function(path)
|
||||||
-- return vim.fn.getcwd()
|
return vim.fn.getcwd()
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
-- require 'neotest-go' {
|
require 'neotest-go' {
|
||||||
-- recursive_run = true,
|
recursive_run = true,
|
||||||
-- experimental = {
|
experimental = {
|
||||||
-- test_table = true,
|
test_table = true,
|
||||||
-- },
|
},
|
||||||
-- args = { '-v', '-count=1' },
|
args = { '-v', '-count=1' },
|
||||||
-- },
|
},
|
||||||
-- require 'neotest-rspec' {
|
require 'neotest-rspec' {
|
||||||
-- rspec_cmd = function()
|
rspec_cmd = function()
|
||||||
-- return vim.tbl_flatten {
|
return vim.tbl_flatten {
|
||||||
-- 'bundle',
|
'bundle',
|
||||||
-- 'exec',
|
'exec',
|
||||||
-- 'rspec',
|
'rspec',
|
||||||
-- }
|
}
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
-- },
|
},
|
||||||
-- }
|
}
|
||||||
--
|
|
||||||
-- vim.keymap.set('n', '<leader>fnn', function()
|
vim.keymap.set('n', '<M-t>n', function()
|
||||||
-- require('neotest').run.run()
|
require('neotest').run.run()
|
||||||
-- end, { desc = 'Test Nearest' })
|
end, { desc = 'Test Nearest' })
|
||||||
-- vim.keymap.set('n', '<leader>fnf', function()
|
vim.keymap.set('n', '<M-t>f', function()
|
||||||
-- require('neotest').run.run(vim.fn.expand '%')
|
require('neotest').run.run(vim.fn.expand '%')
|
||||||
-- end, { desc = 'Test File' })
|
end, { desc = 'Test File' })
|
||||||
-- vim.keymap.set('n', '<leader>fns', function()
|
vim.keymap.set('n', '<M-t>p', function()
|
||||||
-- require('neotest').run.run(vim.fn.getcwd())
|
require('neotest').output_panel.toggle()
|
||||||
-- end, { desc = 'Test Suite' })
|
require('neotest').summary.toggle()
|
||||||
-- vim.keymap.set('n', '<leader>fnp', function()
|
end, { desc = 'Toggle Neotest Panel' })
|
||||||
-- require('neotest').output_panel.toggle()
|
end,
|
||||||
-- require('neotest').summary.toggle()
|
},
|
||||||
-- end, { desc = 'Toggle Neotest Panel' })
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
{
|
{
|
||||||
'vim-test/vim-test',
|
'vim-test/vim-test',
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -313,7 +334,7 @@ return {
|
||||||
hide_during_completion = false,
|
hide_during_completion = false,
|
||||||
debounce = 75,
|
debounce = 75,
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = '<M-;>',
|
accept = '<M-y>',
|
||||||
accept_word = false,
|
accept_word = false,
|
||||||
accept_line = false,
|
accept_line = false,
|
||||||
next = '<M-]>',
|
next = '<M-]>',
|
||||||
|
@ -611,6 +632,27 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'scottmckendry/cyberdream.nvim',
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
require('cyberdream').setup {
|
||||||
|
transparent = true,
|
||||||
|
-- Options will go here
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'xiyaowong/nvim-transparent',
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'pappasam/papercolor-theme-slim',
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'sainnhe/everforest',
|
'sainnhe/everforest',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
|
Loading…
Reference in New Issue