mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-11 08:20:50 -07:00
update
This commit is contained in:
commit
6eb999b94f
11 changed files with 920 additions and 0 deletions
51
lua/options.lua
Normal file
51
lua/options.lua
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
require "nvchad.options"
|
||||
|
||||
-- add yours here!
|
||||
vim.opt.mouse=''
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
|
||||
once = true,
|
||||
callback = function()
|
||||
if vim.fn.has("win32") == 1 or vim.fn.has("wsl") == 1 then
|
||||
vim.g.clipboard = {
|
||||
copy = {
|
||||
["+"] = "win32yank.exe -i --crlf",
|
||||
["*"] = "win32yank.exe -i --crlf",
|
||||
},
|
||||
paste = {
|
||||
["+"] = "win32yank.exe -o --lf",
|
||||
["*"] = "win32yank.exe -o --lf",
|
||||
},
|
||||
}
|
||||
elseif vim.fn.has("unix") == 1 then
|
||||
if vim.fn.executable("xclip") == 1 then
|
||||
vim.g.clipboard = {
|
||||
copy = {
|
||||
["+"] = "xclip -selection clipboard",
|
||||
["*"] = "xclip -selection clipboard",
|
||||
},
|
||||
paste = {
|
||||
["+"] = "xclip -selection clipboard -o",
|
||||
["*"] = "xclip -selection clipboard -o",
|
||||
},
|
||||
}
|
||||
elseif vim.fn.executable("xsel") == 1 then
|
||||
vim.g.clipboard = {
|
||||
copy = {
|
||||
["+"] = "xsel --clipboard --input",
|
||||
["*"] = "xsel --clipboard --input",
|
||||
},
|
||||
paste = {
|
||||
["+"] = "xsel --clipboard --output",
|
||||
["*"] = "xsel --clipboard --output",
|
||||
},
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
vim.opt.clipboard = "unnamedplus"
|
||||
end,
|
||||
desc = "Lazy load clipboard",
|
||||
})
|
||||
-- local o = vim.o
|
||||
-- o.cursorlineopt ='both' -- to enable cursorline!
|
||||
Loading…
Add table
Add a link
Reference in a new issue