Compare commits

..

3 commits

2 changed files with 6 additions and 3 deletions

View file

@ -13,9 +13,6 @@ return function(_, bufnr)
vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts)
vim.keymap.set('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, bufopts)
vim.keymap.set('n', '<leader>wl', function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, bufopts)
vim.api.nvim_buf_create_user_command(bufnr, "LspSetWorkspace", function()
for _, workspace in ipairs(vim.lsp.buf.list_workspace_folders()) do
@ -37,4 +34,8 @@ return function(_, bufnr)
vim.api.nvim_buf_create_user_command(bufnr, "Format", function()
vim.lsp.buf.format()
end, {})
vim.api.nvim_buf_create_user_command(bufnr, "LspWorkspaces", function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, bufopts)
end

View file

@ -49,9 +49,11 @@ use {
'AlessandroYorba/Alduin';
'AlessandroYorba/Sierra';
'DarkWiiPlayer/papercolor-theme';
'axvr/photon.vim';
'ayu-theme/ayu-vim';
'dracula/vim';
'jaredgorski/fogbell.vim';
'kvrohit/mellow';
'optionalg/Arcadia';
'rakr/vim-two-firewatch';
'rebelot/kanagawa.nvim';