2022-10-29 18:25:42 +00:00
|
|
|
-- Additional Plugins
|
|
|
|
lvim.plugins = {
|
|
|
|
{ "wakatime/vim-wakatime" },
|
|
|
|
|
|
|
|
-- LSP
|
|
|
|
{
|
|
|
|
-- Tree-like view for symbols in current file using LSP
|
|
|
|
"simrat39/symbols-outline.nvim",
|
|
|
|
config = function()
|
|
|
|
require("symbols-outline").setup {
|
|
|
|
width = 18,
|
|
|
|
autofold_depth = 1,
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
-- Show function signature while typing
|
|
|
|
"ray-x/lsp_signature.nvim",
|
|
|
|
config = function()
|
|
|
|
require("lsp_signature").on_attach()
|
|
|
|
end,
|
|
|
|
event = "BufRead",
|
|
|
|
},
|
|
|
|
|
|
|
|
-- User interface
|
|
|
|
{
|
|
|
|
-- Code minimap for easy orientation in a longer file
|
|
|
|
"wfxr/minimap.vim",
|
|
|
|
run = "cargo install --locked code-minimap",
|
|
|
|
config = function()
|
|
|
|
vim.cmd "let g:minimap_width = 10"
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
|
|
|
|
-- Github copilot for code completion
|
2022-11-07 21:50:23 +00:00
|
|
|
-- {
|
|
|
|
-- "zbirenbaum/copilot.lua",
|
|
|
|
-- event = { "VimEnter" },
|
|
|
|
-- config = function()
|
|
|
|
-- vim.defer_fn(function()
|
|
|
|
-- require("copilot").setup()
|
|
|
|
-- end, 100)
|
|
|
|
-- end,
|
|
|
|
-- },
|
|
|
|
-- { "zbirenbaum/copilot-cmp", after = { "copilot.lua", "nvim-cmp" } },
|
2022-10-29 18:25:42 +00:00
|
|
|
|
|
|
|
--
|
|
|
|
{ "jasonccox/vim-wayland-clipboard" },
|
|
|
|
|
|
|
|
-- Yuck.vim (eww configuration language support)
|
|
|
|
{ "elkowar/yuck.vim" },
|
|
|
|
|
|
|
|
-- Treesitter
|
|
|
|
-- {
|
|
|
|
-- -- Colorize matching parenthesis using treesitter
|
|
|
|
-- "p00f/nvim-ts-rainbow",
|
|
|
|
-- },
|
|
|
|
{
|
|
|
|
-- Treesitter information shown directly in neovim
|
|
|
|
"nvim-treesitter/playground",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
-- Alwats show class/function name we're in
|
|
|
|
"romgrk/nvim-treesitter-context",
|
|
|
|
config = function()
|
|
|
|
require("treesitter-context").setup {
|
|
|
|
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
|
|
|
throttle = true, -- Throttles plugin updates (may improve performance)
|
|
|
|
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
|
|
|
|
patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries.
|
|
|
|
-- For all filetypes
|
|
|
|
-- Note that setting an entry here replaces all other patterns for this entry.
|
|
|
|
-- By setting the 'default' entry below, you can control which nodes you want to
|
|
|
|
-- appear in the context window.
|
|
|
|
default = {
|
|
|
|
"class",
|
|
|
|
"function",
|
|
|
|
"method",
|
|
|
|
"while",
|
|
|
|
"for",
|
|
|
|
"if",
|
|
|
|
"switch",
|
|
|
|
"case",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Register copilot as cmp source
|
2022-11-07 21:50:23 +00:00
|
|
|
-- lvim.builtin.cmp.formatting.source_names["copilot"] = "(Copilot)"
|
|
|
|
-- table.insert(lvim.builtin.cmp.sources, 1, { name = "copilot" })
|