mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 03:30:12 +02:00
refactor: move everything under lazyvim
This commit is contained in:
parent
39ccddad5f
commit
8eb8d235c9
17 changed files with 10 additions and 10 deletions
8
init.lua
8
init.lua
|
@ -1,4 +1,4 @@
|
||||||
require("config.options")
|
require("lazyvim.config.options")
|
||||||
require("config.lazy")
|
require("lazyvim.config.lazy")
|
||||||
require("config.autocmds")
|
require("lazyvim.config.autocmds")
|
||||||
require("config.keymaps")
|
require("lazyvim.config.keymaps")
|
||||||
|
|
|
@ -45,7 +45,7 @@ return {
|
||||||
}),
|
}),
|
||||||
formatting = {
|
formatting = {
|
||||||
format = function(_, item)
|
format = function(_, item)
|
||||||
local icons = require("config.icons").kinds
|
local icons = require("lazyvim.config.icons").kinds
|
||||||
if icons[item.kind] then
|
if icons[item.kind] then
|
||||||
item.kind = icons[item.kind] .. item.kind
|
item.kind = icons[item.kind] .. item.kind
|
||||||
end
|
end
|
|
@ -1,8 +1,8 @@
|
||||||
local servers = require("plugins.lsp.servers")
|
local servers = require("lazyvim.plugins.lsp.servers")
|
||||||
|
|
||||||
local function on_attach(client, bufnr)
|
local function on_attach(client, bufnr)
|
||||||
require("plugins.lsp.format").on_attach(client, bufnr)
|
require("lazyvim.plugins.lsp.format").on_attach(client, bufnr)
|
||||||
require("plugins.lsp.keymaps").on_attach(client, bufnr)
|
require("lazyvim.plugins.lsp.keymaps").on_attach(client, bufnr)
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -24,7 +24,7 @@ return {
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- diagnostics
|
-- diagnostics
|
||||||
for name, icon in pairs(require("config.icons").diagnostics) do
|
for name, icon in pairs(require("lazyvim.config.icons").diagnostics) do
|
||||||
name = "DiagnosticSign" .. name
|
name = "DiagnosticSign" .. name
|
||||||
vim.fn.sign_define(name, { text = icon, texthl = name, numhl = "" })
|
vim.fn.sign_define(name, { text = icon, texthl = name, numhl = "" })
|
||||||
end
|
end
|
|
@ -22,7 +22,7 @@ function M.on_attach(client, buffer)
|
||||||
self:map("<C-k>", vim.lsp.buf.signature_help, { desc = "Signature Help", mode = { "i", "n" }, has = "signatureHelp" })
|
self:map("<C-k>", vim.lsp.buf.signature_help, { desc = "Signature Help", mode = { "i", "n" }, has = "signatureHelp" })
|
||||||
self:map("<leader>ca", vim.lsp.buf.code_action, { desc = "Code Action", mode = { "n", "v" }, has = "codeAction" })
|
self:map("<leader>ca", vim.lsp.buf.code_action, { desc = "Code Action", mode = { "n", "v" }, has = "codeAction" })
|
||||||
|
|
||||||
local format = require("plugins.lsp.format").format
|
local format = require("lazyvim.plugins.lsp.format").format
|
||||||
self:map("<leader>cf", format, { desc = "Format Document", has = "documentFormatting" })
|
self:map("<leader>cf", format, { desc = "Format Document", has = "documentFormatting" })
|
||||||
self:map("<leader>cf", format, { desc = "Format Range", mode = "v", has = "documentRangeFormatting" })
|
self:map("<leader>cf", format, { desc = "Format Range", mode = "v", has = "documentRangeFormatting" })
|
||||||
self:map("<leader>cr", M.rename, { expr = true, desc = "Rename", has = "rename" })
|
self:map("<leader>cr", M.rename, { expr = true, desc = "Rename", has = "rename" })
|
Loading…
Add table
Add a link
Reference in a new issue