feat: добавлены hotkeys для перехода между файлами и дебаггингом, добавлен конфиг для работы с локальным конфигом prettier для веб проектов, плюс добавлены сеттинг подсказек при нажатии на tab
This commit is contained in:
parent
b8653f6ed4
commit
148096e607
10 changed files with 304 additions and 128 deletions
27
lua/custom/plugins/go.lua
Normal file
27
lua/custom/plugins/go.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue