98 lines
2.1 KiB
Lua
98 lines
2.1 KiB
Lua
local vim = vim
|
|
vim.g.mapleader = " "
|
|
vim.g.maplocalleader = " "
|
|
|
|
vim.o.number = true
|
|
vim.o.relativenumber = true
|
|
vim.o.wrap = true
|
|
vim.o.linebreak = true
|
|
|
|
vim.o.ignorecase = true
|
|
vim.o.smartcase = true
|
|
vim.o.inccommand = 'split'
|
|
|
|
vim.o.cursorline = true
|
|
vim.o.showmode = true
|
|
vim.o.hlsearch = false
|
|
vim.o.tabstop = 2
|
|
vim.o.shiftwidth = 2
|
|
vim.g.have_nerd_font = true
|
|
vim.o.scrolloff = 10
|
|
vim.g.border = "rounded"
|
|
vim.o.termguicolors = true
|
|
|
|
vim.o.swapfile = false
|
|
vim.o.mouse = "a"
|
|
vim.o.undofile = true
|
|
vim.o.spell = false
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = false,
|
|
float = { source = "always", border = "rounded" },
|
|
})
|
|
|
|
require("config.keymaps")
|
|
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")
|
|
require("config.plugins.markdown-renderer")
|
|
|
|
-- Highlight On Yank
|
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
|
desc = "Highlight when yanking (copying) text",
|
|
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
|
|
callback = function()
|
|
vim.hl.on_yank()
|
|
end,
|
|
})
|
|
|
|
-- python specific
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
pattern = "python",
|
|
command = "setlocal shiftwidth=4 tabstop=4"
|
|
})
|
|
|
|
local enable_providers = {
|
|
"python3_provider",
|
|
}
|
|
|
|
for _, plugin in pairs(enable_providers) do
|
|
vim.g["loaded_" .. plugin] = nil
|
|
vim.cmd("runtime " .. plugin)
|
|
end
|
|
|
|
vim.g.loaded_python3_provider = nil
|
|
|
|
-- lua... I need to move this
|
|
vim.lsp.config("lua_ls", {
|
|
settings = {
|
|
Lua = {
|
|
runtime = {
|
|
},
|
|
version = "LuaJIT",
|
|
diagnostics = {
|
|
globals = {
|
|
"vim",
|
|
"require",
|
|
},
|
|
},
|
|
workspace = {
|
|
library = vim.api.nvim_get_runtime_file("", true),
|
|
},
|
|
telemetry = {
|
|
enable = false,
|
|
},
|
|
},
|
|
},
|
|
})
|