Testing snacks pluggin

This commit is contained in:
pgolik 2025-05-06 05:30:26 +02:00
parent d02762b7c9
commit 9ce05d9a75
5 changed files with 560 additions and 47 deletions

View file

@ -3,7 +3,6 @@
-- Set highlight on search, but clear on pressing <Esc> in normal mode
vim.keymap.set('n', '<leader>mt', '<cmd>NvimTreeFocus<CR>')
vim.keymap.set('n', '<C-o>', '<cmd>ClangdSwitchSourceHeader<CR>', { desc = 'Swith to source/header file' })
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' })

View file

@ -1,5 +0,0 @@
-- You can add your own plugins here or in other files in this directory!
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {}

View file

@ -0,0 +1,17 @@
-- You can add your own plugins here or in other files in this directory!
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {
{
'TabbyML/vim-tabby',
lazy = false,
dependencies = {
'neovim/nvim-lspconfig',
},
init = function()
vim.g.tabby_agent_start_command = { 'npx', 'tabby-agent', '--stdio' }
vim.g.tabby_inline_completion_trigger = 'auto'
end,
},
}

View file

@ -9,16 +9,6 @@ vim.opt.encoding = 'UTF-8'
vim.opt.wrap = false
vim.opt.termguicolors = true
vim.opt.autoindent = true
vim.api.nvim_create_augroup('neotree', {})
vim.api.nvim_create_autocmd('UiEnter', {
desc = 'Open Neotree automatically',
group = 'neotree',
callback = function()
if vim.fn.argc() == 0 then
vim.cmd 'NvimTreeToggle'
end
end,
})
vim.opt.number = true
vim.opt.mouse = 'a'
vim.opt.showmode = false