2023-03-08 13:06:56 -05:00
|
|
|
-- Options are automatically loaded before lazy.nvim startup
|
|
|
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
|
|
|
-- Add any additional options here
|
2023-03-14 13:29:39 -04:00
|
|
|
|
|
|
|
vim.opt.relativenumber = false
|
|
|
|
vim.opt.conceallevel = 0
|
2023-03-14 14:30:37 -04:00
|
|
|
vim.opt.timeoutlen = 1000
|
2023-05-20 13:27:54 -04:00
|
|
|
vim.opt.list = false
|
|
|
|
vim.opt.pumblend = 0
|
2023-06-09 11:20:30 -04:00
|
|
|
vim.opt.tabstop = 4
|
|
|
|
vim.opt.shiftwidth = 4
|
2023-11-01 14:12:01 -04:00
|
|
|
vim.g.autoformat = false
|
2023-12-18 09:33:02 -05:00
|
|
|
vim.opt.completeopt = "menuone,noselect,preview"
|
2024-05-06 11:02:03 -04:00
|
|
|
vim.opt.foldmethod = "expr"
|
|
|
|
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
|
|
|
vim.opt.foldenable = false
|
2024-05-09 11:57:14 -04:00
|
|
|
vim.opt.exrc = true
|
2024-06-19 16:46:43 -04:00
|
|
|
vim.opt.ttimeoutlen = 0
|
|
|
|
|
|
|
|
|
2024-06-22 14:26:02 -04:00
|
|
|
local osc52 = require("vim.ui.clipboard.osc52")
|
2024-06-19 16:45:33 -04:00
|
|
|
|
|
|
|
vim.g.clipboard = {
|
2024-06-22 14:26:02 -04:00
|
|
|
name = "OSC 52",
|
2024-06-19 16:45:33 -04:00
|
|
|
copy = {
|
2024-06-22 14:26:02 -04:00
|
|
|
["+"] = function(lines)
|
|
|
|
vim.g._clipboard = lines
|
|
|
|
osc52.copy("+")(lines)
|
|
|
|
end,
|
|
|
|
["*"] = function(lines)
|
|
|
|
vim.g._clipboard = lines
|
|
|
|
osc52.copy("*")(lines)
|
|
|
|
end,
|
2024-06-19 16:45:33 -04:00
|
|
|
},
|
|
|
|
paste = {
|
2024-06-22 14:26:02 -04:00
|
|
|
-- ['+'] = require('vim.ui.clipboard.osc52').paste('+'),
|
|
|
|
-- ['*'] = require('vim.ui.clipboard.osc52').paste('*'),
|
|
|
|
["+"] = function()
|
|
|
|
return vim.g._clipboard
|
|
|
|
end,
|
|
|
|
["*"] = function()
|
|
|
|
return vim.g._clipboard
|
|
|
|
end,
|
2024-06-19 16:45:33 -04:00
|
|
|
},
|
|
|
|
}
|