Merge pull request #1 from slayterteal/fix_master

Add vscode specific init.lua
pull/1655/head
slayterteal 2 months ago committed by GitHub
commit b1d357d804
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,5 +1,6 @@
if vim.g.vscode then if vim.g.vscode then
-- VSCode extension -- VSCode extension
require 'vscode-init'
else else
require 'cli-init' require 'cli-init'
end end

@ -0,0 +1,23 @@
-- VSCode Specific Neovim configuration
vim.g.have_nerd_font = true
-- Sync clipboard between OS and Neovim.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`
vim.opt.clipboard = 'unnamedplus'
-- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode
-- See `:help vim.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.highlight.on_yank()
end,
})
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
vim.opt.ignorecase = true
vim.opt.smartcase = true
Loading…
Cancel
Save