dotfiles-public
dotfiles-public copied to clipboard
react autocomplate doesn't work
Auto-suggest no longer works when writing a React project. When I first started using it using these settings, it worked normally, but it doesn't work anymore. For example, when I type useState, it does not import automatically.
Try installing a LSP server for your code language (js, html, css), maybe that helps
@zhoommer can you try to see whether your repo has .git folder? because this LSP settings will look for .git folder, if you don't have git init, LSP suggestions will not work.
root_dir = function(...) return require("lspconfig.util").root_pattern(".git")(...) end,
Just remove the root_dir
line and lsp server will use the default setting