-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.lua
More file actions
28 lines (22 loc) · 719 Bytes
/
init.lua
File metadata and controls
28 lines (22 loc) · 719 Bytes
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
-- Neovim Configuration
-- Estrutura modular e organizada usando vim.pack nativo
-- Core: Configurações fundamentais
require("core.options")
require("core.keymaps")
require("core.autocmds")
-- Plugins: Declaração e carregamento
require("core.plugins")
-- Plugins: Configurações individuais
-- Carregar todos os arquivos em lua/plugins/
local function load_plugins()
local plugins_dir = vim.fs.normalize(vim.fn.stdpath("config") .. "/lua/plugins")
for file in vim.fs.dir(plugins_dir) do
if file:match("%.lua$") then
local plugin_name = file:gsub("%.lua$", "")
pcall(require, "plugins." .. plugin_name)
end
end
end
load_plugins()
-- LSP: Configuração do Language Server Protocol
require("lsp")