- lspcofing for html, tsserver and cssls
- null-ls to format JavaScript and TypeScript on save
- github copilot
- zbirenbaum/copilot.lua && zbirenbaum/copilot-cmp to show copilot suggestions
inside the cmp panel (if you don't want to use copilot this way use the
official copilot nvim plugin and override cmp config to not use
Tab
for suggestions or change copilot to use another key combination)
To use copilot
Comment the following lines:
["zbirenbaum/copilot.lua"] = {
event = {"VimEnter"},
config = function()
vim.defer_fn(function()
require("copilot").setup{
cmp = {
enabled = true,
method = "getCompletionsCycling",
}
}
end, 100)
end
},
["zbirenbaum/copilot-cmp"] = {
module = "copilot_cmp",
}
Uncomment the following line:
-- ["github/copilot.vim"] = {},
then :PackerSync
and :Copilot setup
, after set up copilot:
uncomment
--["zbirenbaum/copilot.lua"] = {
-- event = {"VimEnter"},
-- config = function()
-- vim.defer_fn(function()
-- require("copilot").setup{
-- cmp = {
-- enabled = true,
-- method = "getCompletionsCycling",
-- }
-- }
-- end, 100)
-- end
--},
--["zbirenbaum/copilot-cmp"] = {
-- module = "copilot_cmp",
--}
comment
["github/copilot.vim"] = {},
If you want to use the telescope live_grep (A.K.A find a term inside files) you need to install ripgreg, you can install it on a Mac using:
brew install ripgrep
I have the following overrides for nvim-tree:
- show files changes on nvim-tree
- show if a file have change inside a folder
- show files ignore by the .gitignore
- show nvim-tree panel on the right (I don't like my code move when a open the explorer panel)
- always show dot files i.e. .env
- show git icons
By default I use relative number
- Install and config nvim-dap