Restructuring
This commit is contained in:
@@ -130,8 +130,8 @@ Some servers have additional runtime dependencies:
|
|||||||
- **bash-language-server**: shellcheck (optional, used for linting)
|
- **bash-language-server**: shellcheck (optional, used for linting)
|
||||||
|
|
||||||
If you don't need some specific language server, and want to get rid of any
|
If you don't need some specific language server, and want to get rid of any
|
||||||
warning messages, you may either remove them from the top of `lua/lsp/init.lua`
|
warning messages, you may either remove them from the top of `lua/lsp.lua`
|
||||||
or disable them in `lua/lsp/config/<server>.lua`.
|
or disable them in `lua/lsp/<server>.lua`.
|
||||||
|
|
||||||
### Clipboard
|
### Clipboard
|
||||||
see `:checkhealth` and `:h clipboard`.
|
see `:checkhealth` and `:h clipboard`.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ P.config = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for server, _ in pairs(P.config) do
|
for server, _ in pairs(P.config) do
|
||||||
local ok, resp = pcall(require, "lsp.config." .. server)
|
local ok, resp = pcall(require, "lsp." .. server)
|
||||||
if not ok then
|
if not ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -23,21 +23,21 @@ local plugins = {
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
config = function ()
|
config = function ()
|
||||||
require("plugins.config.catppuccin")
|
require("plugins.catppuccin")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
priority = 900,
|
priority = 900,
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function () require("plugins.config.notify") end,
|
config = function () require("plugins.notify") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rafamadriz/friendly-snippets",
|
"rafamadriz/friendly-snippets",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
config = function () require("plugins.config.luasnip") end,
|
config = function () require("plugins.luasnip") end,
|
||||||
-- comment out on windows and install jsregexp manually
|
-- comment out on windows and install jsregexp manually
|
||||||
build = (
|
build = (
|
||||||
require("utils").os_name ~= "Windows_NT"
|
require("utils").os_name ~= "Windows_NT"
|
||||||
@@ -48,7 +48,7 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
config = function () require("plugins.config.autopairs") end,
|
config = function () require("plugins.autopairs") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"saadparwaiz1/cmp_luasnip",
|
"saadparwaiz1/cmp_luasnip",
|
||||||
@@ -70,21 +70,21 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
config = function () require("plugins.config.cmp") end,
|
config = function () require("plugins.cmp") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"onsails/lspkind.nvim",
|
"onsails/lspkind.nvim",
|
||||||
config = function () require("plugins.config.lspkind") end,
|
config = function () require("plugins.lspkind") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
config = function () require("plugins.config.mason") end,
|
config = function () require("plugins.mason") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
config = function () require("plugins.config.mason_lspconfig") end,
|
config = function () require("plugins.mason_lspconfig") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
},
|
},
|
||||||
@@ -96,37 +96,37 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
config = function () require("plugins.config.treesitter") end,
|
config = function () require("plugins.treesitter") end,
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
config = function () require("plugins.config.dap") end,
|
config = function () require("plugins.dap") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
ft = require("lsp"):filetypes(),
|
ft = require("lsp"):filetypes(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
config = function () require("plugins.config.dap_ui") end,
|
config = function () require("plugins.dap_ui") end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
config = function () require("plugins.config.fugitive") end,
|
config = function () require("plugins.fugitive") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rbong/vim-flog",
|
"rbong/vim-flog",
|
||||||
config = function () require("plugins.config.flog") end,
|
config = function () require("plugins.flog") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
config = function () require("plugins.config.lualine") end,
|
config = function () require("plugins.lualine") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
@@ -135,13 +135,13 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
config = function () require("plugins.config.gitsigns") end,
|
config = function () require("plugins.gitsigns") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
config = function () require("plugins.config.telescope") end,
|
config = function () require("plugins.telescope") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
@@ -150,25 +150,25 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
config = function () require("plugins.config.comment") end,
|
config = function () require("plugins.comment") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
config = function () require("plugins.config.indent-blankline") end,
|
config = function () require("plugins.indent-blankline") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"simeji/winresizer",
|
"simeji/winresizer",
|
||||||
config = function () require("plugins.config.winresizer") end,
|
config = function () require("plugins.winresizer") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
keys = { "<C-W>r", },
|
keys = { "<C-W>r", },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"sindrets/winshift.nvim",
|
"sindrets/winshift.nvim",
|
||||||
config = function () require("plugins.config.winshift") end,
|
config = function () require("plugins.winshift") end,
|
||||||
lazy = true,
|
lazy = true,
|
||||||
keys = { "<C-W>m", },
|
keys = { "<C-W>m", },
|
||||||
},
|
},
|
||||||
@@ -179,7 +179,7 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kyazdani42/nvim-tree.lua",
|
"kyazdani42/nvim-tree.lua",
|
||||||
config = function () require("plugins.config.tree") end,
|
config = function () require("plugins.tree") end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
},
|
},
|
||||||
@@ -191,7 +191,7 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"stevearc/aerial.nvim",
|
"stevearc/aerial.nvim",
|
||||||
config = function () require("plugins.config.aerial") end,
|
config = function () require("plugins.aerial") end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
@@ -199,23 +199,23 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"RubixDev/mason-update-all",
|
"RubixDev/mason-update-all",
|
||||||
config = function () require("plugins.config.mason_update_all") end,
|
config = function () require("plugins.mason_update_all") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"famiu/bufdelete.nvim",
|
"famiu/bufdelete.nvim",
|
||||||
config = function () require("plugins.config.bufdelete") end,
|
config = function () require("plugins.bufdelete") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
config = function () require("plugins.config.treesitter-context") end,
|
config = function () require("plugins.treesitter-context") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fedepujol/move.nvim",
|
"fedepujol/move.nvim",
|
||||||
config = function () require("plugins.config.move") end,
|
config = function () require("plugins.move") end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-orgmode/orgmode",
|
"nvim-orgmode/orgmode",
|
||||||
config = function () require("plugins.config.orgmode") end,
|
config = function () require("plugins.orgmode") end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
},
|
},
|
||||||
@@ -225,7 +225,7 @@ local plugins = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"sindrets/diffview.nvim",
|
"sindrets/diffview.nvim",
|
||||||
config = function () require("plugins.config.diffview") end,
|
config = function () require("plugins.diffview") end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
},
|
},
|
||||||
@@ -233,7 +233,7 @@ local plugins = {
|
|||||||
{
|
{
|
||||||
"iamcco/markdown-preview.nvim",
|
"iamcco/markdown-preview.nvim",
|
||||||
build = "cd app && npm install",
|
build = "cd app && npm install",
|
||||||
config = function () require("plugins.config.markdown-preview") end,
|
config = function () require("plugins.markdown-preview") end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user