diff options
author | Max Christian Pohle | 2023-10-20 16:43:03 +0200 |
---|---|---|
committer | Max Christian Pohle | 2023-10-20 17:36:48 +0200 |
commit | dd2623b7ce5f00ef9b1728efeef4538fd47a0d31 (patch) | |
tree | 71b4c7ad35ea258c359c4bd8d2ff9e494fadbfec | |
parent | c0f915ed8c808c73195c90fdae62c19fc97a8d29 (diff) | |
parent | ebe1de13f1ae081af20ba22d7b62f7477d5062cd (diff) | |
download | vim-dd2623b7ce5f00ef9b1728efeef4538fd47a0d31.tar.bz2 vim-dd2623b7ce5f00ef9b1728efeef4538fd47a0d31.zip |
Merge Windows config
-rw-r--r-- | .gitmodules | 21 | ||||
l--------- | after/syntax/cpp.vim | 1 | ||||
-rw-r--r-- | gvimrc | 30 | ||||
-rw-r--r-- | init.lua | 273 | ||||
m--------- | pack/all/start/fzf | 0 | ||||
m--------- | pack/all/start/fzf.vim | 0 | ||||
m--------- | pack/all/start/vim-editorconfig | 0 | ||||
m--------- | pack/all/start/vim-fancy-line | 0 | ||||
m--------- | pack/nvim/start/nvim-cmp | 0 | ||||
m--------- | pack/nvim/start/nvim-cmp-lsp-signature-help | 0 | ||||
m--------- | pack/nvim/start/nvim-cmp-nvim-lsp | 0 | ||||
m--------- | pack/nvim/start/nvim-lsp | 0 | ||||
m--------- | pack/nvim/start/nvim-lspconfig | 0 | ||||
m--------- | pack/nvim/start/nvim-lua-language-server | 0 | ||||
m--------- | pack/nvim/start/nvim-plenary | 0 | ||||
m--------- | pack/nvim/start/nvim-telescope | 0 | ||||
m--------- | pack/nvim/start/nvim-treesitter | 0 | ||||
m--------- | pack/nvim/start/nvim-vsnip | 0 | ||||
m--------- | pack/vim/opt/vim-youcompleteme | 0 | ||||
-rw-r--r-- | plugin/lsp.nvim | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | utils/applications/vim.desktop | 18 | ||||
-rw-r--r-- | vimrc | 10 | ||||
-rw-r--r-- | vimrc-common | 6 |
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 @@ | |||
1 | c.vim \ No newline at end of file | ||
@@ -0,0 +1,30 @@ | |||
1 | " ====================================================================================================================== | ||
2 | " GUI_DEFAULTS: | ||
3 | " We want to have a minimal UI | ||
4 | " ====================================================================================================================== | ||
5 | |||
6 | if 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>* | ||
30 | endif | ||
@@ -3,56 +3,150 @@ vim.cmd('source ~/.vim/vimrc') | |||
3 | vim.o.termguicolors = true | 3 | vim.o.termguicolors = true |
4 | vim.o.exrc = true | 4 | vim.o.exrc = true |
5 | 5 | ||
6 | vim.o.shadafile = (os.getenv("XDG_CACHE_HOME") or | 6 | if 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")) |
9 | end | ||
9 | 10 | ||
10 | -- vimscript: get(environ(), "XDG_CACHE_HOME", "~/.cache")."/vim.shada" | 11 | -- vim.o.shadafile = "/tmp/shada" |
11 | 12 | ||
12 | require'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 | ||
14 | require'colorizer'.setup() | 20 | require'colorizer'.setup() |
15 | 21 | ||
16 | -- language servers: | 22 | -- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers.. |
23 | require('cmp_nvim_lsp').setup{} | ||
24 | local capabilities = require('cmp_nvim_lsp').default_capabilities() | ||
25 | |||
26 | |||
27 | local cmp = require('cmp'); | ||
28 | cmp.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. | ||
70 | cmp.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). | ||
79 | cmp.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). | ||
87 | cmp.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 |
20 | require'lspconfig'.clangd.setup{} | 100 | require('lspconfig')['clangd'].setup{capabilities = capabilities} |
21 | 101 | ||
22 | -- lua | 102 | -- bash | bash-language-server |
23 | require'lspconfig'.sumneko_lua.setup{ | 103 | require('lspconfig')['bashls'].setup{capabilities = capabilities} |
24 | settings = { | 104 | |
25 | Lua = { | 105 | -- ccs | vscode-css-languageserver |
26 | diagnostics = { | 106 | require('lspconfig')['cssls'].setup{capabilities = capabilities} |
27 | globals = { 'vim' } | 107 | |
28 | } | 108 | -- rust | rust-analyzer |
29 | } | 109 | require('lspconfig')['rust_analyzer'].setup{capabilities = capabilities} |
30 | } | 110 | |
31 | } | 111 | -- javascript | eslint |
112 | require('lspconfig')['eslint'].setup{capabilities = capabilities} | ||
113 | |||
114 | -- javascript | typescript-language-server | ||
115 | require('lspconfig')['tsserver'].setup{capabilities = capabilities} | ||
116 | |||
117 | -- vimscript | vim-language-server | ||
118 | require('lspconfig')['vimls'].setup{capabilities = capabilities} | ||
119 | |||
120 | require('lspconfig')['html'].setup{capabilities = capabilities} | ||
121 | |||
122 | require('lspconfig')['jsonls'].setup{capabilities = capabilities} | ||
123 | |||
124 | -- C/C++ | clang | ||
125 | require('lspconfig')['clangd'].setup{capabilities = capabilities} | ||
32 | 126 | ||
33 | -- bash | bash-language-server | 127 | -- bash | bash-language-server |
34 | require'lspconfig'.bashls.setup{} | 128 | require('lspconfig')['bashls'].setup{capabilities = capabilities} |
35 | 129 | ||
36 | -- ccs | vscode-css-languageserver | 130 | -- ccs | vscode-css-languageserver |
37 | require'lspconfig'.cssls.setup{} | 131 | require('lspconfig')['cssls'].setup{capabilities = capabilities} |
38 | 132 | ||
39 | -- rust | rust-analyzer | 133 | -- rust | rust-analyzer |
40 | require'lspconfig'.rust_analyzer.setup{} | 134 | require('lspconfig')['rust_analyzer'].setup{capabilities = capabilities} |
41 | 135 | ||
42 | -- javascript | eslint | 136 | -- javascript | eslint |
43 | require'lspconfig'.eslint.setup{} | 137 | require('lspconfig')['eslint'].setup{capabilities = capabilities} |
44 | 138 | ||
45 | -- javascript | typescript-language-server | 139 | -- javascript | typescript-language-server |
46 | require'lspconfig'.tsserver.setup{} | 140 | require('lspconfig')['tsserver'].setup{capabilities = capabilities} |
47 | 141 | ||
48 | -- vimscript | vim-language-server | 142 | -- vimscript | vim-language-server |
49 | require'lspconfig'.vimls.setup{} | 143 | require('lspconfig')['vimls'].setup{capabilities = capabilities} |
50 | 144 | ||
51 | require'lspconfig'.html.setup{} | 145 | require('lspconfig')['html'].setup{capabilities = capabilities} |
52 | 146 | ||
53 | require'lspconfig'.jsonls.setup{} | 147 | require('lspconfig')['jsonls'].setup{capabilities = capabilities} |
54 | 148 | ||
55 | require'lspconfig'.pylsp.setup{ | 149 | require('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 | |
69 | require'cmp_nvim_lsp'.setup{} | 163 | require('lspconfig')['lua_ls'].setup{ |
70 | 164 | settings = { | |
71 | require'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.. | ||
78 | local capabilities = require('cmp_nvim_lsp').default_capabilities() | ||
79 | -- | ||
80 | -- -- The following example advertise capabilities to `clangd`. | ||
81 | require'lspconfig'.clangd.setup { | ||
82 | capabilities = capabilities, | ||
83 | } | ||
84 | |||
85 | -- Set up nvim-cmp. | ||
86 | local cmp = require'cmp' | ||
87 | |||
88 | cmp.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. | ||
128 | cmp.setup.filetype('gitcommit', { | ||
129 | sources = 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). | ||
137 | cmp.setup.cmdline({ '/', '?' }, { | ||
138 | mapping = cmp.mapping.preset.cmdline(), | ||
139 | sources = { | ||
140 | { name = 'buffer' } | ||
141 | } | 171 | } |
142 | }) | ||
143 | |||
144 | -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore). | ||
145 | cmp.setup.cmdline(':', { | ||
146 | mapping = cmp.mapping.preset.cmdline(), | ||
147 | sources = 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 | ||
187 | require'nvim-treesitter.configs'.setup { | 174 | require'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] |
2 | X-Desktop-File-Install-Version=0.23 | 2 | Version=1.0 |
3 | Type=Application | 3 | Type=Application |
4 | Name=Vi IMproved->buffer2 | 4 | Name=Vi IMproved |
5 | Icon=gvim | ||
6 | Comment=Open file in an existing instance of vi and in a new tab | 5 | Comment=Open file in an existing instance of vi and in a new tab |
7 | MimeType=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++; | 6 | Icon=gvim |
8 | X-XClassHintResName=VIM | 7 | MimeType=text/* |
9 | Categories=Application;Utility;TextEditor; | 8 | Categories=Application;Utility;TextEditor; |
10 | # Exec=vim --servername VIM --remote-silent %F | 9 | Exec=vim %F |
11 | Exec=xfce4-terminal -e "bash -c '~/.bashrc ; vim --servername VIM --remote-silent %F'" | ||
12 | Terminal=true | 10 | Terminal=true |
13 | StartupNotify=true | 11 | Actions=Server; |
12 | |||
13 | [Desktop Action Server] | ||
14 | Exec=vim --servername VIM --remote-silent %F | ||
15 | Name=Browse in Server | ||
@@ -8,11 +8,11 @@ set signcolumn=yes | |||
8 | set foldcolumn=1 | 8 | set foldcolumn=1 |
9 | 9 | ||
10 | 10 | ||
11 | if ($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> |
15 | endif | 15 | " endif |
16 | 16 | ||
17 | 17 | ||
18 | if has("nvim") | 18 | if 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') == '' |