Merge pull request #1 from slayterteal/fix_master
Add vscode specific init.lua
This commit is contained in:
commit
b1d357d804
1
init.lua
1
init.lua
|
@ -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…
Reference in New Issue