feat: добавлены hotkeys для перехода между файлами и дебаггингом, добавлен конфиг для работы с локальным конфигом prettier для веб проектов, плюс добавлены сеттинг подсказек при нажатии на tab

This commit is contained in:
RahatMelsov 2025-12-02 16:16:26 +05:00
parent b8653f6ed4
commit 148096e607
10 changed files with 304 additions and 128 deletions

27
lua/custom/plugins/go.lua Normal file
View file

@ -0,0 +1,27 @@
return {
{
'ray-x/go.nvim',
ft = { 'go', 'gomod' },
dependencies = {
'ray-x/guihua.lua',
'nvim-treesitter/nvim-treesitter',
'neovim/nvim-lspconfig',
},
config = function()
require('go').setup {
lsp_cfg = true,
lsp_on_attach = function(client, bufnr)
if client.server_capabilities.documentFormattingProvider then
vim.api.nvim_create_autocmd('BufWritePre', {
group = vim.api.nvim_create_augroup('GoFormat', { clear = true }),
buffer = bufnr,
callback = function()
vim.lsp.buf.format { async = false }
end,
})
end
end,
}
end,
},
}