Closed sebastianafry closed 3 years ago
Please post detailed steps and a minimal configuration to reproduce your issue.
config/plugin-manager.lua
local user_packadd_path = "faerryn/user.nvim/default/default/default/default"
local user_install_path = vim.fn.stdpath("data").."/site/pack/user/opt/"..user_packadd_path
if vim.fn.isdirectory(user_install_path) == 0 then
os.execute("git clone --quiet --depth 1 https://github.com/faerryn/user.nvim.git "..vim.fn.shellescape(user_install_path))
end
vim.api.nvim_command("packadd "..vim.fn.fnameescape(user_packadd_path))
local user = require("user")
user.setup({ parallel = true })
local plugins = require'plugins'
for _,plugin in ipairs(plugins) do
user.use(plugin)
end
-- since we are using parallel, we *must* call user.flush()
user.flush()
plugins.lua
return {
'faerryn/user.nvim',
'nvim-lua/plenary.nvim',
{ 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' },
-- LSP
'neovim/nvim-lspconfig',
'williamboman/nvim-lsp-installer',
-- 'folke/lsp-colors.nvim',
'glepnir/lspsaga.nvim',
-- 'onsails/lspkind-nvim',
-- 'jose-elias-alvarez/nvim-lsp-ts-utils',
-- {'neoclide/coc.nvim', branch = 'release'},
-- AUTOCOMPLETE
'hrsh7th/cmp-path',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip',
'hrsh7th/nvim-cmp',
-- USEFUL
'nvim-lua/popup.nvim',
-- fuzzy find,
'nvim-telescope/telescope.nvim',
-- ICONS,
'kyazdani42/nvim-web-devicons',
-- COMMENTS
'b3nj5m1n/kommentary',
-- 'suy/vim-context-commentstring',
-- KEY HELPER POPUP
'folke/which-key.nvim',
-- AUTO CLOSING BRACKETS
{'windwp/nvim-autopairs', config = function() require('nvim-autopairs').setup() end },
-- DIAGNOSTICS WINDOW
{ 'folke/trouble.nvim', config = function() require('trouble').setup {auto_close = true} end },
-- COMMENT HIGHLIGHTING
{
'folke/todo-comments.nvim',
config = function()
require('todo-comments').setup {}
end
},
-- FILE EXPLORER
{
'kyazdani42/nvim-tree.lua',
requires = 'kyazdani42/nvim-web-devicons',
config = function()
require'nvim-tree'.setup {
view = {
auto_resize = true
},
diagnostics = {
enable = true
},
auto_close = true,
}
end
},
-- GIT
'f-person/git-blame.nvim',
{
'akinsho/toggleterm.nvim',
config = function() require'toggleterm'.setup{} end
},
-- THEME / SYNTAX
{'dracula/vim', config = function() vim.cmd[[colorscheme dracula]] end},
'nvim-lualine/lualine.nvim',
-- { 'folke/tokyonight.nvim', as = 'tokyonight', config = function() vim.cmd[[colorscheme tokyonight]] end },
}
init.lua
require('config.plugin-manager')
nvim/
├─ lua/
│ ├─ plugins.lua
│ ├─ config/
│ │ ├─ plugin-manager.lua
├─ init.lua
I tried one more time with disabling all LSP, autocomplete and util type plugins but the problem persisted. I used packer before i used this plugin and didn't have any problems so I went back to it "just to see" and havn't had any issues since.
I can type A<CR>
without issue while using your configuration. This creates a newline much like typing o
.
I know what the command does, the point is that it would then sometimes cause the entire nvim client to freeze.
Ie i opened a file with Telescope find_files
and do GA<CR>
to start typing a new function at the end of the document and neovim would freeze.
I seem to be unable to reproduce your issue (Telescope find_files
and GA<CR>
work fine for me).
My neovim was crashing when using
A<CR>
command and it was resolved by switching over to Packer.Not sure what was causing it but my guess would be that it was related to
parallel
When the crash freeze happened my neovim spiked in CPU usage and wouldn't take any input. I had to close the process manually or force exit the terminal.
I wish I could attach a log but when I used
it didnt show anything except for the "second to last" command used and it's evaluations.