aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules21
l---------after/syntax/cpp.vim1
-rw-r--r--gvimrc30
-rw-r--r--init.lua273
m---------pack/all/start/fzf0
m---------pack/all/start/fzf.vim0
m---------pack/all/start/vim-editorconfig0
m---------pack/all/start/vim-fancy-line0
m---------pack/nvim/start/nvim-cmp0
m---------pack/nvim/start/nvim-cmp-lsp-signature-help0
m---------pack/nvim/start/nvim-cmp-nvim-lsp0
m---------pack/nvim/start/nvim-lsp0
m---------pack/nvim/start/nvim-lspconfig0
m---------pack/nvim/start/nvim-lua-language-server0
m---------pack/nvim/start/nvim-plenary0
m---------pack/nvim/start/nvim-telescope0
m---------pack/nvim/start/nvim-treesitter0
m---------pack/nvim/start/nvim-vsnip0
m---------pack/vim/opt/vim-youcompleteme0
-rw-r--r--plugin/lsp.nvim1
-rwxr-xr-x[-rw-r--r--]utils/applications/vim.desktop18
-rw-r--r--vimrc10
-rw-r--r--vimrc-common6
23 files changed, 198 insertions, 162 deletions
diff --git a/.gitmodules b/.gitmodules
index 986283d..92552d3 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -22,9 +22,6 @@
22[submodule "pack/submodules/start/nvim-cmp"] 22[submodule "pack/submodules/start/nvim-cmp"]
23 path = pack/nvim/start/nvim-cmp 23 path = pack/nvim/start/nvim-cmp
24 url = https://github.com/hrsh7th/nvim-cmp 24 url = https://github.com/hrsh7th/nvim-cmp
25[submodule "pack/submodules/start/nvim-lspconfig"]
26 path = pack/nvim/start/nvim-lspconfig
27 url = https://github.com/neovim/nvim-lspconfig
28[submodule "pack/submodules/start/nvim-cmp-nvim-lsp"] 25[submodule "pack/submodules/start/nvim-cmp-nvim-lsp"]
29 path = pack/nvim/start/nvim-cmp-nvim-lsp 26 path = pack/nvim/start/nvim-cmp-nvim-lsp
30 url = https://github.com/hrsh7th/cmp-nvim-lsp 27 url = https://github.com/hrsh7th/cmp-nvim-lsp
@@ -61,3 +58,21 @@
61[submodule "pack/all/start/fzf.vim"] 58[submodule "pack/all/start/fzf.vim"]
62 path = pack/all/start/fzf.vim 59 path = pack/all/start/fzf.vim
63 url = https://github.com/junegunn/fzf.vim 60 url = https://github.com/junegunn/fzf.vim
61[submodule "pack/all/start/fzf"]
62 path = pack/all/start/fzf
63 url = https://github.com/junegunn/fzf
64[submodule "pack/nvim/start/nvim-telescope"]
65 path = pack/nvim/start/nvim-telescope
66 url = https://github.com/nvim-telescope/telescope.nvim
67[submodule "pack/nvim/start/nvim-plenary"]
68 path = pack/nvim/start/nvim-plenary
69 url = https://github.com/nvim-lua/plenary.nvim
70[submodule "pack/nvim/start/nvim-lua-language-server"]
71 path = pack/nvim/start/nvim-lua-language-server
72 url = https://github.com/LuaLS/lua-language-server
73[submodule "pack/nvim/start/nvim-lspconfig"]
74 path = pack/nvim/start/nvim-lspconfig
75 url = https://github.com/neovim/nvim-lspconfig
76[submodule "pack/nvim/start/nvim-lsp"]
77 path = pack/nvim/start/nvim-lsp
78 url = https://github.com/prabirshrestha/vim-lsp
diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim
deleted file mode 120000
index 64e3fd4..0000000
--- a/after/syntax/cpp.vim
+++ /dev/null
@@ -1 +0,0 @@
1c.vim \ No newline at end of file
diff --git a/gvimrc b/gvimrc
new file mode 100644
index 0000000..eda4fc7
--- /dev/null
+++ b/gvimrc
@@ -0,0 +1,30 @@
1" ======================================================================================================================
2" GUI_DEFAULTS:
3" We want to have a minimal UI
4" ======================================================================================================================
5
6if has("gui_running")
7 set guicursor=a:block-blinkon100
8 set browsedir=buffer
9 set toolbar+=text
10 set guiheadroom=0
11 set guioptions+=eig
12 set guioptions-=T | " toolbar
13 set guioptions+=c | " use console dialogues instead of popups
14 set guioptions+=a | " auto select: copy&paste using middle click
15 set guioptions+=m | " remove menu
16 set guioptions-=e | " do not display tabs
17 set guioptions-=L | " do not show left scrollbar
18 set guioptions-=r | " do not show right scrollbar
19 set winaltkeys=menu | " behave like other windows: ALT-key can be used to open the menu (and cannot be :remaped)
20 " set selectmode=mouse,key,cmd | " enters vim's select mode when pressing shift-left or shift-END
21 " set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text
22
23 set background=light
24 " its possible to define alternative fonts (order matters), but we will
25 " use the systems default font and cofigure that if necessary
26 set guifont=Monospace\ 10
27
28 " like in the terminal: use Ctrl-shift-v for paste in vim's command editor
29 cnoremap <c-s-v> <c-r>*
30endif
diff --git a/init.lua b/init.lua
index d58bbba..c710f99 100644
--- a/init.lua
+++ b/init.lua
@@ -3,56 +3,150 @@ vim.cmd('source ~/.vim/vimrc')
3vim.o.termguicolors = true 3vim.o.termguicolors = true
4vim.o.exrc = true 4vim.o.exrc = true
5 5
6vim.o.shadafile = (os.getenv("XDG_CACHE_HOME") or 6if vim.fn.has("win32") then
7 os.getenv("HOME") .. "/.cache" 7 vim.o.shell = 'cmd.exe'
8 ) .. "/vim.shada" 8 vim.opt.rtp:append(vim.fn.expand("$HOME\\scoop\\shims"))
9end
9 10
10-- vimscript: get(environ(), "XDG_CACHE_HOME", "~/.cache")."/vim.shada" 11-- vim.o.shadafile = "/tmp/shada"
11 12
12require'man' 13-- only on Linux...
14-- vim.o.shadafile = (os.getenv("XDG_CACHE_HOME") or
15-- os.getenv("HOME") .. "/.cache"
16-- ) .. "/vim.shada"
17-- vimscript: get(environ(), "XDG_CACHE_HOME", "~/.cache")."/vim.shada"
18-- require'man'
13 19
14require'colorizer'.setup() 20require'colorizer'.setup()
15 21
16-- language servers: 22-- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers..
23require('cmp_nvim_lsp').setup{}
24local capabilities = require('cmp_nvim_lsp').default_capabilities()
25
26
27local cmp = require('cmp');
28cmp.setup({
29 snippet = {
30 -- REQUIRED - you must specify a snippet engine
31 expand = function(args)
32 vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
33 -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
34 -- require('snippy').expand_snippet(args.body) -- For `snippy` users.
35 -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
36 end,
37 },
38 window = {
39 completion = cmp.config.window.bordered(),
40 documentation = cmp.config.window.bordered(),
41 },
42 mapping = cmp.mapping.preset.insert({
43 ['<C-b>'] = cmp.mapping.scroll_docs(-4),
44 ['<C-f>'] = cmp.mapping.scroll_docs(4),
45 ["<Tab>"] = cmp.mapping.select_next_item({behavior=cmp.SelectBehavior.Insert}),
46 ["<S-Tab>"] = cmp.mapping.select_prev_item({behavior=cmp.SelectBehavior.Insert}),
47 ['<C-Space>'] = cmp.mapping.complete(),
48 ['<C-e>'] = cmp.mapping.abort(),
49 -- ['<CR>'] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
50
51 ["<CR>"] = cmp.mapping.confirm({
52 behavior = cmp.ConfirmBehavior.Replace,
53 select = true,
54 }),
55
56 ['<C-s>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
57 }),
58 sources = cmp.config.sources({
59 { name = 'nvim_lsp' },
60 { name = 'vsnip' }, -- For vsnip users.
61 -- { name = 'luasnip' }, -- For luasnip users.
62 -- { name = 'ultisnips' }, -- For ultisnips users.
63 -- { name = 'snippy' }, -- For snippy users.
64 }, {
65 { name = 'buffer' },
66 })
67})
68
69-- Set configuration for specific filetype.
70cmp.setup.filetype('gitcommit', {
71 sources = cmp.config.sources({
72 { name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
73 }, {
74 { name = 'buffer' },
75 })
76})
77
78-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
79cmp.setup.cmdline({ '/', '?' }, {
80 -- mapping = cmp.mapping.preset.cmdline(),
81 sources = {
82 { name = 'buffer' }
83 }
84})
85
86-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
87cmp.setup.cmdline(':', {
88 -- mapping = cmp.mapping.preset.cmdline(),
89 sources = cmp.config.sources({
90 { name = 'cmdline' }
91 })
92})
93
94
95-- # Language Servers
17-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md 96-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
18 97
98-- The following example advertise capabilities to `clangd`.
19-- C/C++ | clang 99-- C/C++ | clang
20require'lspconfig'.clangd.setup{} 100require('lspconfig')['clangd'].setup{capabilities = capabilities}
21 101
22-- lua 102-- bash | bash-language-server
23require'lspconfig'.sumneko_lua.setup{ 103require('lspconfig')['bashls'].setup{capabilities = capabilities}
24 settings = { 104
25 Lua = { 105-- ccs | vscode-css-languageserver
26 diagnostics = { 106require('lspconfig')['cssls'].setup{capabilities = capabilities}
27 globals = { 'vim' } 107
28 } 108-- rust | rust-analyzer
29 } 109require('lspconfig')['rust_analyzer'].setup{capabilities = capabilities}
30 } 110
31} 111-- javascript | eslint
112require('lspconfig')['eslint'].setup{capabilities = capabilities}
113
114-- javascript | typescript-language-server
115require('lspconfig')['tsserver'].setup{capabilities = capabilities}
116
117-- vimscript | vim-language-server
118require('lspconfig')['vimls'].setup{capabilities = capabilities}
119
120require('lspconfig')['html'].setup{capabilities = capabilities}
121
122require('lspconfig')['jsonls'].setup{capabilities = capabilities}
123
124-- C/C++ | clang
125require('lspconfig')['clangd'].setup{capabilities = capabilities}
32 126
33-- bash | bash-language-server 127-- bash | bash-language-server
34require'lspconfig'.bashls.setup{} 128require('lspconfig')['bashls'].setup{capabilities = capabilities}
35 129
36-- ccs | vscode-css-languageserver 130-- ccs | vscode-css-languageserver
37require'lspconfig'.cssls.setup{} 131require('lspconfig')['cssls'].setup{capabilities = capabilities}
38 132
39-- rust | rust-analyzer 133-- rust | rust-analyzer
40require'lspconfig'.rust_analyzer.setup{} 134require('lspconfig')['rust_analyzer'].setup{capabilities = capabilities}
41 135
42-- javascript | eslint 136-- javascript | eslint
43require'lspconfig'.eslint.setup{} 137require('lspconfig')['eslint'].setup{capabilities = capabilities}
44 138
45-- javascript | typescript-language-server 139-- javascript | typescript-language-server
46require'lspconfig'.tsserver.setup{} 140require('lspconfig')['tsserver'].setup{capabilities = capabilities}
47 141
48-- vimscript | vim-language-server 142-- vimscript | vim-language-server
49require'lspconfig'.vimls.setup{} 143require('lspconfig')['vimls'].setup{capabilities = capabilities}
50 144
51require'lspconfig'.html.setup{} 145require('lspconfig')['html'].setup{capabilities = capabilities}
52 146
53require'lspconfig'.jsonls.setup{} 147require('lspconfig')['jsonls'].setup{capabilities = capabilities}
54 148
55require'lspconfig'.pylsp.setup{ 149require('lspconfig')['pylsp'].setup{
56 settings = { 150 settings = {
57 pylsp = { 151 pylsp = {
58 plugins = { 152 plugins = {
@@ -65,123 +159,16 @@ require'lspconfig'.pylsp.setup{
65 } 159 }
66} 160}
67 161
68 162-- lua
69require'cmp_nvim_lsp'.setup{} 163require('lspconfig')['lua_ls'].setup{
70 164 settings = {
71require'cmp'.setup { 165 Lua = {
72 sources = { 166 diagnostics = {
73 { name = 'nvim_lsp' } 167 globals = { 'vim', 'require', 'cmp' }
74 } 168 }
75} 169 }
76 170 }
77-- -- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers..
78local capabilities = require('cmp_nvim_lsp').default_capabilities()
79--
80-- -- The following example advertise capabilities to `clangd`.
81require'lspconfig'.clangd.setup {
82capabilities = capabilities,
83}
84
85-- Set up nvim-cmp.
86local cmp = require'cmp'
87
88cmp.setup({
89 snippet = {
90 -- REQUIRED - you must specify a snippet engine
91 expand = function(args)
92 vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
93 -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
94 -- require('snippy').expand_snippet(args.body) -- For `snippy` users.
95 -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
96 end,
97 },
98 window = {
99 completion = cmp.config.window.bordered(),
100 documentation = cmp.config.window.bordered(),
101 },
102 mapping = cmp.mapping.preset.insert({
103 ['<C-b>'] = cmp.mapping.scroll_docs(-4),
104 ['<C-f>'] = cmp.mapping.scroll_docs(4),
105 ['<C-Space>'] = cmp.mapping.complete(),
106 ['<C-e>'] = cmp.mapping.abort(),
107 -- ['<CR>'] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
108
109 ["<CR>"] = cmp.mapping.confirm({
110 behavior = cmp.ConfirmBehavior.Replace,
111 select = true,
112 }),
113
114 ['<C-s>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
115 }),
116 sources = cmp.config.sources({
117 { name = 'nvim_lsp' },
118 { name = 'vsnip' }, -- For vsnip users.
119 -- { name = 'luasnip' }, -- For luasnip users.
120 -- { name = 'ultisnips' }, -- For ultisnips users.
121 -- { name = 'snippy' }, -- For snippy users.
122 }, {
123 { name = 'buffer' },
124 })
125})
126
127-- Set configuration for specific filetype.
128cmp.setup.filetype('gitcommit', {
129sources = cmp.config.sources({
130{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
131}, {
132{ name = 'buffer' },
133})
134})
135
136-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
137cmp.setup.cmdline({ '/', '?' }, {
138mapping = cmp.mapping.preset.cmdline(),
139sources = {
140{ name = 'buffer' }
141} 171}
142})
143
144-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
145cmp.setup.cmdline(':', {
146mapping = cmp.mapping.preset.cmdline(),
147sources = cmp.config.sources({
148{ name = 'path' }
149}, {
150{ name = 'cmdline' }
151})
152})
153
154-- -- Set up lspconfig.
155-- local capabilities = require('cmp_nvim_lsp').default_capabilities()
156-- -- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
157-- -- require('lspconfig')['<YOUR_LSP_SERVER>'].setup {
158-- -- }
159--
160-- -- C/C++ | clang
161-- require'lspconfig'.clangd.setup{capabilities = capabilities}
162--
163-- -- bash | bash-language-server
164-- require'lspconfig'.bashls.setup{capabilities = capabilities}
165--
166-- -- ccs | vscode-css-languageserver
167-- require'lspconfig'.cssls.setup{capabilities = capabilities}
168--
169-- -- rust | rust-analyzer
170-- require'lspconfig'.rust_analyzer.setup{capabilities = capabilities}
171--
172-- -- javascript | eslint
173-- require'lspconfig'.eslint.setup{capabilities = capabilities}
174--
175-- -- javascript | typescript-language-server
176-- require'lspconfig'.tsserver.setup{capabilities = capabilities}
177--
178-- -- vimscript | vim-language-server
179-- require'lspconfig'.vimls.setup{capabilities = capabilities}
180--
181-- require'lspconfig'.html.setup{capabilities = capabilities}
182--
183-- require'lspconfig'.jsonls.setup{capabilities = capabilities}
184--
185 172
186 173
187require'nvim-treesitter.configs'.setup { 174require'nvim-treesitter.configs'.setup {
@@ -212,3 +199,5 @@ require'nvim-treesitter.configs'.setup {
212 additional_vim_regex_highlighting = false, 199 additional_vim_regex_highlighting = false,
213 }, 200 },
214} 201}
202
203-- vim: tabstop=2 shiftwidth=2 softtabstop=2
diff --git a/pack/all/start/fzf b/pack/all/start/fzf
new file mode 160000
Subproject 70c461c60bb1e2165a378e8ba0451b511c29b5c
diff --git a/pack/all/start/fzf.vim b/pack/all/start/fzf.vim
Subproject 0f03107bc94b31a9c7adcee6da8e5de7492e4b0 Subproject d1016dbd7cec2d2a3bb5863776c84b4034e4b85
diff --git a/pack/all/start/vim-editorconfig b/pack/all/start/vim-editorconfig
Subproject 30ddc057f71287c3ac2beca876e7ae6d5abe26a Subproject e014708e917b457e8f6c57f357d55dd3826880d
diff --git a/pack/all/start/vim-fancy-line b/pack/all/start/vim-fancy-line
Subproject bf4fadce4d57396ccbadd0493cac294fe6c69b9 Subproject 6bef9966d5f15203c1567516a5da49b72121423
diff --git a/pack/nvim/start/nvim-cmp b/pack/nvim/start/nvim-cmp
Subproject c49ad26e894e137e401b1d294948c46327877ea Subproject d3a3056204e1a9dbb7c7fe36c114dc43b681768
diff --git a/pack/nvim/start/nvim-cmp-lsp-signature-help b/pack/nvim/start/nvim-cmp-lsp-signature-help
Subproject d2768cb1b83de649d57d967085fe73c5e01f8fd Subproject 3d8912ebeb56e5ae08ef0906e3a54de1c66b92f
diff --git a/pack/nvim/start/nvim-cmp-nvim-lsp b/pack/nvim/start/nvim-cmp-nvim-lsp
Subproject 59224771f91b86d1de12570b4070fe4ad7cd1ee Subproject 44b16d11215dce86f253ce0c30949813c0a9076
diff --git a/pack/nvim/start/nvim-lsp b/pack/nvim/start/nvim-lsp
new file mode 160000
Subproject c58edb98f09a650612adaaf8c47995c9e2b7ffb
diff --git a/pack/nvim/start/nvim-lspconfig b/pack/nvim/start/nvim-lspconfig
Subproject 6b43ce561d97412cc512b569db6938e44529293 Subproject 38da5bbe1eaab2394056109e48c7e195bdb8fdf
diff --git a/pack/nvim/start/nvim-lua-language-server b/pack/nvim/start/nvim-lua-language-server
new file mode 160000
Subproject ce964793afc6251673238c256a25e06502e487b
diff --git a/pack/nvim/start/nvim-plenary b/pack/nvim/start/nvim-plenary
new file mode 160000
Subproject 50012918b2fc8357b87cff2a7f7f0446e47da17
diff --git a/pack/nvim/start/nvim-telescope b/pack/nvim/start/nvim-telescope
new file mode 160000
Subproject 74ce793a60759e3db0d265174f137fb62743035
diff --git a/pack/nvim/start/nvim-treesitter b/pack/nvim/start/nvim-treesitter
Subproject 68e8181dbcf29330716d380e5669f2cd838eadb Subproject 4a68f0778c05083cc458a3a144205cfc4147443
diff --git a/pack/nvim/start/nvim-vsnip b/pack/nvim/start/nvim-vsnip
Subproject 8dde8c0ef10bb1afdbb301e2bd7eb1c153dd558 Subproject be277461265f1e5c7db470aa479f30956597ea9
diff --git a/pack/vim/opt/vim-youcompleteme b/pack/vim/opt/vim-youcompleteme
Subproject 88efc6f6035e4c656e8791f3c3a8a4328a1634d Subproject cc9a3ae3efdcc7d038aab0620ea28882533c236
diff --git a/plugin/lsp.nvim b/plugin/lsp.nvim
new file mode 100644
index 0000000..979b35f
--- /dev/null
+++ b/plugin/lsp.nvim
@@ -0,0 +1 @@
command! LspFix lua vim.lsp.buf.code_action()
diff --git a/utils/applications/vim.desktop b/utils/applications/vim.desktop
index f8efe76..8169f57 100644..100755
--- a/utils/applications/vim.desktop
+++ b/utils/applications/vim.desktop
@@ -1,13 +1,15 @@
1[Desktop Entry] 1[Desktop Entry]
2X-Desktop-File-Install-Version=0.23 2Version=1.0
3Type=Application 3Type=Application
4Name=Vi IMproved->buffer2 4Name=Vi IMproved
5Icon=gvim
6Comment=Open file in an existing instance of vi and in a new tab 5Comment=Open file in an existing instance of vi and in a new tab
7MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; 6Icon=gvim
8X-XClassHintResName=VIM 7MimeType=text/*
9Categories=Application;Utility;TextEditor; 8Categories=Application;Utility;TextEditor;
10# Exec=vim --servername VIM --remote-silent %F 9Exec=vim %F
11Exec=xfce4-terminal -e "bash -c '~/.bashrc ; vim --servername VIM --remote-silent %F'"
12Terminal=true 10Terminal=true
13StartupNotify=true 11Actions=Server;
12
13[Desktop Action Server]
14Exec=vim --servername VIM --remote-silent %F
15Name=Browse in Server
diff --git a/vimrc b/vimrc
index ea8ee2b..4a81724 100644
--- a/vimrc
+++ b/vimrc
@@ -8,11 +8,11 @@ set signcolumn=yes
8set foldcolumn=1 8set foldcolumn=1
9 9
10 10
11if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) 11" if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY))
12 autocmd TextYankPost * call system("wl-copy", get(v:event, 'regcontents')) 12" autocmd TextYankPost * call system("wl-copy", get(v:event, 'regcontents'))
13 nnoremap p :silent put =system('wl-paste')<CR> 13" nnoremap p :silent put =system('wl-paste')<CR>
14 nnoremap P :silent put! =system('wl-paste')<CR> 14" nnoremap P :silent put! =system('wl-paste')<CR>
15endif 15" endif
16 16
17 17
18if has("nvim") 18if has("nvim")
diff --git a/vimrc-common b/vimrc-common
index c7d450d..6c06c66 100644
--- a/vimrc-common
+++ b/vimrc-common
@@ -221,9 +221,9 @@ if has("autocmd")
221 " Workaround: Allows Vim to yank text within wayland 221 " Workaround: Allows Vim to yank text within wayland
222 " XDG_SESSION_TYPE is only set if a login manager was used 222 " XDG_SESSION_TYPE is only set if a login manager was used
223 " WAYLAND_DISPLAY should always work 223 " WAYLAND_DISPLAY should always work
224 if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) && !has('nvim') 224 " if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) && !has('nvim')
225 autocmd TextYankPost * call system("wl-copy", getreg('+')) 225 " autocmd TextYankPost * call system("wl-copy", getreg('+'))
226 endif 226 " endif
227 227
228 autocmd TextYankPost * echo '> text yanked to '. 228 autocmd TextYankPost * echo '> text yanked to '.
229 \ (get(v:event,'regname') == '' 229 \ (get(v:event,'regname') == ''
..