1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- vim.cmd [[
- set packpath-=~/.config/nvim
- set packpath-=~/.config/nvim/after
- set packpath-=~/.local/share/nvim/site
- set packpath^=~/.local/share/lunarvim/site
- set packpath^=~/.config/lvim
- set runtimepath-=~/.config/nvim
- set runtimepath-=~/.config/nvim/after
- set runtimepath+=~/.config/lvim
- set runtimepath^=~/.local/share/lunarvim/lvim/after
- ]]
- -- vim.opt.rtp:append() instead of vim.cmd ?
- require "default-config"
- require "settings"
- local status_ok, error = pcall(vim.cmd, "luafile ~/.config/lvim/lv-config.lua")
- if not status_ok then
- print "something is wrong with your lv-config"
- print(error)
- end
- require("core.autocmds").define_augroups(lvim.autocommands)
- require "keymappings"
- local plugins = require "plugins"
- local plugin_loader = require("plugin-loader").init()
- plugin_loader:load { plugins, lvim.plugins }
- vim.g.colors_name = lvim.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
- vim.cmd("colorscheme " .. lvim.colorscheme)
- local utils = require "lv-utils"
- utils.toggle_autoformat()
- require("lsp").setup_handlers()
- local null_status_ok, null_ls = pcall(require, "null-ls")
- if null_status_ok then
- null_ls.config {}
- require("lspconfig")["null-ls"].setup {}
- end
- local lsp_settings_status_ok, lsp_settings = pcall(require, "nlspsettings")
- if lsp_settings_status_ok then
- lsp_settings.setup {
- config_home = os.getenv "HOME" .. "/.config/lvim/lsp-settings",
- }
- end
- -- TODO: these guys need to be in language files
- -- if lvim.lang.emmet.active then
- -- require "lsp.emmet-ls"
- -- end
- -- if lvim.lang.tailwindcss.active then
- -- require "lsp.tailwind
|