This repository was archived by the owner on Jul 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.lua
More file actions
103 lines (80 loc) · 2.12 KB
/
plugins.lua
File metadata and controls
103 lines (80 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
local M = {}
M["max397574/better-escape.nvim"] = {
event = "InsertEnter",
config = function()
require("better_escape").setup()
end,
}
M["tpope/vim-surround"] = {}
M["neovim/nvim-lspconfig"] = {
config = function()
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities
local lspconfig = require "lspconfig"
local servers = { "html", "cssls", "svelte", "tsserver", "emmet_ls", "gopls", "marksman", "rust_analyzer", "tailwindcss" }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
}
end
end,
}
M["jose-elias-alvarez/null-ls.nvim"] = {
after = "nvim-lspconfig",
config = function()
local present, null_ls = pcall(require, "null-ls")
if not present then
return
end
local b = null_ls.builtins
local sources = {
-- webdev stuff
b.formatting.prettier.with {
extra_filetypes = { "svelte", "md", "json" },
},
b.formatting.gofumpt,
-- b.formatting.goimports_reviser,
b.formatting.goimports,
b.formatting.stylua,
b.formatting.rustfmt.with {
filetype = "rust",
},
}
null_ls.setup {
debug = true,
sources = sources,
}
end,
}
M["folke/which-key.nvim"] = {
disable = false,
}
M["ggandor/leap.nvim"] = {
config = function()
local leap = require "leap"
leap.add_default_mappings()
end,
}
M["nvim-treesitter/nvim-treesitter-context"] = {
after = "nvim-treesitter",
}
M["nvim-treesitter/nvim-treesitter"] = {
override_options = function()
return {
ensure_installed = "all",
}
end,
}
M["terrastruct/d2-vim"] = {}
M["mbbill/undotree"] = {}
M["ThePrimeagen/harpoon"] = {}
M["github/copilot.vim"] = {
config = function()
-- vim.api.nvim_exec 'imap <silent><script><expr> <C-o> copilot#Accept("\\<CR>")'
-- vim.api.nvim_exec "let g:copilot_no_tab_map = v:true"
vim.cmd 'imap <silent><script><expr> <C-o> copilot#Accept("\\<CR>")'
vim.cmd "let g:copilot_no_tab_map = v:true"
end,
}
return M