nvim: Reorganization - moved all config files to one folder (minus the init.lua)
This commit is contained in:
parent
9161bd14d9
commit
5927e8c247
5 changed files with 17 additions and 17 deletions
|
@ -1,9 +1,9 @@
|
||||||
-- Blake's neovim rc file
|
-- Blake's neovim rc file
|
||||||
|
|
||||||
-- basic settings: ~/.config/nvim/lua/settings.lua
|
-- basic settings: ~/.config/nvim/lua/blake/settings.lua
|
||||||
require('settings')
|
require('blake.settings')
|
||||||
-- plugins and plugin settings: ~/.config/nvim/lua/plugins.lua
|
-- plugins and plugin settings: ~/.config/nvim/lua/blake/plugins.lua
|
||||||
require('plugins')
|
require('blake.plugins')
|
||||||
|
|
||||||
-- TODO:
|
-- TODO:
|
||||||
--
|
--
|
||||||
|
|
|
@ -18,7 +18,7 @@ return require('packer').startup(function()
|
||||||
use { -- syntax highlighting
|
use { -- syntax highlighting
|
||||||
'nvim-treesitter/nvim-treesitter', run = ':TSUpdate',
|
'nvim-treesitter/nvim-treesitter', run = ':TSUpdate',
|
||||||
config = function()
|
config = function()
|
||||||
require("lsp").treesitter()
|
require("blake.lsp").treesitter()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use { -- onedark theme
|
use { -- onedark theme
|
||||||
|
@ -38,7 +38,7 @@ return require('packer').startup(function()
|
||||||
"kabouzeid/nvim-lspinstall",
|
"kabouzeid/nvim-lspinstall",
|
||||||
-- opt = true,
|
-- opt = true,
|
||||||
-- setup = function()
|
-- setup = function()
|
||||||
-- require("other").packer_lazy_load "nvim-lspinstall"
|
-- require("blake.other").packer_lazy_load "nvim-lspinstall"
|
||||||
-- -- reload the current file so lsp actually starts for it
|
-- -- reload the current file so lsp actually starts for it
|
||||||
-- vim.defer_fn(function()
|
-- vim.defer_fn(function()
|
||||||
-- vim.cmd "silent! e %"
|
-- vim.cmd "silent! e %"
|
||||||
|
@ -48,20 +48,20 @@ return require('packer').startup(function()
|
||||||
use { -- DAP: Debug Adapter Protocol
|
use { -- DAP: Debug Adapter Protocol
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
config = function()
|
config = function()
|
||||||
require("lsp").dap()
|
require("blake.lsp").dap()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- DAP adapter installer
|
use { -- DAP adapter installer
|
||||||
"Pocco81/DAPInstall.nvim",
|
"Pocco81/DAPInstall.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("lsp").dapinstall()
|
require("blake.lsp").dapinstall()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- Default LSP configs
|
use { -- Default LSP configs
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
after = "nvim-lspinstall",
|
after = "nvim-lspinstall",
|
||||||
config = function()
|
config = function()
|
||||||
require("lsp").lspconfig()
|
require("blake.lsp").lspconfig()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- Icons for each entry in the completion menu
|
use { -- Icons for each entry in the completion menu
|
||||||
|
@ -70,7 +70,7 @@ return require('packer').startup(function()
|
||||||
use { -- compe
|
use { -- compe
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
config = function()
|
config = function()
|
||||||
require('lsp').cmp()
|
require('blake.lsp').cmp()
|
||||||
end,
|
end,
|
||||||
requires = { -- nvim-cmp sources
|
requires = { -- nvim-cmp sources
|
||||||
-- "saadparwaiz1/cmp_luasnip", --luasnip integration
|
-- "saadparwaiz1/cmp_luasnip", --luasnip integration
|
||||||
|
@ -93,13 +93,13 @@ return require('packer').startup(function()
|
||||||
"ray-x/lsp_signature.nvim",
|
"ray-x/lsp_signature.nvim",
|
||||||
after = "nvim-lspconfig",
|
after = "nvim-lspconfig",
|
||||||
config = function()
|
config = function()
|
||||||
require("lsp").signature()
|
require("blake.lsp").signature()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use { -- Use the % key for more things
|
use { -- Use the % key for more things
|
||||||
"andymass/vim-matchup",
|
"andymass/vim-matchup",
|
||||||
-- setup = function()
|
-- setup = function()
|
||||||
-- require("other").packer_lazy_load "vim-matchup"
|
-- require("blake.other").packer_lazy_load "vim-matchup"
|
||||||
-- end,
|
-- end,
|
||||||
}
|
}
|
||||||
use { -- ALE: Support for lots of linters, etc
|
use { -- ALE: Support for lots of linters, etc
|
||||||
|
@ -117,32 +117,32 @@ return require('packer').startup(function()
|
||||||
'nvim-lua/plenary.nvim'
|
'nvim-lua/plenary.nvim'
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('other').gitsigns()
|
require('blake.other').gitsigns()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use { -- file manager
|
use { -- file manager
|
||||||
'kyazdani42/nvim-tree.lua',
|
'kyazdani42/nvim-tree.lua',
|
||||||
requires = 'kyazdani42/nvim-web-devicons',
|
requires = 'kyazdani42/nvim-web-devicons',
|
||||||
config = function()
|
config = function()
|
||||||
require('other').nvimtree()
|
require('blake.other').nvimtree()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- terminal
|
use { -- terminal
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require('other').toggleterm()
|
require('blake.other').toggleterm()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- Smooth Scrolling
|
use { -- Smooth Scrolling
|
||||||
"karb94/neoscroll.nvim",
|
"karb94/neoscroll.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require('other').neoscroll()
|
require('blake.other').neoscroll()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use { -- automatic session management
|
use { -- automatic session management
|
||||||
'rmagatti/auto-session',
|
'rmagatti/auto-session',
|
||||||
config = function()
|
config = function()
|
||||||
require('other').autosession()
|
require('blake.other').autosession()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
use { -- Markdown preview
|
use { -- Markdown preview
|
Loading…
Add table
Reference in a new issue