nvim/init.lua

85 lines
1.7 KiB
Lua
Raw Normal View History

2025-11-21 17:28:53 -05:00
local vim = vim
2025-05-13 13:35:59 -04:00
vim.g.mapleader = " "
vim.g.maplocalleader = " "
2025-11-15 22:12:23 -05:00
vim.o.number = true
vim.o.relativenumber = true
2025-11-24 09:46:21 -05:00
vim.o.wrap = true
vim.o.linebreak = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.inccommand = 'split'
2025-05-13 13:35:59 -04:00
2025-11-24 09:46:21 -05:00
vim.o.cursorline = true
2025-11-21 17:28:53 -05:00
vim.o.showmode = true
vim.o.hlsearch = false
2025-11-25 16:16:39 -05:00
vim.o.tabstop = 2
vim.o.shiftwidth = 2
2025-11-15 22:12:23 -05:00
vim.g.have_nerd_font = true
vim.o.scrolloff = 10
vim.g.border = "rounded"
vim.o.termguicolors = true
2025-05-13 13:35:59 -04:00
2025-11-21 17:28:53 -05:00
vim.o.swapfile = false
2025-11-22 17:44:14 -05:00
vim.o.mouse = "a"
2025-11-21 17:28:53 -05:00
vim.o.undofile = true
2025-11-24 09:46:21 -05:00
vim.o.spell = false
2025-05-13 13:35:59 -04:00
2025-11-21 17:28:53 -05:00
vim.diagnostic.config({
2025-11-22 17:44:14 -05:00
virtual_text = false,
float = { source = "always", border = "rounded" },
2025-11-21 17:28:53 -05:00
})
2025-11-25 16:16:39 -05:00
require("config.keymaps")
2025-12-04 21:56:45 -05:00
require("config.autocmds")
2025-11-25 16:16:39 -05:00
require("config.plugins.autosave")
require("config.plugins.barbar")
require("config.plugins.blink")
require("config.plugins.dashboard")
require("config.plugins.lualine")
require("config.plugins.mason")
require("config.plugins.mini")
require("config.plugins.nvim-lspconfig")
require("config.plugins.nvim-tree")
require("config.plugins.prettier")
require("config.plugins.telescope")
require("config.plugins.theme")
require("config.plugins.treesitter")
require("config.plugins.venv-selector")
2025-11-26 12:08:31 -05:00
require("config.plugins.markdown-renderer")
2025-11-25 16:16:39 -05:00
local enable_providers = {
"python3_provider",
}
2025-05-13 13:35:59 -04:00
2025-11-25 16:16:39 -05:00
for _, plugin in pairs(enable_providers) do
vim.g["loaded_" .. plugin] = nil
vim.cmd("runtime " .. plugin)
end
2025-11-22 17:44:14 -05:00
2025-11-25 16:16:39 -05:00
vim.g.loaded_python3_provider = nil
2025-05-13 13:35:59 -04:00
2025-11-25 16:16:39 -05:00
-- lua... I need to move this
2025-11-22 17:44:14 -05:00
vim.lsp.config("lua_ls", {
2025-11-15 22:12:23 -05:00
settings = {
Lua = {
runtime = {
2025-05-13 13:35:59 -04:00
},
2025-11-26 12:08:31 -05:00
version = "LuaJIT",
2025-11-15 22:12:23 -05:00
diagnostics = {
globals = {
2025-11-22 17:44:14 -05:00
"vim",
"require",
2025-05-13 13:35:59 -04:00
},
},
2025-11-15 22:12:23 -05:00
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
2025-05-13 13:35:59 -04:00
},
2025-11-15 22:12:23 -05:00
telemetry = {
enable = false,
2025-05-13 13:35:59 -04:00
},
},
},
})