Initial commit
This commit is contained in:
commit
e7b4be7296
17 changed files with 213 additions and 0 deletions
33
lua/plugins/cmp.lua
Normal file
33
lua/plugins/cmp.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
},
|
||||
opts = function()
|
||||
local cmp = require 'cmp'
|
||||
return {
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
vim.snippet.expand(args.body)
|
||||
end,
|
||||
},
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
['<CR>'] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'buffer' },
|
||||
{ name = 'lazydev', group_index = 0 }
|
||||
}),
|
||||
}
|
||||
end,
|
||||
}
|
||||
}
|
||||
5
lua/plugins/gdb.lua
Normal file
5
lua/plugins/gdb.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
{
|
||||
"sakhnik/nvim-gdb",
|
||||
}
|
||||
}
|
||||
9
lua/plugins/lazydev.lua
Normal file
9
lua/plugins/lazydev.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
{
|
||||
"folke/lazydev.nvim",
|
||||
ft = "lua",
|
||||
opts = {
|
||||
library = {},
|
||||
},
|
||||
}
|
||||
}
|
||||
16
lua/plugins/lsp.lua
Normal file
16
lua/plugins/lsp.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
{
|
||||
'neovim/nvim-lspconfig',
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp"
|
||||
},
|
||||
config = function()
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
local lsps = require 'config.lsp'
|
||||
for lsp, config in pairs(lsps) do
|
||||
vim.lsp.enable(lsp)
|
||||
vim.lsp.config(lsp, config)
|
||||
end
|
||||
end,
|
||||
}
|
||||
}
|
||||
9
lua/plugins/telescope.lua
Normal file
9
lua/plugins/telescope.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
||||
},
|
||||
}
|
||||
}
|
||||
15
lua/plugins/theme.lua
Normal file
15
lua/plugins/theme.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
{
|
||||
'stevedylandev/ansi-nvim',
|
||||
config = function()
|
||||
vim.opt.termguicolors = false
|
||||
vim.cmd [[
|
||||
colorscheme ansi
|
||||
highlight Normal guibg=NONE ctermbg=NONE
|
||||
highlight NonText guibg=NONE ctermbg=NONE
|
||||
highlight EndOfBuffer guibg=NONE ctermbg=NONE
|
||||
highlight CursorLine ctermbg=Black
|
||||
]]
|
||||
end,
|
||||
}
|
||||
}
|
||||
7
lua/plugins/trouble.lua
Normal file
7
lua/plugins/trouble.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
{
|
||||
'folke/trouble.nvim',
|
||||
opts = {},
|
||||
cmd = 'Trouble',
|
||||
}
|
||||
}
|
||||
5
lua/plugins/which.lua
Normal file
5
lua/plugins/which.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue