feat(init file): add autostart commands, change sequence of import config and etc.

This commit is contained in:
doryan 2024-12-23 01:03:14 +04:00
parent 9fb66c5fd8
commit 9aee982481

View File

@ -1,17 +1,21 @@
local vanila_vim_autostart_commands = { local vanila_vim_autostart_commands = {
"set number", "set number",
"set clipboard=unnamedplus", "set clipboard=unnamedplus",
"set nowrap" "set nowrap",
"set shiftwidth=4",
"set tabstop=4",
} }
for _, cmd in pairs(vanila_vim_autostart_commands) do for _, cmd in pairs(vanila_vim_autostart_commands) do
vim.cmd(cmd) vim.cmd(cmd)
end
if vim.lsp.inlay_hint then
vim.lsp.inlay_hint.enable(true, { 0 })
end end
require("config.lazy") require("config.lazy")
require("config.plugins.nvimufo")
require("mappings")
require("config.plugins.acmp") require("config.plugins.acmp")
require("config.plugins.autotag") require("config.plugins.autotag")
require("config.plugins.autocomplete") require("config.plugins.autocomplete")
@ -20,8 +24,13 @@ require("config.plugins.colorizer")
require("config.plugins.comment") require("config.plugins.comment")
require("config.plugins.dap") require("config.plugins.dap")
require("config.plugins.gitsigns") require("config.plugins.gitsigns")
require("ibl").setup() require("ibl").setup({
exclude = {
filetypes = { "dashboard" },
}
})
require("config.plugins.hover_actions") require("config.plugins.hover_actions")
require("config.plugins.lsp_config")
require("config.plugins.lsp_diagnostic") require("config.plugins.lsp_diagnostic")
require("config.plugins.lualine") require("config.plugins.lualine")
require("config.plugins.navic") require("config.plugins.navic")
@ -29,8 +38,17 @@ require("config.plugins.noice")
require("toggleterm").setup() require("toggleterm").setup()
require("config.plugins.treesitter") require("config.plugins.treesitter")
require("config.plugins.neotree") require("config.plugins.neotree")
require("config.plugins.nvimufo")
require("config.plugins.prettier") require("config.plugins.prettier")
require("config.plugins.rustaceanvim") require("config.plugins.rustaceanvim")
require("huez").setup({}) require("huez").setup({})
require("config.plugins.dropbar") require("config.plugins.dropbar")
require("config.plugins.dashboard")
vim.api.nvim_create_autocmd("BufWritePre", {
buffer = buffer,
callback = function()
vim.lsp.buf.format { async = false }
end
})
require("mappings")