2022-10-21 06:15:28 -04:00
|
|
|
local opt = vim.opt
|
|
|
|
|
2022-12-24 12:33:46 -05:00
|
|
|
local ok, notify = pcall(require, "notify")
|
|
|
|
if ok then
|
2023-03-12 16:09:11 -04:00
|
|
|
vim.notify = notify
|
2022-12-24 12:33:46 -05:00
|
|
|
end
|
|
|
|
|
2023-09-14 14:56:14 -04:00
|
|
|
-- Setup colorscheme
|
2023-01-03 14:13:09 -05:00
|
|
|
local ok, err = pcall(function()
|
2024-07-08 14:57:05 -04:00
|
|
|
local colorscheme = "kanagawa-wave"
|
2023-09-14 14:56:14 -04:00
|
|
|
if colorscheme == "nord" then
|
2024-07-08 14:57:05 -04:00
|
|
|
vim.g.diagnostic_sings = {"", "", "", ""}
|
2023-09-14 14:56:14 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
if colorscheme == "catppuccin-macchiato" then
|
2024-07-08 14:57:05 -04:00
|
|
|
vim.g.diagnostic_sings = {"", "", "", ""}
|
2023-09-14 14:56:14 -04:00
|
|
|
end
|
2024-07-08 14:57:05 -04:00
|
|
|
|
|
|
|
vim.g.diagnostic_sings = {" ", " ", " ", " "}
|
2023-09-14 14:56:14 -04:00
|
|
|
|
2024-07-08 14:57:05 -04:00
|
|
|
-- if colorscheme == "everforest" then
|
|
|
|
-- vim.g.diagnostic_sings = {" ", " ", " ", " "}
|
|
|
|
-- end
|
2023-09-14 14:56:14 -04:00
|
|
|
|
2024-07-08 14:57:05 -04:00
|
|
|
-- vim.cmd('colorscheme catppuccin-macchiato')
|
|
|
|
-- vim.cmd('colorscheme aquarium')
|
|
|
|
opt.termguicolors = true
|
2023-01-03 14:13:09 -05:00
|
|
|
end)
|
|
|
|
|
|
|
|
if not ok then
|
2024-07-08 14:57:05 -04:00
|
|
|
print(err)
|
2023-01-03 14:13:09 -05:00
|
|
|
end
|
|
|
|
|
2024-07-08 14:57:05 -04:00
|
|
|
-- vim.opt.statusline=statusline_output
|
|
|
|
-- if ok then
|
|
|
|
--
|
|
|
|
-- end
|
|
|
|
|
2022-10-21 06:15:28 -04:00
|
|
|
opt.encoding = "utf-8"
|
|
|
|
opt.swapfile = false
|
2024-03-02 07:15:50 -05:00
|
|
|
opt.clipboard = "unnamedplus"
|
2022-10-21 06:15:28 -04:00
|
|
|
|
2022-12-24 12:33:46 -05:00
|
|
|
opt.number = true
|
|
|
|
opt.relativenumber = true
|
2022-10-21 06:15:28 -04:00
|
|
|
|
2023-03-12 16:09:11 -04:00
|
|
|
vim.g.lsp_path = os.getenv("HOME") .. "/.local/share/nvim/mason/bin/"
|
2023-09-14 14:56:14 -04:00
|
|
|
-- vim.lsp.set_log_level("debug")
|
2023-03-12 16:09:11 -04:00
|
|
|
vim.g.mapleader = ","
|
2023-01-04 07:28:57 -05:00
|
|
|
|
2022-12-24 12:33:46 -05:00
|
|
|
opt.list = true
|
2024-07-08 14:57:05 -04:00
|
|
|
opt.listchars = {multispace = "·", tab = "⬄ "}
|
2022-10-21 06:15:28 -04:00
|
|
|
|
2023-01-04 07:28:57 -05:00
|
|
|
opt.splitbelow = true
|
|
|
|
opt.splitright = true
|
|
|
|
|
|
|
|
opt.undofile = true
|
2023-01-03 14:13:09 -05:00
|
|
|
|
2023-03-12 16:09:11 -04:00
|
|
|
opt.tabstop = 2
|
|
|
|
opt.shiftwidth = 2
|
2022-10-21 06:15:28 -04:00
|
|
|
opt.expandtab = true
|
2023-01-01 15:52:12 -05:00
|
|
|
opt.mouse = "a"
|