(nvim) fixed clipboard selection
This commit is contained in:
@@ -3,9 +3,7 @@ vim.wo.number = true
|
|||||||
vim.o.relativenumber = true
|
vim.o.relativenumber = true
|
||||||
|
|
||||||
-- sync clipboards of nvim and os
|
-- sync clipboards of nvim and os
|
||||||
vim.schedule(function()
|
vim.opt.clipboard = "unnamedplus"
|
||||||
vim.opt.clipboard = "unnamedplus"
|
|
||||||
end)
|
|
||||||
|
|
||||||
-- disable line wrap..
|
-- disable line wrap..
|
||||||
vim.o.wrap = false
|
vim.o.wrap = false
|
||||||
@@ -30,10 +28,10 @@ vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>") -- clear search highlight on
|
|||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.o.tabstop = 4
|
vim.o.tabstop = 4
|
||||||
vim.o.softtabstop = 4
|
vim.o.softtabstop = 4
|
||||||
vim.o.shiftwidth = 4
|
vim.o.shiftwidth = 4
|
||||||
vim.o.expandtab = true
|
vim.o.expandtab = true
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user